#[repr(transparent)]pub struct PType(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl PType
impl PType
pub const U8: PType
pub const U16: PType
pub const U32: PType
pub const U64: PType
pub const I8: PType
pub const I16: PType
pub const I32: PType
pub const I64: PType
pub const F16: PType
pub const F32: PType
pub const F64: PType
pub const ENUM_MIN: u8 = 0u8
pub const ENUM_MAX: u8 = 10u8
pub const ENUM_VALUES: &'static [PType]
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 PType
impl EndianScalar for PType
Source§impl Ord for PType
impl Ord for PType
Source§impl PartialOrd for PType
impl PartialOrd for PType
Source§impl<'a> Verifiable for PType
impl<'a> Verifiable for PType
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 PType
impl Eq for PType
impl SimpleToVerifyInSlice for PType
impl StructuralPartialEq for PType
Auto Trait Implementations§
impl Freeze for PType
impl RefUnwindSafe for PType
impl Send for PType
impl Sync for PType
impl Unpin for PType
impl UnwindSafe for PType
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