Struct ipp::attribute::IppAttributes
source · pub struct IppAttributes { /* private fields */ }
Expand description
Attribute list
Implementations§
source§impl IppAttributes
impl IppAttributes
sourcepub fn new() -> IppAttributes
pub fn new() -> IppAttributes
Create attribute list
sourcepub fn groups(&self) -> &[IppAttributeGroup]
pub fn groups(&self) -> &[IppAttributeGroup]
Get all groups
sourcepub fn groups_mut(&mut self) -> &mut Vec<IppAttributeGroup>
pub fn groups_mut(&mut self) -> &mut Vec<IppAttributeGroup>
Get all mutable groups
sourcepub fn into_groups(self) -> Vec<IppAttributeGroup>
pub fn into_groups(self) -> Vec<IppAttributeGroup>
Consume this attribute list and return all attribute groups
sourcepub fn groups_of(
&self,
tag: DelimiterTag
) -> impl Iterator<Item = &IppAttributeGroup>
pub fn groups_of( &self, tag: DelimiterTag ) -> impl Iterator<Item = &IppAttributeGroup>
Get a list of attribute groups matching a given delimiter tag
sourcepub fn add(&mut self, tag: DelimiterTag, attribute: IppAttribute)
pub fn add(&mut self, tag: DelimiterTag, attribute: IppAttribute)
Add attribute to a given group
Trait Implementations§
source§impl Clone for IppAttributes
impl Clone for IppAttributes
source§fn clone(&self) -> IppAttributes
fn clone(&self) -> IppAttributes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IppAttributes
impl Debug for IppAttributes
source§impl Default for IppAttributes
impl Default for IppAttributes
source§fn default() -> IppAttributes
fn default() -> IppAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for IppAttributes
impl Send for IppAttributes
impl Sync for IppAttributes
impl Unpin for IppAttributes
impl UnwindSafe for IppAttributes
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