#[repr(transparent)]pub struct OGType(pub i8);Tuple Fields§
§0: i8Implementations§
Source§impl OGType
impl OGType
pub const Website: Self
pub const Article: Self
pub const Product: Self
pub const Profile: 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 EndianScalar for OGType
impl EndianScalar for OGType
Source§impl Ord for OGType
impl Ord for OGType
Source§impl PartialOrd for OGType
impl PartialOrd for OGType
Source§impl<'a> Verifiable for OGType
impl<'a> Verifiable for OGType
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 OGType
impl Eq for OGType
impl SimpleToVerifyInSlice for OGType
impl StructuralPartialEq for OGType
Auto Trait Implementations§
impl Freeze for OGType
impl RefUnwindSafe for OGType
impl Send for OGType
impl Sync for OGType
impl Unpin for OGType
impl UnsafeUnpin for OGType
impl UnwindSafe for OGType
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