Skip to main content

Cand

Struct Cand 

Source
pub struct Cand {
    pub range: Range<u64>,
    pub kind: PartKind,
    pub tag: PartTag,
    pub label: Option<String>,
    pub disp: Disposition,
    pub detail: String,
    pub children: Vec<Cand>,
    pub body: Option<Range<u64>>,
    pub gap: Option<(Disposition, String)>,
    /* private fields */
}
Expand description

A part before overlap resolution, with its own children.

Fields§

§range: Range<u64>§kind: PartKind§tag: PartTag§label: Option<String>§disp: Disposition§detail: String§children: Vec<Cand>§body: Option<Range<u64>>

For a container whose children account for its contents: the range they tile; uncovered bytes become Unreferenced gaps on emission.

§gap: Option<(Disposition, String)>

The fate and detail of the body’s gaps instead of Unreferenced (a walk inside stopped at a budget).

Implementations§

Source§

impl Cand

Source

pub fn new( range: Range<u64>, kind: PartKind, tag: PartTag, disp: Disposition, detail: String, ) -> Self

Source

pub fn note(&mut self, text: &str)

Auto Trait Implementations§

§

impl Freeze for Cand

§

impl RefUnwindSafe for Cand

§

impl Send for Cand

§

impl Sync for Cand

§

impl Unpin for Cand

§

impl UnsafeUnpin for Cand

§

impl UnwindSafe for Cand

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.