pub struct Brackets(pub Span);
Expand description
The delimiters [
]
.
Tuple Fields§
§0: Span
Trait Implementations§
Source§impl Delimiters for Brackets
impl Delimiters for Brackets
Source§const CAN_NEST: bool = true
const CAN_NEST: bool = true
Whether groups delimited by this pair can nest. Typically, this will be
false if the opening and closing delimiters are the same, and true
otherwise.
Source§type Start = LeftBracket
type Start = LeftBracket
The opening delimiter, e.g.
(
.Source§type End = RightBracket
type End = RightBracket
The closing delimiter, e.g.
)
.Source§impl Ord for Brackets
impl Ord for Brackets
Source§impl PartialOrd for Brackets
impl PartialOrd for Brackets
impl Eq for Brackets
Auto Trait Implementations§
impl Freeze for Brackets
impl RefUnwindSafe for Brackets
impl Send for Brackets
impl Sync for Brackets
impl Unpin for Brackets
impl UnwindSafe for Brackets
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