pub enum OpContext {
TemplateDefinition,
TemplateAdhoc,
DriverApplicationCapture,
ModuleDefinition,
DriverApplicationPassed,
}Expand description
Where are we finding these options?
Variants§
TemplateDefinition
Just before a precanned template
define_derivae_deftly!{ Template OPTIONS: ...
TemplateAdhoc
Just before an adhoc template
derive_deftly_adhoc!{ Driver OPTIONS: ...
DriverApplicationCapture
In the driver’s application
#[derive_deftly(Template[OPTIONS])]
ModuleDefinition
Module definition.
define_derivae_deftly_module!{ Module OPTIONS: ...
DriverApplicationPassed
Driver’s application options as they appear in the ultimate expansion
With the versioning, so 1 1 AOPTIONS.
Implementations§
Source§impl OpContext
impl OpContext
fn allowed(self, option: &DdOption) -> Result<()>
fn parse_versions(self, input: ParseStream<'_>) -> Result<OpCompatVersions>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpContext
impl RefUnwindSafe for OpContext
impl Send for OpContext
impl Sync for OpContext
impl Unpin for OpContext
impl UnwindSafe for OpContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more