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