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