pub enum BracketState {
Inside,
Outside,
}
Expand description
An enum to represent the two possible states for a position in text.
Variants§
Inside
Position is inside at least one pair of brackets (parentheses, square, or curly).
Outside
Position is not inside any brackets.
Trait Implementations§
Source§impl Clone for BracketState
impl Clone for BracketState
Source§fn clone(&self) -> BracketState
fn clone(&self) -> BracketState
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 moreSource§impl Debug for BracketState
impl Debug for BracketState
Source§impl PartialEq for BracketState
impl PartialEq for BracketState
impl Copy for BracketState
impl Eq for BracketState
impl StructuralPartialEq for BracketState
Auto Trait Implementations§
impl Freeze for BracketState
impl RefUnwindSafe for BracketState
impl Send for BracketState
impl Sync for BracketState
impl Unpin for BracketState
impl UnwindSafe for BracketState
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