Struct pyo3_macros_backend::konst::ConstAttributes
source · pub struct ConstAttributes<'ctx> {
pub is_class_attr: bool,
pub name: Option<KeywordAttribute<name, NameLitStr>>,
pub deprecations: Deprecations<'ctx>,
}
Fields§
§is_class_attr: bool
§name: Option<KeywordAttribute<name, NameLitStr>>
§deprecations: Deprecations<'ctx>
Implementations§
source§impl<'ctx> ConstAttributes<'ctx>
impl<'ctx> ConstAttributes<'ctx>
pub fn from_attrs(attrs: &mut Vec<Attribute>, ctx: &'ctx Ctx) -> Result<Self>
fn set_name(&mut self, name: KeywordAttribute<name, NameLitStr>) -> Result<()>
Auto Trait Implementations§
impl<'ctx> Freeze for ConstAttributes<'ctx>
impl<'ctx> RefUnwindSafe for ConstAttributes<'ctx>
impl<'ctx> !Send for ConstAttributes<'ctx>
impl<'ctx> !Sync for ConstAttributes<'ctx>
impl<'ctx> Unpin for ConstAttributes<'ctx>
impl<'ctx> UnwindSafe for ConstAttributes<'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