pub enum Directive<'a> {
Module {
module_path: &'a str,
},
Go {
version: Identifier<'a>,
},
Require {
specs: Vec<Context<'a, (&'a str, Identifier<'a>)>>,
},
Toolchain {
name: Identifier<'a>,
},
Godebug {
specs: Vec<Context<'a, (&'a str, &'a str)>>,
},
Replace {
specs: Vec<Context<'a, ReplaceSpec<'a>>>,
},
Exclude {
specs: Vec<Context<'a, (&'a str, Identifier<'a>)>>,
},
Retract {
specs: Vec<Context<'a, RetractSpec<'a>>>,
},
}Variants§
Module
Go
Fields
§
version: Identifier<'a>Require
Fields
§
specs: Vec<Context<'a, (&'a str, Identifier<'a>)>>Toolchain
Fields
§
name: Identifier<'a>Godebug
Replace
Fields
§
specs: Vec<Context<'a, ReplaceSpec<'a>>>Exclude
Fields
§
specs: Vec<Context<'a, (&'a str, Identifier<'a>)>>Retract
Fields
§
specs: Vec<Context<'a, RetractSpec<'a>>>Trait Implementations§
source§impl<'a> PartialEq for Directive<'a>
impl<'a> PartialEq for Directive<'a>
impl<'a> Eq for Directive<'a>
impl<'a> StructuralPartialEq for Directive<'a>
Auto Trait Implementations§
impl<'a> Freeze for Directive<'a>
impl<'a> RefUnwindSafe for Directive<'a>
impl<'a> Send for Directive<'a>
impl<'a> Sync for Directive<'a>
impl<'a> Unpin for Directive<'a>
impl<'a> UnwindSafe for Directive<'a>
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