Skip to main content

SpringStoreExt

Trait SpringStoreExt 

Source
pub trait SpringStoreExt<__Lens> {
    // Required methods
    fn stiffness(
        self,
    ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>;
    fn damping(
        self,
    ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>;
    fn mass(
        self,
    ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>;
    fn velocity(
        self,
    ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>;
    fn transpose(self) -> SpringStoreTransposed<__Lens>
       where Self: Copy;
}

Required Methods§

Source

fn stiffness( self, ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>

Source

fn damping( self, ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>

Source

fn mass( self, ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>

Source

fn velocity( self, ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>

Source

fn transpose(self) -> SpringStoreTransposed<__Lens>
where Self: Copy,

Implementations on Foreign Types§

Source§

impl<__Lens> SpringStoreExt<__Lens> for Store<Spring, __Lens>

Source§

fn stiffness( self, ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>

Source§

fn damping( self, ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>

Source§

fn mass( self, ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>

Source§

fn velocity( self, ) -> Store<f32, MappedMutSignal<f32, __Lens, fn(&Spring) -> &f32, fn(&mut Spring) -> &mut f32>>

Source§

fn transpose(self) -> SpringStoreTransposed<__Lens>
where Self: Copy,

Implementors§