#[repr(transparent)]pub struct SlideDirection(pub i8);Tuple Fields§
§0: i8Implementations§
Source§impl SlideDirection
impl SlideDirection
pub const Left: Self
pub const Right: Self
pub const Up: Self
pub const Down: Self
pub const ENUM_MIN: i8 = 0
pub const ENUM_MAX: i8 = 3
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 Clone for SlideDirection
impl Clone for SlideDirection
Source§fn clone(&self) -> SlideDirection
fn clone(&self) -> SlideDirection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlideDirection
impl Debug for SlideDirection
Source§impl Default for SlideDirection
impl Default for SlideDirection
Source§fn default() -> SlideDirection
fn default() -> SlideDirection
Returns the “default value” for a type. Read more
Source§impl EndianScalar for SlideDirection
impl EndianScalar for SlideDirection
Source§impl<'a> Follow<'a> for SlideDirection
impl<'a> Follow<'a> for SlideDirection
Source§impl Hash for SlideDirection
impl Hash for SlideDirection
Source§impl Ord for SlideDirection
impl Ord for SlideDirection
Source§fn cmp(&self, other: &SlideDirection) -> Ordering
fn cmp(&self, other: &SlideDirection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SlideDirection
impl PartialEq for SlideDirection
Source§impl PartialOrd for SlideDirection
impl PartialOrd for SlideDirection
Source§impl Push for SlideDirection
impl Push for SlideDirection
Source§impl<'a> Verifiable for SlideDirection
impl<'a> Verifiable for SlideDirection
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 SlideDirection
impl Eq for SlideDirection
impl SimpleToVerifyInSlice for SlideDirection
impl StructuralPartialEq for SlideDirection
Auto Trait Implementations§
impl Freeze for SlideDirection
impl RefUnwindSafe for SlideDirection
impl Send for SlideDirection
impl Sync for SlideDirection
impl Unpin for SlideDirection
impl UnsafeUnpin for SlideDirection
impl UnwindSafe for SlideDirection
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