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<'list> AttrIterator<'list>
impl<'list> AttrIterator<'list>
Trait Implementations§
Source§impl<'list> Clone for AttrIterator<'list>
impl<'list> Clone for AttrIterator<'list>
Source§impl<'list> Debug for AttrIterator<'list>
impl<'list> Debug for AttrIterator<'list>
Source§impl<'list> Drop for AttrIterator<'list>
impl<'list> Drop for AttrIterator<'list>
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<'list> StaticType for AttrIterator<'list>
Available on crate feature v1_44
only.
impl<'list> StaticType for AttrIterator<'list>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.