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