Skip to main content

Component

Trait Component 

Source
pub trait Component<L, I>
where L: Layout,
{ const OFFSET: usize; }
Expand description

A degree of freedom of each node in a layout, at OFFSET within its node.

The index I is found by the compiler, from where the component is in a coupled layout.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Component<Field<Concentration>, Direct> for Concentration

Source§

impl Component<Field<ElectricPotential>, Direct> for Potential

Source§

impl Component<Field<Temperature>, Direct> for Temperature

Source§

impl<A, B, C, I> Component<Coupled<A, B>, Left<I>> for C
where A: Layout, B: Layout, C: Component<A, I>,

Source§

const OFFSET: usize = C::OFFSET

Source§

impl<A, B, C, I> Component<Coupled<A, B>, Right<I>> for C
where A: Layout, B: Layout, C: Component<B, I>,

Source§

impl<const D: usize, const AXIS: usize> Component<Solid<D>, Direct> for Displacement<AXIS>

Source§

impl<const D: usize, const AXIS: usize> Component<SolidRate<D>, Direct> for Velocity<AXIS>