pub struct StructuredSyntaxSuffix(/* private fields */);Implementations§
Source§impl StructuredSyntaxSuffix
impl StructuredSyntaxSuffix
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ApiPrimitiveError>
Creates validated text metadata.
§Errors
Returns ApiPrimitiveError when the value is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the value and returns the stored text.
Trait Implementations§
Source§impl AsRef<str> for StructuredSyntaxSuffix
impl AsRef<str> for StructuredSyntaxSuffix
Source§impl Clone for StructuredSyntaxSuffix
impl Clone for StructuredSyntaxSuffix
Source§fn clone(&self) -> StructuredSyntaxSuffix
fn clone(&self) -> StructuredSyntaxSuffix
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 StructuredSyntaxSuffix
impl Debug for StructuredSyntaxSuffix
Source§impl Display for StructuredSyntaxSuffix
impl Display for StructuredSyntaxSuffix
Source§impl FromStr for StructuredSyntaxSuffix
impl FromStr for StructuredSyntaxSuffix
Source§impl Hash for StructuredSyntaxSuffix
impl Hash for StructuredSyntaxSuffix
Source§impl Ord for StructuredSyntaxSuffix
impl Ord for StructuredSyntaxSuffix
Source§fn cmp(&self, other: &StructuredSyntaxSuffix) -> Ordering
fn cmp(&self, other: &StructuredSyntaxSuffix) -> 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 StructuredSyntaxSuffix
impl PartialEq for StructuredSyntaxSuffix
Source§fn eq(&self, other: &StructuredSyntaxSuffix) -> bool
fn eq(&self, other: &StructuredSyntaxSuffix) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StructuredSyntaxSuffix
impl PartialOrd for StructuredSyntaxSuffix
Source§impl TryFrom<&str> for StructuredSyntaxSuffix
impl TryFrom<&str> for StructuredSyntaxSuffix
impl Eq for StructuredSyntaxSuffix
impl StructuralPartialEq for StructuredSyntaxSuffix
Auto Trait Implementations§
impl Freeze for StructuredSyntaxSuffix
impl RefUnwindSafe for StructuredSyntaxSuffix
impl Send for StructuredSyntaxSuffix
impl Sync for StructuredSyntaxSuffix
impl Unpin for StructuredSyntaxSuffix
impl UnsafeUnpin for StructuredSyntaxSuffix
impl UnwindSafe for StructuredSyntaxSuffix
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