pub enum SlantDef {
Upright,
Italic,
Oblique,
}Expand description
Local mirror of [fidl_fuchsia_fonts::Slant], for use in JSON serialization.
Serialized values are lowercase, e.g. "italic".
Variants§
Implementations§
Source§impl<'de> SlantDef
impl<'de> SlantDef
pub fn deserialize<__D>(__deserializer: __D) -> Result<Slant, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
impl Eq for SlantDef
impl StructuralPartialEq for SlantDef
Auto Trait Implementations§
impl Freeze for SlantDef
impl RefUnwindSafe for SlantDef
impl Send for SlantDef
impl Sync for SlantDef
impl Unpin for SlantDef
impl UnwindSafe for SlantDef
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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