pub struct MarkSet { /* private fields */ }Expand description
Set of marks active at a single character position.
Implementations§
Source§impl MarkSet
impl MarkSet
Sourcepub fn value_of(&self, name: &str) -> Option<&str>
pub fn value_of(&self, name: &str) -> Option<&str>
String value for a valued mark, or None if absent or boolean.
Sourcepub fn iter(&self) -> impl Iterator<Item = &str> + '_
pub fn iter(&self) -> impl Iterator<Item = &str> + '_
Iterate over active mark names in lexicographic order.
Sourcepub fn iter_with_values(&self) -> impl Iterator<Item = (&str, &MarkValue)> + '_
pub fn iter_with_values(&self) -> impl Iterator<Item = (&str, &MarkValue)> + '_
Iterate over (name, MarkValue) pairs.
Sourcepub fn iter_booleans(&self) -> impl Iterator<Item = &str> + '_
pub fn iter_booleans(&self) -> impl Iterator<Item = &str> + '_
Iterate over only boolean-style marks.
Sourcepub fn iter_values(&self) -> impl Iterator<Item = (&str, &str)> + '_
pub fn iter_values(&self) -> impl Iterator<Item = (&str, &str)> + '_
Iterate over only valued marks as (name, value) pairs.
Trait Implementations§
impl Eq for MarkSet
impl StructuralPartialEq for MarkSet
Auto Trait Implementations§
impl Freeze for MarkSet
impl RefUnwindSafe for MarkSet
impl Send for MarkSet
impl Sync for MarkSet
impl Unpin for MarkSet
impl UnsafeUnpin for MarkSet
impl UnwindSafe for MarkSet
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