#[repr(transparent)]pub struct AttrList { /* private fields */ }
Implementations
sourceimpl AttrList
impl AttrList
pub fn new() -> AttrList
pub fn copy(&self) -> Option<AttrList>
pub fn filter<P: FnMut(&Attribute) -> bool>(&self, func: P) -> Option<AttrList>
pub fn attributes(&self) -> Vec<Attribute>
Available on crate feature
v1_44
only.pub fn iterator(&self) -> AttrIterator<'_>
pub fn splice(&self, other: &AttrList, pos: i32, len: i32)
pub fn to_str(&self) -> GString
Available on crate feature
v1_50
only.pub fn update(&self, pos: i32, remove: i32, add: i32)
Available on crate feature
v1_44
only.pub fn from_string(text: &str) -> Result<AttrList, BoolError>
Available on crate feature
v1_50
only.Trait Implementations
sourceimpl StaticType for AttrList
impl StaticType for AttrList
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for AttrList
Auto Trait Implementations
impl RefUnwindSafe for AttrList
impl !Send for AttrList
impl !Sync for AttrList
impl Unpin for AttrList
impl UnwindSafe for AttrList
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.