pub enum PacketKind {
Literal(usize),
Operator {
length: Length,
operation: Operation,
packets: Vec<Packet>,
},
}Variants§
Implementations§
Source§impl PacketKind
impl PacketKind
Sourcepub const fn is_operator(&self) -> bool
pub const fn is_operator(&self) -> bool
Returns true if the packet kind is Operator.
Sourcepub const fn is_literal(&self) -> bool
pub const fn is_literal(&self) -> bool
Returns true if the packet kind is Literal.
Trait Implementations§
Source§impl Clone for PacketKind
impl Clone for PacketKind
Source§fn clone(&self) -> PacketKind
fn clone(&self) -> PacketKind
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 PacketKind
impl Debug for PacketKind
Source§impl From<&PacketKind> for u8
impl From<&PacketKind> for u8
Source§fn from(kind: &PacketKind) -> Self
fn from(kind: &PacketKind) -> Self
Converts to this type from the input type.
Source§impl From<PacketKind> for u8
impl From<PacketKind> for u8
Source§fn from(kind: PacketKind) -> Self
fn from(kind: PacketKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PacketKind
impl PartialEq for PacketKind
impl Eq for PacketKind
impl StructuralPartialEq for PacketKind
Auto Trait Implementations§
impl Freeze for PacketKind
impl RefUnwindSafe for PacketKind
impl Send for PacketKind
impl Sync for PacketKind
impl Unpin for PacketKind
impl UnwindSafe for PacketKind
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