pub struct PromptName(/* private fields */);Implementations§
Source§impl PromptName
impl PromptName
Trait Implementations§
Source§impl AsRef<str> for PromptName
impl AsRef<str> for PromptName
Source§impl Clone for PromptName
impl Clone for PromptName
Source§fn clone(&self) -> PromptName
fn clone(&self) -> PromptName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PromptName
impl Debug for PromptName
Source§impl Display for PromptName
impl Display for PromptName
Source§impl FromStr for PromptName
impl FromStr for PromptName
Source§type Err = AiPromptError
type Err = AiPromptError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<PromptName, <PromptName as FromStr>::Err>
fn from_str(value: &str) -> Result<PromptName, <PromptName as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PromptName
impl Hash for PromptName
Source§impl Ord for PromptName
impl Ord for PromptName
Source§fn cmp(&self, other: &PromptName) -> Ordering
fn cmp(&self, other: &PromptName) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for PromptName
impl PartialEq for PromptName
Source§fn eq(&self, other: &PromptName) -> bool
fn eq(&self, other: &PromptName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PromptName
impl PartialOrd for PromptName
Source§impl TryFrom<&str> for PromptName
impl TryFrom<&str> for PromptName
Source§type Error = AiPromptError
type Error = AiPromptError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<PromptName, <PromptName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<PromptName, <PromptName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for PromptName
impl StructuralPartialEq for PromptName
Auto Trait Implementations§
impl Freeze for PromptName
impl RefUnwindSafe for PromptName
impl Send for PromptName
impl Sync for PromptName
impl Unpin for PromptName
impl UnsafeUnpin for PromptName
impl UnwindSafe for PromptName
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