#[repr(transparent)]pub struct Alignment(pub i8);Tuple Fields§
§0: i8Implementations§
Source§impl Alignment
impl Alignment
pub const Start: Self
pub const Center: Self
pub const End: Self
pub const Stretch: Self
pub const SpaceBetween: Self
pub const SpaceAround: Self
pub const SpaceEvenly: Self
pub const Baseline: Self
pub const ENUM_MIN: i8 = 0
pub const ENUM_MAX: i8 = 7
pub const ENUM_VALUES: &'static [Self]
Sourcepub fn variant_name(self) -> Option<&'static str>
pub fn variant_name(self) -> Option<&'static str>
Returns the variant’s name or “” if unknown.
Trait Implementations§
Source§impl EndianScalar for Alignment
impl EndianScalar for Alignment
Source§impl Ord for Alignment
impl Ord for Alignment
Source§impl PartialOrd for Alignment
impl PartialOrd for Alignment
Source§impl<'a> Verifiable for Alignment
impl<'a> Verifiable for Alignment
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl Copy for Alignment
impl Eq for Alignment
impl SimpleToVerifyInSlice for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnsafeUnpin for Alignment
impl UnwindSafe for Alignment
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