[−][src]Struct atelier_core::model::Identifier
A component of ShapeID
, it represents an internal unqualified identifier.
Corresponds to the identifier
production in §2.4.1,
Shape ID ABNF,
of the Smithy 1.0 Specification.
Implementations
impl Identifier
[src]
pub fn is_valid(s: &str) -> bool
[src]
Returns true
if the provided string is a valid identifier representation, else false
.
This is preferred to calling from_str()
and determining success or failure.
pub fn to_member(&self, member_name: Identifier) -> ShapeID
[src]
Returns a new relative ShapeID
with the member name appended to the current shape.
pub fn to_absolute(&self, ns: Namespace) -> ShapeID
[src]
Returns a new absolute ShapeID
with the namespace prepended to the current shape.
Trait Implementations
impl Clone for Identifier
[src]
fn clone(&self) -> Identifier
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Identifier
[src]
impl Display for Identifier
[src]
impl Eq for Identifier
[src]
impl From<Identifier> for ShapeID
[src]
fn from(shape_name: Identifier) -> Self
[src]
impl From<Identifier> for Key
[src]
fn from(id: Identifier) -> Self
[src]
impl FromStr for Identifier
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Identifier
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Named<Identifier> for Member
[src]
fn id(&self) -> &Identifier
[src]
impl PartialEq<Identifier> for Identifier
[src]
fn eq(&self, other: &Self) -> bool
[src]
§ 2.4.2. Shape ID member names While shape IDs used within a model are case-sensitive, no two shapes in the model can have the same case-insensitive shape ID.
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Identifier
[src]
Auto Trait Implementations
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,