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