#[non_exhaustive]pub enum DistTargetFormat {
Dss,
BmopfJson,
PmdJson,
}Expand description
A writable distribution format.
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.
Implementations§
Source§impl DistTargetFormat
impl DistTargetFormat
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The canonical format name (dss, pmd-json, bmopf-json), accepted
back by dist_target_from_name.
Trait Implementations§
Source§impl Clone for DistTargetFormat
impl Clone for DistTargetFormat
Source§fn clone(&self) -> DistTargetFormat
fn clone(&self) -> DistTargetFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DistTargetFormat
impl Debug for DistTargetFormat
Source§impl FromStr for DistTargetFormat
impl FromStr for DistTargetFormat
Source§impl PartialEq for DistTargetFormat
impl PartialEq for DistTargetFormat
impl Copy for DistTargetFormat
impl Eq for DistTargetFormat
impl StructuralPartialEq for DistTargetFormat
Auto Trait Implementations§
impl Freeze for DistTargetFormat
impl RefUnwindSafe for DistTargetFormat
impl Send for DistTargetFormat
impl Sync for DistTargetFormat
impl Unpin for DistTargetFormat
impl UnsafeUnpin for DistTargetFormat
impl UnwindSafe for DistTargetFormat
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