pub struct PythonDunderName(/* private fields */);Expand description
Validated Python dunder name metadata.
Implementations§
Source§impl PythonDunderName
impl PythonDunderName
Sourcepub fn new(input: &str) -> Result<PythonDunderName, PythonIdentifierError>
pub fn new(input: &str) -> Result<PythonDunderName, PythonIdentifierError>
Creates Python dunder name metadata.
§Errors
Returns PythonIdentifierError when input is not a valid dunder identifier.
Trait Implementations§
Source§impl Clone for PythonDunderName
impl Clone for PythonDunderName
Source§fn clone(&self) -> PythonDunderName
fn clone(&self) -> PythonDunderName
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 PythonDunderName
impl Debug for PythonDunderName
Source§impl Display for PythonDunderName
impl Display for PythonDunderName
Source§impl Hash for PythonDunderName
impl Hash for PythonDunderName
Source§impl Ord for PythonDunderName
impl Ord for PythonDunderName
Source§fn cmp(&self, other: &PythonDunderName) -> Ordering
fn cmp(&self, other: &PythonDunderName) -> 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 PythonDunderName
impl PartialEq for PythonDunderName
Source§fn eq(&self, other: &PythonDunderName) -> bool
fn eq(&self, other: &PythonDunderName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PythonDunderName
impl PartialOrd for PythonDunderName
impl Eq for PythonDunderName
impl StructuralPartialEq for PythonDunderName
Auto Trait Implementations§
impl Freeze for PythonDunderName
impl RefUnwindSafe for PythonDunderName
impl Send for PythonDunderName
impl Sync for PythonDunderName
impl Unpin for PythonDunderName
impl UnsafeUnpin for PythonDunderName
impl UnwindSafe for PythonDunderName
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