pub struct ProjectionName(/* private fields */);Implementations§
Source§impl ProjectionName
impl ProjectionName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, ProjectionTextError>
pub fn new(value: impl AsRef<str>) -> Result<Self, ProjectionTextError>
Creates a projection name from non-empty text.
§Errors
Returns ProjectionTextError::Empty when the trimmed value is empty.
pub fn as_str(&self) -> &str
pub fn into_string(self) -> String
Trait Implementations§
Source§impl AsRef<str> for ProjectionName
impl AsRef<str> for ProjectionName
Source§impl Clone for ProjectionName
impl Clone for ProjectionName
Source§fn clone(&self) -> ProjectionName
fn clone(&self) -> ProjectionName
Returns a duplicate of the value. Read more
1.0.0 · 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 ProjectionName
impl Debug for ProjectionName
Source§impl Display for ProjectionName
impl Display for ProjectionName
Source§impl FromStr for ProjectionName
impl FromStr for ProjectionName
Source§impl Hash for ProjectionName
impl Hash for ProjectionName
Source§impl Ord for ProjectionName
impl Ord for ProjectionName
Source§fn cmp(&self, other: &ProjectionName) -> Ordering
fn cmp(&self, other: &ProjectionName) -> Ordering
1.21.0 · 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 ProjectionName
impl PartialEq for ProjectionName
Source§impl PartialOrd for ProjectionName
impl PartialOrd for ProjectionName
impl Eq for ProjectionName
impl StructuralPartialEq for ProjectionName
Auto Trait Implementations§
impl Freeze for ProjectionName
impl RefUnwindSafe for ProjectionName
impl Send for ProjectionName
impl Sync for ProjectionName
impl Unpin for ProjectionName
impl UnsafeUnpin for ProjectionName
impl UnwindSafe for ProjectionName
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