pub struct TableName(/* private fields */);Expand description
A strongly typed database identifier wrapper: TableName.
Implementations§
Source§impl TableName
impl TableName
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 TableName
impl Ord for TableName
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 TableName
impl PartialOrd for TableName
impl Eq for TableName
impl StructuralPartialEq for TableName
Auto Trait Implementations§
impl Freeze for TableName
impl RefUnwindSafe for TableName
impl Send for TableName
impl Sync for TableName
impl Unpin for TableName
impl UnsafeUnpin for TableName
impl UnwindSafe for TableName
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