pub struct GoCompatibilityVersion(/* private fields */);Expand description
Go compatibility version metadata.
Implementations§
Trait Implementations§
Source§impl Clone for GoCompatibilityVersion
impl Clone for GoCompatibilityVersion
Source§fn clone(&self) -> GoCompatibilityVersion
fn clone(&self) -> GoCompatibilityVersion
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 GoCompatibilityVersion
impl Debug for GoCompatibilityVersion
Source§impl Display for GoCompatibilityVersion
impl Display for GoCompatibilityVersion
Source§impl FromStr for GoCompatibilityVersion
impl FromStr for GoCompatibilityVersion
Source§type Err = GoVersionParseError
type Err = GoVersionParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<GoCompatibilityVersion, <GoCompatibilityVersion as FromStr>::Err>
fn from_str( input: &str, ) -> Result<GoCompatibilityVersion, <GoCompatibilityVersion as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for GoCompatibilityVersion
impl Hash for GoCompatibilityVersion
Source§impl Ord for GoCompatibilityVersion
impl Ord for GoCompatibilityVersion
Source§fn cmp(&self, other: &GoCompatibilityVersion) -> Ordering
fn cmp(&self, other: &GoCompatibilityVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GoCompatibilityVersion
impl PartialEq for GoCompatibilityVersion
Source§fn eq(&self, other: &GoCompatibilityVersion) -> bool
fn eq(&self, other: &GoCompatibilityVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GoCompatibilityVersion
impl PartialOrd for GoCompatibilityVersion
Source§impl TryFrom<&str> for GoCompatibilityVersion
impl TryFrom<&str> for GoCompatibilityVersion
Source§type Error = GoVersionParseError
type Error = GoVersionParseError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<GoCompatibilityVersion, <GoCompatibilityVersion as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<GoCompatibilityVersion, <GoCompatibilityVersion as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for GoCompatibilityVersion
impl Eq for GoCompatibilityVersion
impl StructuralPartialEq for GoCompatibilityVersion
Auto Trait Implementations§
impl Freeze for GoCompatibilityVersion
impl RefUnwindSafe for GoCompatibilityVersion
impl Send for GoCompatibilityVersion
impl Sync for GoCompatibilityVersion
impl Unpin for GoCompatibilityVersion
impl UnsafeUnpin for GoCompatibilityVersion
impl UnwindSafe for GoCompatibilityVersion
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