pub struct BoundaryName(/* private fields */);Implementations§
Source§impl BoundaryName
impl BoundaryName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, BoundaryTextError>
pub fn new(value: impl AsRef<str>) -> Result<Self, BoundaryTextError>
Creates a boundary name from non-empty text.
§Errors
Returns BoundaryTextError::Empty when the trimmed value is empty.
pub fn as_str(&self) -> &str
pub fn into_string(self) -> String
Trait Implementations§
Source§impl AsRef<str> for BoundaryName
impl AsRef<str> for BoundaryName
Source§impl Clone for BoundaryName
impl Clone for BoundaryName
Source§fn clone(&self) -> BoundaryName
fn clone(&self) -> BoundaryName
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 BoundaryName
impl Debug for BoundaryName
Source§impl Display for BoundaryName
impl Display for BoundaryName
Source§impl FromStr for BoundaryName
impl FromStr for BoundaryName
Source§impl Hash for BoundaryName
impl Hash for BoundaryName
Source§impl Ord for BoundaryName
impl Ord for BoundaryName
Source§fn cmp(&self, other: &BoundaryName) -> Ordering
fn cmp(&self, other: &BoundaryName) -> 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 BoundaryName
impl PartialEq for BoundaryName
Source§fn eq(&self, other: &BoundaryName) -> bool
fn eq(&self, other: &BoundaryName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BoundaryName
impl PartialOrd for BoundaryName
impl Eq for BoundaryName
impl StructuralPartialEq for BoundaryName
Auto Trait Implementations§
impl Freeze for BoundaryName
impl RefUnwindSafe for BoundaryName
impl Send for BoundaryName
impl Sync for BoundaryName
impl Unpin for BoundaryName
impl UnsafeUnpin for BoundaryName
impl UnwindSafe for BoundaryName
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