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