pub enum TargetSource {
Host,
Env(String),
Pragma(String),
Explicit,
}Expand description
Where the TargetModel of an expansion came from.
Variants§
Host
The machine the procedural macro itself was compiled for, because nothing said otherwise.
Env(String)
The CINRS_TARGET environment variable, holding this triple.
Pragma(String)
#pragma cinrs target "…", holding this triple.
Explicit
A crate::Options::target the caller set — a test, or a program
driving the front end directly.
Implementations§
Source§impl TargetSource
impl TargetSource
Trait Implementations§
Source§impl Clone for TargetSource
impl Clone for TargetSource
Source§impl Debug for TargetSource
impl Debug for TargetSource
Source§impl Default for TargetSource
impl Default for TargetSource
impl Eq for TargetSource
Source§impl PartialEq for TargetSource
impl PartialEq for TargetSource
impl StructuralPartialEq for TargetSource
Auto Trait Implementations§
impl Freeze for TargetSource
impl RefUnwindSafe for TargetSource
impl Send for TargetSource
impl Sync for TargetSource
impl Unpin for TargetSource
impl UnsafeUnpin for TargetSource
impl UnwindSafe for TargetSource
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