Struct AiCapabilityName
pub struct AiCapabilityName(/* private fields */);Implementations§
§impl AiCapabilityName
impl AiCapabilityName
pub fn new( value: impl AsRef<str>, ) -> Result<AiCapabilityName, AiCapabilityError>
pub fn as_str(&self) -> &str
pub fn value(&self) -> &str
pub fn into_string(self) -> String
Trait Implementations§
§impl AsRef<str> for AiCapabilityName
impl AsRef<str> for AiCapabilityName
§impl Clone for AiCapabilityName
impl Clone for AiCapabilityName
§fn clone(&self) -> AiCapabilityName
fn clone(&self) -> AiCapabilityName
Returns a duplicate 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 more§impl Debug for AiCapabilityName
impl Debug for AiCapabilityName
§impl Display for AiCapabilityName
impl Display for AiCapabilityName
§impl FromStr for AiCapabilityName
impl FromStr for AiCapabilityName
§type Err = AiCapabilityError
type Err = AiCapabilityError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<AiCapabilityName, <AiCapabilityName as FromStr>::Err>
fn from_str( value: &str, ) -> Result<AiCapabilityName, <AiCapabilityName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AiCapabilityName
impl Hash for AiCapabilityName
§impl Ord for AiCapabilityName
impl Ord for AiCapabilityName
§fn cmp(&self, other: &AiCapabilityName) -> Ordering
fn cmp(&self, other: &AiCapabilityName) -> 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
§impl PartialEq for AiCapabilityName
impl PartialEq for AiCapabilityName
§impl PartialOrd for AiCapabilityName
impl PartialOrd for AiCapabilityName
§impl TryFrom<&str> for AiCapabilityName
impl TryFrom<&str> for AiCapabilityName
§type Error = AiCapabilityError
type Error = AiCapabilityError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<AiCapabilityName, <AiCapabilityName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<AiCapabilityName, <AiCapabilityName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for AiCapabilityName
impl StructuralPartialEq for AiCapabilityName
Auto Trait Implementations§
impl Freeze for AiCapabilityName
impl RefUnwindSafe for AiCapabilityName
impl Send for AiCapabilityName
impl Sync for AiCapabilityName
impl Unpin for AiCapabilityName
impl UnsafeUnpin for AiCapabilityName
impl UnwindSafe for AiCapabilityName
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