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