Struct smf::PropertyName
source · pub struct PropertyName { /* private fields */ }
Expand description
The group and property portions of a property name.
Property names typically have the form: group/property This object represents that entire object.
Implementations§
source§impl PropertyName
impl PropertyName
sourcepub fn new<S1, S2>(
group: S1,
property: S2
) -> Result<PropertyName, PropertyParseError>where
S1: AsRef<str>,
S2: AsRef<str>,
pub fn new<S1, S2>( group: S1, property: S2 ) -> Result<PropertyName, PropertyParseError>where S1: AsRef<str>, S2: AsRef<str>,
Creates a new property name object, returning an error if it cannot be parsed.
Trait Implementations§
source§impl Clone for PropertyName
impl Clone for PropertyName
source§fn clone(&self) -> PropertyName
fn clone(&self) -> PropertyName
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 PropertyName
impl Debug for PropertyName
source§impl FromStr for PropertyName
impl FromStr for PropertyName
source§impl PartialEq<PropertyName> for PropertyName
impl PartialEq<PropertyName> for PropertyName
source§fn eq(&self, other: &PropertyName) -> bool
fn eq(&self, other: &PropertyName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToString for PropertyName
impl ToString for PropertyName
impl StructuralPartialEq for PropertyName
Auto Trait Implementations§
impl RefUnwindSafe for PropertyName
impl Send for PropertyName
impl Sync for PropertyName
impl Unpin for PropertyName
impl UnwindSafe for PropertyName
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