Struct sequoia_openpgp::packet::header::CTBOld [−][src]
pub struct CTBOld { /* fields omitted */ }
A CTB using the old format encoding.
See Section 4.2 of RFC 4880 for more details.
Implementations
impl CTBOld
[src]
impl CTBOld
[src]pub fn new(tag: Tag, length: BodyLength) -> Result<Self>
[src]
pub fn new(tag: Tag, length: BodyLength) -> Result<Self>
[src]Constructs an old-style CTB.
Errors
Returns Error::InvalidArgument
if the tag or the body
length cannot be expressed using an old-style CTB.
pub fn length_type(&self) -> PacketLengthType
[src]
pub fn length_type(&self) -> PacketLengthType
[src]Returns the packet’s length type.
Trait Implementations
impl MarshalInto for CTBOld
[src]
impl MarshalInto for CTBOld
[src]Auto Trait Implementations
impl RefUnwindSafe for CTBOld
impl Send for CTBOld
impl Sync for CTBOld
impl Unpin for CTBOld
impl UnwindSafe for CTBOld
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more