pub struct LeafLocation {
pub from: usize,
pub to: usize,
pub index: usize,
}Expand description
Range of bytes in the binary input that is further indivisible (i. e. leaf of tree).
The location is exclusive in the upper bound (to), i. e.
the number of bytes in the range is from - to.
Fields§
§from: usizeOffset of the first byte of the leaf.
to: usizeExclusive offset of the last byte of the leaf.
index: usizeOrdinal index of this leaf.
Trait Implementations§
Source§impl Clone for LeafLocation
impl Clone for LeafLocation
Source§fn clone(&self) -> LeafLocation
fn clone(&self) -> LeafLocation
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 moreAuto Trait Implementations§
impl Freeze for LeafLocation
impl RefUnwindSafe for LeafLocation
impl Send for LeafLocation
impl Sync for LeafLocation
impl Unpin for LeafLocation
impl UnwindSafe for LeafLocation
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