Struct pyo3_macros_backend::konst::ConstSpec
source · pub struct ConstSpec<'ctx> {
pub rust_ident: Ident,
pub attributes: ConstAttributes<'ctx>,
}
Fields§
§rust_ident: Ident
§attributes: ConstAttributes<'ctx>
Implementations§
source§impl ConstSpec<'_>
impl ConstSpec<'_>
pub fn python_name(&self) -> Cow<'_, Ident>
sourcepub fn null_terminated_python_name(&self) -> TokenStream
pub fn null_terminated_python_name(&self) -> TokenStream
Null-terminated Python name
Auto Trait Implementations§
impl<'ctx> Freeze for ConstSpec<'ctx>
impl<'ctx> RefUnwindSafe for ConstSpec<'ctx>
impl<'ctx> !Send for ConstSpec<'ctx>
impl<'ctx> !Sync for ConstSpec<'ctx>
impl<'ctx> Unpin for ConstSpec<'ctx>
impl<'ctx> UnwindSafe for ConstSpec<'ctx>
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