#[non_exhaustive]pub enum SpecVersion {
V1,
V2,
V3,
Latest,
}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 SpecVersion
impl SpecVersion
pub fn all() -> &'static [SpecVersion]
Trait Implementations§
Source§impl Clone for SpecVersion
impl Clone for SpecVersion
Source§fn clone(&self) -> SpecVersion
fn clone(&self) -> SpecVersion
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 moreimpl Copy for SpecVersion
Source§impl Debug for SpecVersion
impl Debug for SpecVersion
Source§impl From<&SpecVersion> for SpecVersion
impl From<&SpecVersion> for SpecVersion
Source§fn from(val: &SpecVersion) -> Self
fn from(val: &SpecVersion) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SpecVersion
impl RefUnwindSafe for SpecVersion
impl Send for SpecVersion
impl Sync for SpecVersion
impl Unpin for SpecVersion
impl UnsafeUnpin for SpecVersion
impl UnwindSafe for SpecVersion
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