pub struct SqlTypeName(/* private fields */);Expand description
A SQL type name label.
Implementations§
Source§impl SqlTypeName
impl SqlTypeName
Sourcepub fn new(input: impl AsRef<str>) -> Result<Self, SqlTypeError>
pub fn new(input: impl AsRef<str>) -> Result<Self, SqlTypeError>
Creates a SQL type name label.
§Errors
Returns SqlTypeError when the label is empty or contains control characters.
Sourcepub fn from_scalar(scalar: SqlScalarType) -> Self
pub fn from_scalar(scalar: SqlScalarType) -> Self
Creates a canonical type name from a scalar type.
Trait Implementations§
Source§impl AsRef<str> for SqlTypeName
impl AsRef<str> for SqlTypeName
Source§impl Clone for SqlTypeName
impl Clone for SqlTypeName
Source§fn clone(&self) -> SqlTypeName
fn clone(&self) -> SqlTypeName
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 SqlTypeName
impl Debug for SqlTypeName
Source§impl Display for SqlTypeName
impl Display for SqlTypeName
Source§impl FromStr for SqlTypeName
impl FromStr for SqlTypeName
Source§impl Hash for SqlTypeName
impl Hash for SqlTypeName
Source§impl Ord for SqlTypeName
impl Ord for SqlTypeName
Source§fn cmp(&self, other: &SqlTypeName) -> Ordering
fn cmp(&self, other: &SqlTypeName) -> 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 SqlTypeName
impl PartialEq for SqlTypeName
Source§fn eq(&self, other: &SqlTypeName) -> bool
fn eq(&self, other: &SqlTypeName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SqlTypeName
impl PartialOrd for SqlTypeName
Source§impl TryFrom<&str> for SqlTypeName
impl TryFrom<&str> for SqlTypeName
impl Eq for SqlTypeName
impl StructuralPartialEq for SqlTypeName
Auto Trait Implementations§
impl Freeze for SqlTypeName
impl RefUnwindSafe for SqlTypeName
impl Send for SqlTypeName
impl Sync for SqlTypeName
impl Unpin for SqlTypeName
impl UnsafeUnpin for SqlTypeName
impl UnwindSafe for SqlTypeName
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