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