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