Enum grammers_session::PackedType
source · #[repr(u8)]pub enum PackedType {
User = 2,
Bot = 3,
Chat = 4,
Megagroup = 40,
Broadcast = 48,
Gigagroup = 56,
}
Variants§
Trait Implementations§
source§impl Clone for PackedType
impl Clone for PackedType
source§fn clone(&self) -> PackedType
fn clone(&self) -> PackedType
Returns a copy 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 PackedType
impl Debug for PackedType
source§impl Display for PackedType
impl Display for PackedType
source§impl Hash for PackedType
impl Hash for PackedType
source§impl Ord for PackedType
impl Ord for PackedType
source§fn cmp(&self, other: &PackedType) -> Ordering
fn cmp(&self, other: &PackedType) -> 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 PackedType
impl PartialEq for PackedType
source§fn eq(&self, other: &PackedType) -> bool
fn eq(&self, other: &PackedType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PackedType
impl PartialOrd for PackedType
source§fn partial_cmp(&self, other: &PackedType) -> Option<Ordering>
fn partial_cmp(&self, other: &PackedType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PackedType
impl Eq for PackedType
impl StructuralPartialEq for PackedType
Auto Trait Implementations§
impl Freeze for PackedType
impl RefUnwindSafe for PackedType
impl Send for PackedType
impl Sync for PackedType
impl Unpin for PackedType
impl UnwindSafe for PackedType
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