#[non_exhaustive]pub enum ProjectDevice {
Short(ShortDevice),
Long(ProjectLongDevice),
}Expand description
One effective service device with short and long syntax kept distinct.
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.
Short(ShortDevice)
A raw short scalar, including path, CDI, deferred, and opaque spellings.
Long(ProjectLongDevice)
A mapping-form device whose nested values retain their own provenance.
Trait Implementations§
Source§impl Clone for ProjectDevice
impl Clone for ProjectDevice
Source§fn clone(&self) -> ProjectDevice
fn clone(&self) -> ProjectDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProjectDevice
impl Debug for ProjectDevice
impl Eq for ProjectDevice
Source§impl PartialEq for ProjectDevice
impl PartialEq for ProjectDevice
impl StructuralPartialEq for ProjectDevice
Auto Trait Implementations§
impl Freeze for ProjectDevice
impl RefUnwindSafe for ProjectDevice
impl Send for ProjectDevice
impl Sync for ProjectDevice
impl Unpin for ProjectDevice
impl UnsafeUnpin for ProjectDevice
impl UnwindSafe for ProjectDevice
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