pub struct DatabaseDialect(/* private fields */);Implementations§
Source§impl DatabaseDialect
impl DatabaseDialect
Sourcepub fn new(input: impl AsRef<str>) -> Result<Self, DatabaseError>
pub fn new(input: impl AsRef<str>) -> Result<Self, DatabaseError>
Creates a database label from non-empty text.
§Errors
Returns DatabaseError when the label is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the label and returns the owned string.
Trait Implementations§
Source§impl AsRef<str> for DatabaseDialect
impl AsRef<str> for DatabaseDialect
Source§impl Clone for DatabaseDialect
impl Clone for DatabaseDialect
Source§fn clone(&self) -> DatabaseDialect
fn clone(&self) -> DatabaseDialect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatabaseDialect
impl Debug for DatabaseDialect
Source§impl Display for DatabaseDialect
impl Display for DatabaseDialect
Source§impl FromStr for DatabaseDialect
impl FromStr for DatabaseDialect
Source§impl Hash for DatabaseDialect
impl Hash for DatabaseDialect
Source§impl Ord for DatabaseDialect
impl Ord for DatabaseDialect
Source§fn cmp(&self, other: &DatabaseDialect) -> Ordering
fn cmp(&self, other: &DatabaseDialect) -> Ordering
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 PartialEq for DatabaseDialect
impl PartialEq for DatabaseDialect
Source§fn eq(&self, other: &DatabaseDialect) -> bool
fn eq(&self, other: &DatabaseDialect) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DatabaseDialect
impl PartialOrd for DatabaseDialect
Source§impl TryFrom<&str> for DatabaseDialect
impl TryFrom<&str> for DatabaseDialect
impl Eq for DatabaseDialect
impl StructuralPartialEq for DatabaseDialect
Auto Trait Implementations§
impl Freeze for DatabaseDialect
impl RefUnwindSafe for DatabaseDialect
impl Send for DatabaseDialect
impl Sync for DatabaseDialect
impl Unpin for DatabaseDialect
impl UnsafeUnpin for DatabaseDialect
impl UnwindSafe for DatabaseDialect
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