pub struct Bracket {
pub offset: u32,
pub open: bool,
pub depth: u32,
pub partner: Option<u32>,
}Expand description
One bracket occurrence in the document — fully derived on demand (nothing here is stored; the tree holds only the char and position).
Fields§
§offset: u32Byte offset of the bracket char.
open: boolWhether it is an opener (([{) vs a closer ()]}).
depth: u32Nesting depth (0 = outermost).
partner: Option<u32>The matched partner’s offset, or None if unmatched.
Trait Implementations§
impl Copy for Bracket
impl Eq for Bracket
impl StructuralPartialEq for Bracket
Auto Trait Implementations§
impl Freeze for Bracket
impl RefUnwindSafe for Bracket
impl Send for Bracket
impl Sync for Bracket
impl Unpin for Bracket
impl UnsafeUnpin for Bracket
impl UnwindSafe for Bracket
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.