pub struct BidiMatchedOpeningBracket {
pub opening: char,
pub is_open: bool,
}
Expand description
This is the return value of BidiDataSource::bidi_matched_opening_bracket()
.
It represents the matching normalized opening bracket for a given bracket in a bracket pair, and whether or not that bracket is opening.
Fields§
§opening: char
The corresponding opening bracket in this bracket pair, normalized
In case of opening brackets, this will be the bracket itself, except for when the bracket is not normalized, in which case it will be the normalized form.
is_open: bool
Whether or not the requested bracket was an opening bracket. True for opening
Trait Implementations§
source§impl Clone for BidiMatchedOpeningBracket
impl Clone for BidiMatchedOpeningBracket
source§fn clone(&self) -> BidiMatchedOpeningBracket
fn clone(&self) -> BidiMatchedOpeningBracket
Returns a copy 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 BidiMatchedOpeningBracket
impl Debug for BidiMatchedOpeningBracket
impl Copy for BidiMatchedOpeningBracket
Auto Trait Implementations§
impl RefUnwindSafe for BidiMatchedOpeningBracket
impl Send for BidiMatchedOpeningBracket
impl Sync for BidiMatchedOpeningBracket
impl Unpin for BidiMatchedOpeningBracket
impl UnwindSafe for BidiMatchedOpeningBracket
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