pub struct PreviousCursor(/* private fields */);Implementations§
Source§impl PreviousCursor
impl PreviousCursor
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 PreviousCursor
impl AsRef<str> for PreviousCursor
Source§impl Clone for PreviousCursor
impl Clone for PreviousCursor
Source§fn clone(&self) -> PreviousCursor
fn clone(&self) -> PreviousCursor
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 PreviousCursor
impl Debug for PreviousCursor
Source§impl Display for PreviousCursor
impl Display for PreviousCursor
Source§impl FromStr for PreviousCursor
impl FromStr for PreviousCursor
Source§impl Hash for PreviousCursor
impl Hash for PreviousCursor
Source§impl Ord for PreviousCursor
impl Ord for PreviousCursor
Source§fn cmp(&self, other: &PreviousCursor) -> Ordering
fn cmp(&self, other: &PreviousCursor) -> 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 PreviousCursor
impl PartialEq for PreviousCursor
Source§fn eq(&self, other: &PreviousCursor) -> bool
fn eq(&self, other: &PreviousCursor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PreviousCursor
impl PartialOrd for PreviousCursor
Source§impl TryFrom<&str> for PreviousCursor
impl TryFrom<&str> for PreviousCursor
impl Eq for PreviousCursor
impl StructuralPartialEq for PreviousCursor
Auto Trait Implementations§
impl Freeze for PreviousCursor
impl RefUnwindSafe for PreviousCursor
impl Send for PreviousCursor
impl Sync for PreviousCursor
impl Unpin for PreviousCursor
impl UnsafeUnpin for PreviousCursor
impl UnwindSafe for PreviousCursor
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