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
Source§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§impl PartialOrd for PackageVariant
impl PartialOrd for PackageVariant
Source§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
Source§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 StructuralPartialEq for PackageVariant
Auto Trait Implementations§
impl Freeze for PackageVariant
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)