pub struct ConstValue { /* private fields */ }
Implementations§
Source§impl ConstValue
impl ConstValue
pub fn new(path: DocumentPath, ctx: &Context<'_>) -> Result<Self, Error>
pub fn allowed_types() -> HashSet<AllowedType>
pub fn build( _: &mut State, path: DocumentPath, ctx: &Context<'_>, ) -> Result<Box<dyn Attribute>, Error>
Trait Implementations§
Source§impl Attribute for ConstValue
impl Attribute for ConstValue
Auto Trait Implementations§
impl Freeze for ConstValue
impl RefUnwindSafe for ConstValue
impl Send for ConstValue
impl Sync for ConstValue
impl Unpin for ConstValue
impl UnwindSafe for ConstValue
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