Enum pyo3_macros_backend::pymethod::PropertyType
source · [−]pub enum PropertyType<'a> {
Descriptor {
field_index: usize,
field: &'a Field,
python_name: Option<&'a NameAttribute>,
},
Function {
self_type: &'a SelfType,
spec: &'a FnSpec<'a>,
},
}
Variants
Descriptor
Function
Implementations
sourceimpl PropertyType<'_>
impl PropertyType<'_>
fn null_terminated_python_name(&self) -> Result<LitStr>
fn deprecations(&self) -> Option<&Deprecations>
fn doc(&self) -> Cow<'_, PythonDoc>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PropertyType<'a>
impl<'a> !Send for PropertyType<'a>
impl<'a> !Sync for PropertyType<'a>
impl<'a> Unpin for PropertyType<'a>
impl<'a> UnwindSafe for PropertyType<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more