Struct AlignmentId
pub struct AlignmentId(/* private fields */);Expand description
A non-empty alignment identifier.
Implementations§
§impl AlignmentId
impl AlignmentId
pub fn new(value: impl AsRef<str>) -> Result<AlignmentId, AlignmentValueError>
pub fn new(value: impl AsRef<str>) -> Result<AlignmentId, AlignmentValueError>
Creates an alignment identifier from non-empty text.
§Errors
Returns AlignmentValueError::Empty when the trimmed identifier is empty.
Trait Implementations§
§impl Clone for AlignmentId
impl Clone for AlignmentId
§fn clone(&self) -> AlignmentId
fn clone(&self) -> AlignmentId
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 more§impl Debug for AlignmentId
impl Debug for AlignmentId
§impl Display for AlignmentId
impl Display for AlignmentId
§impl FromStr for AlignmentId
impl FromStr for AlignmentId
§type Err = AlignmentValueError
type Err = AlignmentValueError
The associated error which can be returned from parsing.
§fn from_str(value: &str) -> Result<AlignmentId, <AlignmentId as FromStr>::Err>
fn from_str(value: &str) -> Result<AlignmentId, <AlignmentId as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for AlignmentId
impl Hash for AlignmentId
§impl Ord for AlignmentId
impl Ord for AlignmentId
§impl PartialEq for AlignmentId
impl PartialEq for AlignmentId
§impl PartialOrd for AlignmentId
impl PartialOrd for AlignmentId
impl Eq for AlignmentId
impl StructuralPartialEq for AlignmentId
Auto Trait Implementations§
impl Freeze for AlignmentId
impl RefUnwindSafe for AlignmentId
impl Send for AlignmentId
impl Sync for AlignmentId
impl Unpin for AlignmentId
impl UnsafeUnpin for AlignmentId
impl UnwindSafe for AlignmentId
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