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 more