pub struct OrganName(/* private fields */);Expand description
A non-empty organ name.
Implementations§
Source§impl OrganName
impl OrganName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, OrganNameError>
pub fn new(value: impl AsRef<str>) -> Result<Self, OrganNameError>
Creates an organ name from non-empty text.
§Errors
Returns OrganNameError::Empty when the trimmed name is empty.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the name and returns the owned string.
Trait Implementations§
Source§impl Ord for OrganName
impl Ord for OrganName
Source§impl PartialOrd for OrganName
impl PartialOrd for OrganName
impl Eq for OrganName
impl StructuralPartialEq for OrganName
Auto Trait Implementations§
impl Freeze for OrganName
impl RefUnwindSafe for OrganName
impl Send for OrganName
impl Sync for OrganName
impl Unpin for OrganName
impl UnsafeUnpin for OrganName
impl UnwindSafe for OrganName
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