Struct pango::AttrIterator
source · 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<AttrIterator<'list>> for AttrIterator<'list>
impl<'list> PartialEq<AttrIterator<'list>> for AttrIterator<'list>
source§fn eq(&self, other: &AttrIterator<'list>) -> bool
fn eq(&self, other: &AttrIterator<'list>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'list> PartialOrd<AttrIterator<'list>> for AttrIterator<'list>
impl<'list> PartialOrd<AttrIterator<'list>> for AttrIterator<'list>
source§fn partial_cmp(&self, other: &AttrIterator<'list>) -> Option<Ordering>
fn partial_cmp(&self, other: &AttrIterator<'list>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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> StructuralEq for AttrIterator<'list>
impl<'list> StructuralPartialEq for AttrIterator<'list>
Auto Trait Implementations§
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> 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.