Struct fuchsia_pkg::PackageVariant
source · pub struct PackageVariant(/* private fields */);
Expand description
A Fuchsia Package Variant. Package variants are the optional second segment of the path.
Implementations§
Trait Implementations§
source§impl AsRef<str> for PackageVariant
impl AsRef<str> for PackageVariant
source§impl Clone for PackageVariant
impl Clone for PackageVariant
source§fn clone(&self) -> PackageVariant
fn clone(&self) -> PackageVariant
Returns a copy 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 PackageVariant
impl Debug for PackageVariant
source§impl<'de> Deserialize<'de> for PackageVariant
impl<'de> Deserialize<'de> for PackageVariant
source§fn deserialize<D>(
deserializer: D
) -> Result<PackageVariant, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<PackageVariant, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PackageVariant
impl Display for PackageVariant
source§impl FromStr for PackageVariant
impl FromStr for PackageVariant
§type Err = PackagePathSegmentError
type Err = PackagePathSegmentError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<PackageVariant, <PackageVariant as FromStr>::Err>
fn from_str(s: &str) -> Result<PackageVariant, <PackageVariant as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for PackageVariant
impl Hash for PackageVariant
source§impl Ord for PackageVariant
impl Ord for PackageVariant
source§fn cmp(&self, other: &PackageVariant) -> Ordering
fn cmp(&self, other: &PackageVariant) -> Ordering
1.21.0 · 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 PackageVariant
impl PartialEq for PackageVariant
source§fn eq(&self, other: &PackageVariant) -> bool
fn eq(&self, other: &PackageVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PackageVariant
impl PartialOrd for PackageVariant
source§fn partial_cmp(&self, other: &PackageVariant) -> Option<Ordering>
fn partial_cmp(&self, other: &PackageVariant) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PackageVariant
impl Serialize for PackageVariant
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<String> for PackageVariant
impl TryFrom<String> for PackageVariant
§type Error = PackagePathSegmentError
type Error = PackagePathSegmentError
The type returned in the event of a conversion error.
source§fn try_from(
value: String
) -> Result<PackageVariant, <PackageVariant as TryFrom<String>>::Error>
fn try_from( value: String ) -> Result<PackageVariant, <PackageVariant as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for PackageVariant
impl StructuralEq for PackageVariant
impl StructuralPartialEq for PackageVariant
Auto Trait Implementations§
impl RefUnwindSafe for PackageVariant
impl Send for PackageVariant
impl Sync for PackageVariant
impl Unpin for PackageVariant
impl UnwindSafe for PackageVariant
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