Struct artifact_app::core::types::ArtName
[−]
[src]
pub struct ArtName { pub raw: String, pub value: Vec<String>, pub ty: ArtType, }
Definition of an artifact name, with Traits for hashing, displaying, etc
Fields
raw: String
value: Vec<String>
ty: ArtType
Methods
impl ArtName
[src]
fn parent(&self) -> Option<ArtName>
parse name from string and handle errors see: SPC-artifact-name.2 see: SPC-artifact-partof-2
fn is_root(&self) -> bool
return whether this artifact is the root type
fn parent_rc(&self) -> Option<ArtNameRc>
fn named_partofs(&self) -> Vec<ArtName>
return the artifact this artifact is automatically a partof (because of it's name) see: SPC-artifact-partof-1
Trait Implementations
impl Clone for ArtName
[src]
fn clone(&self) -> ArtName
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl FromStr for ArtName
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ArtName>
impl Default for ArtName
[src]
impl Display for ArtName
[src]
impl Debug for ArtName
[src]
impl Hash for ArtName
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for ArtName
[src]
fn eq(&self, other: &ArtName) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for ArtName
[src]
impl Ord for ArtName
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for ArtName
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more