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