Struct ics::properties::Description
source · pub struct Description<'a> { /* private fields */ }
Expand description
DESCRIPTION Property
Implementations§
source§impl<'a> Description<'a>
impl<'a> Description<'a>
sourcepub fn new<S>(value: S) -> Selfwhere
S: Into<Cow<'a, str>>,
pub fn new<S>(value: S) -> Selfwhere
S: Into<Cow<'a, str>>,
Creates a new DESCRIPTION Property with the given value.
sourcepub fn add<P>(&mut self, parameter: P)where
P: Into<Parameter<'a>>,
pub fn add<P>(&mut self, parameter: P)where
P: Into<Parameter<'a>>,
Adds a parameter to the property.
sourcepub fn append(&mut self, parameter: Parameters<'a>)
pub fn append(&mut self, parameter: Parameters<'a>)
Adds several parameters at once to the property. For creating
several parameters at once, consult the documentation of
the parameters!
macro.
Trait Implementations§
source§impl<'a> Clone for Description<'a>
impl<'a> Clone for Description<'a>
source§fn clone(&self) -> Description<'a>
fn clone(&self) -> Description<'a>
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<'a> Debug for Description<'a>
impl<'a> Debug for Description<'a>
source§impl<'a> Default for Description<'a>
impl<'a> Default for Description<'a>
source§impl<'a> From<Description<'a>> for Property<'a>
impl<'a> From<Description<'a>> for Property<'a>
source§fn from(builder: Description<'a>) -> Self
fn from(builder: Description<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for Description<'a>
impl<'a> Hash for Description<'a>
source§impl<'a> Ord for Description<'a>
impl<'a> Ord for Description<'a>
source§fn cmp(&self, other: &Description<'a>) -> Ordering
fn cmp(&self, other: &Description<'a>) -> 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<'a> PartialEq<Description<'a>> for Description<'a>
impl<'a> PartialEq<Description<'a>> for Description<'a>
source§fn eq(&self, other: &Description<'a>) -> bool
fn eq(&self, other: &Description<'a>) -> bool
source§impl<'a> PartialOrd<Description<'a>> for Description<'a>
impl<'a> PartialOrd<Description<'a>> for Description<'a>
source§fn partial_cmp(&self, other: &Description<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Description<'a>) -> 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 more