pub struct ncfadectx { /* private fields */ }Implementations§
Source§impl ncfadectx
impl ncfadectx
Sourcepub fn setup(plane: &mut NcPlane) -> &mut NcFadeCtx
pub fn setup(plane: &mut NcPlane) -> &mut NcFadeCtx
NcFadeCtx constructor.
Rather than the simple ncplane_fade{in/out}(), ncfadectx_setup() can be paired with a loop over ncplane_fade{in/out}_iteration() + ncfadectx_free().
Sourcepub fn iterations(&self) -> u32
pub fn iterations(&self) -> u32
Returns the number of iterations through which will fade.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ncfadectx
impl RefUnwindSafe for ncfadectx
impl Send for ncfadectx
impl Sync for ncfadectx
impl Unpin for ncfadectx
impl UnwindSafe for ncfadectx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more