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