pub enum Encoder {
Encoder1,
Encoder2,
Encoder3,
Encoder4,
Encoder5,
Encoder6,
Encoder7,
Encoder8,
}Variants§
Implementations§
Source§impl Encoder
impl Encoder
pub fn to_value_mode(&self, mode: EncoderCCIndex) -> u8
pub fn from_value_mode(value: u8, mode: EncoderCCIndex) -> Option<Encoder>
pub fn from_value(value: u8) -> Option<(Encoder, EncoderCCIndex)>
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