pub enum Encoder {
Encoder1,
Encoder2,
Encoder3,
Encoder4,
Encoder5,
Encoder6,
Encoder7,
Encoder8,
}Variants§
Implementations§
Source§impl Encoder
impl Encoder
Sourcepub fn to_value_mode(&self, mode: EncoderCCIndex) -> u8
pub fn to_value_mode(&self, mode: EncoderCCIndex) -> u8
Converts the enum variant to its associated value based on the given mode.
Sourcepub fn from_value_mode(value: u8, mode: EncoderCCIndex) -> Option<Encoder>
pub fn from_value_mode(value: u8, mode: EncoderCCIndex) -> Option<Encoder>
Converts a value back to its corresponding enum variant based on the mode.
Sourcepub fn from_value(value: u8) -> Option<(Encoder, EncoderCCIndex)>
pub fn from_value(value: u8) -> Option<(Encoder, EncoderCCIndex)>
Returns the enum variant and its associated mode from a given value.
Trait Implementations§
Source§impl IntoEnumIterator for Encoder
impl IntoEnumIterator for Encoder
type Iterator = EncoderIter
fn iter() -> EncoderIter ⓘ
impl Copy for Encoder
impl Eq for Encoder
impl StructuralPartialEq for Encoder
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more