pub struct AfterCursor(/* private fields */);Implementations§
Source§impl AfterCursor
impl AfterCursor
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 AfterCursor
impl AsRef<str> for AfterCursor
Source§impl Clone for AfterCursor
impl Clone for AfterCursor
Source§fn clone(&self) -> AfterCursor
fn clone(&self) -> AfterCursor
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 moreSource§impl Debug for AfterCursor
impl Debug for AfterCursor
Source§impl Display for AfterCursor
impl Display for AfterCursor
Source§impl FromStr for AfterCursor
impl FromStr for AfterCursor
Source§impl Hash for AfterCursor
impl Hash for AfterCursor
Source§impl Ord for AfterCursor
impl Ord for AfterCursor
Source§fn cmp(&self, other: &AfterCursor) -> Ordering
fn cmp(&self, other: &AfterCursor) -> 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
Source§impl PartialEq for AfterCursor
impl PartialEq for AfterCursor
Source§impl PartialOrd for AfterCursor
impl PartialOrd for AfterCursor
Source§impl TryFrom<&str> for AfterCursor
impl TryFrom<&str> for AfterCursor
impl Eq for AfterCursor
impl StructuralPartialEq for AfterCursor
Auto Trait Implementations§
impl Freeze for AfterCursor
impl RefUnwindSafe for AfterCursor
impl Send for AfterCursor
impl Sync for AfterCursor
impl Unpin for AfterCursor
impl UnsafeUnpin for AfterCursor
impl UnwindSafe for AfterCursor
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