pub struct PythonIdentifier {
pub module: Option<String>,
pub name: String,
}Expand description
An Python identifier, either local (with module = None) or global (with module = Some(_))
Fields§
§module: Option<String>§name: StringTrait Implementations§
Source§impl Clone for PythonIdentifier
impl Clone for PythonIdentifier
Source§fn clone(&self) -> PythonIdentifier
fn clone(&self) -> PythonIdentifier
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 PythonIdentifier
impl Debug for PythonIdentifier
Source§impl From<PythonIdentifier> for TypeHintExpr
impl From<PythonIdentifier> for TypeHintExpr
Source§fn from(value: PythonIdentifier) -> Self
fn from(value: PythonIdentifier) -> Self
Converts to this type from the input type.
Source§impl Hash for PythonIdentifier
impl Hash for PythonIdentifier
Source§impl PartialEq for PythonIdentifier
impl PartialEq for PythonIdentifier
impl Eq for PythonIdentifier
impl StructuralPartialEq for PythonIdentifier
Auto Trait Implementations§
impl Freeze for PythonIdentifier
impl RefUnwindSafe for PythonIdentifier
impl Send for PythonIdentifier
impl Sync for PythonIdentifier
impl Unpin for PythonIdentifier
impl UnwindSafe for PythonIdentifier
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