pub struct PartPointer(/* private fields */);
Expand description
References the position of a MimePart by encoding the steps in
a tree walking operation. The encoding of PartPointer is a
sequence of integers that identify the index of a child part
by its level within the mime tree, selecting the current node
when no more indices remain. eg: []
indicates the
root part, while [0]
is the 0th child of the root.
Implementations§
source§impl PartPointer
impl PartPointer
sourcepub fn root_or_nth(n: Option<u8>) -> Self
pub fn root_or_nth(n: Option<u8>) -> Self
Construct a PartPointer that references either the nth or the root node depending upon the passed parameter
Trait Implementations§
source§impl Clone for PartPointer
impl Clone for PartPointer
source§fn clone(&self) -> PartPointer
fn clone(&self) -> PartPointer
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 PartPointer
impl Debug for PartPointer
source§impl PartialEq for PartPointer
impl PartialEq for PartPointer
impl Eq for PartPointer
impl StructuralPartialEq for PartPointer
Auto Trait Implementations§
impl Freeze for PartPointer
impl RefUnwindSafe for PartPointer
impl Send for PartPointer
impl Sync for PartPointer
impl Unpin for PartPointer
impl UnwindSafe for PartPointer
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)