pub struct Subpacket {
pub is_critical: bool,
pub data: SubpacketData,
}
Fields§
§is_critical: bool
§data: SubpacketData
Implementations§
source§impl Subpacket
impl Subpacket
sourcepub const fn regular(data: SubpacketData) -> Self
pub const fn regular(data: SubpacketData) -> Self
Construct a new regular subpacket.
sourcepub const fn critical(data: SubpacketData) -> Self
pub const fn critical(data: SubpacketData) -> Self
Construct a new critical subpacket.
Trait Implementations§
source§impl PartialEq for Subpacket
impl PartialEq for Subpacket
impl Eq for Subpacket
impl StructuralPartialEq for Subpacket
Auto Trait Implementations§
impl Freeze for Subpacket
impl RefUnwindSafe for Subpacket
impl Send for Subpacket
impl Sync for Subpacket
impl Unpin for Subpacket
impl UnwindSafe for Subpacket
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