Struct moto::CStyleSequence
source · pub struct CStyleSequence<'a, const N: usize>(/* private fields */);
Expand description
CStyleSequence a sequence of CStyle
§Examples
Implementations§
source§impl<'a, const N: usize> CStyleSequence<'a, N>
impl<'a, const N: usize> CStyleSequence<'a, N>
pub fn new(styles: &'a [&'a CStyle<'a>; N]) -> CStyleSequence<'a, N>
pub fn len(&self) -> usize
pub fn get(&self, index: usize) -> &'a CStyle<'a>
pub fn primary(&self) -> &'a CStyle<'a>
pub fn secondary(&self) -> &'a CStyle<'a>
pub fn tertiary(&self) -> &'a CStyle<'a>
pub fn primary_alt(&self) -> &'a CStyle<'a>
pub fn secondary_alt(&self) -> &'a CStyle<'a>
pub fn tertiary_alt(&self) -> &'a CStyle<'a>
pub fn last(&self) -> &'a CStyle<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a, const N: usize> Freeze for CStyleSequence<'a, N>
impl<'a, const N: usize> RefUnwindSafe for CStyleSequence<'a, N>
impl<'a, const N: usize> Send for CStyleSequence<'a, N>
impl<'a, const N: usize> Sync for CStyleSequence<'a, N>
impl<'a, const N: usize> Unpin for CStyleSequence<'a, N>
impl<'a, const N: usize> UnwindSafe for CStyleSequence<'a, N>
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