#[repr(transparent)]pub struct TwitterCardType(pub i8);Tuple Fields§
§0: i8Implementations§
Source§impl TwitterCardType
impl TwitterCardType
pub const Summary: Self
pub const SummaryLargeImage: Self
pub const App: Self
pub const Player: 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 TwitterCardType
impl Clone for TwitterCardType
Source§fn clone(&self) -> TwitterCardType
fn clone(&self) -> TwitterCardType
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 TwitterCardType
impl Debug for TwitterCardType
Source§impl Default for TwitterCardType
impl Default for TwitterCardType
Source§fn default() -> TwitterCardType
fn default() -> TwitterCardType
Returns the “default value” for a type. Read more
Source§impl EndianScalar for TwitterCardType
impl EndianScalar for TwitterCardType
Source§impl<'a> Follow<'a> for TwitterCardType
impl<'a> Follow<'a> for TwitterCardType
Source§impl Hash for TwitterCardType
impl Hash for TwitterCardType
Source§impl Ord for TwitterCardType
impl Ord for TwitterCardType
Source§fn cmp(&self, other: &TwitterCardType) -> Ordering
fn cmp(&self, other: &TwitterCardType) -> 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 TwitterCardType
impl PartialEq for TwitterCardType
Source§impl PartialOrd for TwitterCardType
impl PartialOrd for TwitterCardType
Source§impl Push for TwitterCardType
impl Push for TwitterCardType
Source§impl<'a> Verifiable for TwitterCardType
impl<'a> Verifiable for TwitterCardType
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 TwitterCardType
impl Eq for TwitterCardType
impl SimpleToVerifyInSlice for TwitterCardType
impl StructuralPartialEq for TwitterCardType
Auto Trait Implementations§
impl Freeze for TwitterCardType
impl RefUnwindSafe for TwitterCardType
impl Send for TwitterCardType
impl Sync for TwitterCardType
impl Unpin for TwitterCardType
impl UnsafeUnpin for TwitterCardType
impl UnwindSafe for TwitterCardType
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