pub struct Directive<'a, C> {
pub name: &'a str,
pub once: bool,
pub setup: fn(&mut Cursor<'_>, &mut BlockContext<C>) -> Result<(), Error>,
}Expand description
A known Directive and its setup function, in Plugin Order.
Fields§
§name: &'a str§once: bool§setup: fn(&mut Cursor<'_>, &mut BlockContext<C>) -> Result<(), Error>Auto Trait Implementations§
impl<'a, C> Forget for Directive<'a, C>
impl<'a, C> Freeze for Directive<'a, C>
impl<'a, C> Move for Directive<'a, C>
impl<'a, C> RefUnwindSafe for Directive<'a, C>
impl<'a, C> Send for Directive<'a, C>
impl<'a, C> Sync for Directive<'a, C>
impl<'a, C> Unpin for Directive<'a, C>
impl<'a, C> UnsafeUnpin for Directive<'a, C>
impl<'a, C> UnwindSafe for Directive<'a, C>
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