pub struct BracketPair {
pub at: ByteOffset,
pub matching: Option<ByteOffset>,
pub after_caret: bool,
}Expand description
A bracket next to a caret, and its match if there is one in reach.
Fields§
§at: ByteOffsetThe bracket at the caret.
matching: Option<ByteOffset>§after_caret: boolWhether the bracket is after the caret (else before it).
Trait Implementations§
Source§impl Clone for BracketPair
impl Clone for BracketPair
impl Copy for BracketPair
Source§impl Debug for BracketPair
impl Debug for BracketPair
impl Eq for BracketPair
Source§impl PartialEq for BracketPair
impl PartialEq for BracketPair
impl StructuralPartialEq for BracketPair
Auto Trait Implementations§
impl Freeze for BracketPair
impl RefUnwindSafe for BracketPair
impl Send for BracketPair
impl Sync for BracketPair
impl Unpin for BracketPair
impl UnsafeUnpin for BracketPair
impl UnwindSafe for BracketPair
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