pub struct MarkerNameBuf(String);Expand description
An owned marker name, validated when it is decoded.
Tuple Fields§
§0: StringImplementations§
Source§impl MarkerNameBuf
impl MarkerNameBuf
Sourcepub(super) fn check(name: &str) -> Result<(), MarkdownError>
pub(super) fn check(name: &str) -> Result<(), MarkdownError>
Check that a marker name is non-empty and has no leading or trailing whitespace.
§Errors
Returns MarkdownError::MarkerNameInvalid otherwise.
Trait Implementations§
Source§impl Clone for MarkerNameBuf
impl Clone for MarkerNameBuf
Source§fn clone(&self) -> MarkerNameBuf
fn clone(&self) -> MarkerNameBuf
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 MarkerNameBuf
impl Debug for MarkerNameBuf
impl Eq for MarkerNameBuf
Source§impl<'ʄ> Facet<'ʄ> for MarkerNameBuf
impl<'ʄ> Facet<'ʄ> for MarkerNameBuf
Source§impl From<&MarkerNameBuf> for String
impl From<&MarkerNameBuf> for String
Source§fn from(name: &MarkerNameBuf) -> Self
fn from(name: &MarkerNameBuf) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MarkerNameBuf
impl PartialEq for MarkerNameBuf
impl StructuralPartialEq for MarkerNameBuf
Source§impl TryFrom<&str> for MarkerNameBuf
impl TryFrom<&str> for MarkerNameBuf
Auto Trait Implementations§
impl Freeze for MarkerNameBuf
impl RefUnwindSafe for MarkerNameBuf
impl Send for MarkerNameBuf
impl Sync for MarkerNameBuf
impl Unpin for MarkerNameBuf
impl UnsafeUnpin for MarkerNameBuf
impl UnwindSafe for MarkerNameBuf
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.