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