#[non_exhaustive]pub enum CustomSource<'a> {
Json(&'a str),
Cfg(&'a str),
}Expand description
The method by which a custom platform was defined.
Returned by Triple::custom_source and Platform::custom_source.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Json(&'a str)
Target JSON from Platform::new_custom.
This variant can only be returned when the custom feature is enabled.
Cfg(&'a str)
rustc --print=cfg output, from Platform::new_custom_cfg.
Trait Implementations§
Source§impl<'a> Clone for CustomSource<'a>
impl<'a> Clone for CustomSource<'a>
impl<'a> Copy for CustomSource<'a>
Source§impl<'a> Debug for CustomSource<'a>
impl<'a> Debug for CustomSource<'a>
impl<'a> Eq for CustomSource<'a>
Source§impl<'a> PartialEq for CustomSource<'a>
impl<'a> PartialEq for CustomSource<'a>
impl<'a> StructuralPartialEq for CustomSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for CustomSource<'a>
impl<'a> RefUnwindSafe for CustomSource<'a>
impl<'a> Send for CustomSource<'a>
impl<'a> Sync for CustomSource<'a>
impl<'a> Unpin for CustomSource<'a>
impl<'a> UnsafeUnpin for CustomSource<'a>
impl<'a> UnwindSafe for CustomSource<'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