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