pub struct AttrIterator<'list> { /* private fields */ }
Expand description
A AttrIterator
is used to iterate through a AttrList
.
A new iterator is created with AttrList::iterator()
.
Once the iterator is created, it can be advanced through the style
changes in the text using next_style_change()
. At each
style change, the range of the current style segment and the attributes
currently in effect can be queried.
Implementations§
Source§impl AttrIterator<'_>
impl AttrIterator<'_>
Trait Implementations§
Source§impl Clone for AttrIterator<'_>
impl Clone for AttrIterator<'_>
Source§impl<'list> Debug for AttrIterator<'list>
impl<'list> Debug for AttrIterator<'list>
Source§impl Drop for AttrIterator<'_>
impl Drop for AttrIterator<'_>
Source§impl<'list> Hash for AttrIterator<'list>
impl<'list> Hash for AttrIterator<'list>
Source§impl<'list> IntoIterator for AttrIterator<'list>
impl<'list> IntoIterator for AttrIterator<'list>
Source§impl<'list> Ord for AttrIterator<'list>
impl<'list> Ord for AttrIterator<'list>
Source§fn cmp(&self, other: &AttrIterator<'list>) -> Ordering
fn cmp(&self, other: &AttrIterator<'list>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'list> PartialEq for AttrIterator<'list>
impl<'list> PartialEq for AttrIterator<'list>
Source§impl<'list> PartialOrd for AttrIterator<'list>
impl<'list> PartialOrd for AttrIterator<'list>
Source§impl StaticType for AttrIterator<'_>
Available on crate feature v1_44
only.
impl StaticType for AttrIterator<'_>
Available on crate feature
v1_44
only.Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl<'list> Eq for AttrIterator<'list>
impl<'list> StructuralPartialEq for AttrIterator<'list>
Auto Trait Implementations§
impl<'list> Freeze for AttrIterator<'list>
impl<'list> RefUnwindSafe for AttrIterator<'list>
impl<'list> !Send for AttrIterator<'list>
impl<'list> !Sync for AttrIterator<'list>
impl<'list> Unpin for AttrIterator<'list>
impl<'list> UnwindSafe for AttrIterator<'list>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.