Struct fuchsia_pkg::PackageName
source · pub struct PackageName(/* private fields */);
Expand description
A Fuchsia Package Name. Package names are the first segment of the path. https://fuchsia.dev/fuchsia-src/concepts/packages/package_url#package-name
Trait Implementations§
source§impl AsRef<str> for PackageName
impl AsRef<str> for PackageName
source§impl Clone for PackageName
impl Clone for PackageName
source§fn clone(&self) -> PackageName
fn clone(&self) -> PackageName
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 PackageName
impl Debug for PackageName
source§impl<'de> Deserialize<'de> for PackageName
impl<'de> Deserialize<'de> for PackageName
source§fn deserialize<D>(
deserializer: D,
) -> Result<PackageName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PackageName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PackageName
impl Display for PackageName
source§impl From<RelativePackageUrl> for PackageName
impl From<RelativePackageUrl> for PackageName
source§fn from(url: RelativePackageUrl) -> PackageName
fn from(url: RelativePackageUrl) -> PackageName
Converts to this type from the input type.
source§impl FromStr for PackageName
impl FromStr for PackageName
§type Err = PackagePathSegmentError
type Err = PackagePathSegmentError
The associated error which can be returned from parsing.
source§fn from_str(s: &str) -> Result<PackageName, <PackageName as FromStr>::Err>
fn from_str(s: &str) -> Result<PackageName, <PackageName as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for PackageName
impl Hash for PackageName
source§impl Ord for PackageName
impl Ord for PackageName
source§fn cmp(&self, other: &PackageName) -> Ordering
fn cmp(&self, other: &PackageName) -> 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 PackageName
impl PartialEq for PackageName
source§fn eq(&self, other: &PackageName) -> bool
fn eq(&self, other: &PackageName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PackageName
impl PartialOrd for PackageName
source§fn partial_cmp(&self, other: &PackageName) -> Option<Ordering>
fn partial_cmp(&self, other: &PackageName) -> 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 PackageName
impl Serialize for PackageName
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 PackageName
impl TryFrom<String> for PackageName
§type Error = PackagePathSegmentError
type Error = PackagePathSegmentError
The type returned in the event of a conversion error.
source§fn try_from(
value: String,
) -> Result<PackageName, <PackageName as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<PackageName, <PackageName as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for PackageName
impl StructuralPartialEq for PackageName
Auto Trait Implementations§
impl Freeze for PackageName
impl RefUnwindSafe for PackageName
impl Send for PackageName
impl Sync for PackageName
impl Unpin for PackageName
impl UnwindSafe for PackageName
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)