Enum fuchsia_url::PackageUrl
source · pub enum PackageUrl {
Absolute(AbsolutePackageUrl),
Relative(RelativePackageUrl),
}
Expand description
A URL locating a Fuchsia package. Can be either absolute or relative.
See AbsolutePackageUrl
and RelativePackageUrl
for more details.
https://fuchsia.dev/fuchsia-src/concepts/packages/package_url
Variants§
Absolute(AbsolutePackageUrl)
Relative(RelativePackageUrl)
Implementations§
source§impl PackageUrl
impl PackageUrl
sourcepub fn parse(url: &str) -> Result<Self, ParseError>
pub fn parse(url: &str) -> Result<Self, ParseError>
Parse a package URL.
Trait Implementations§
source§impl Clone for PackageUrl
impl Clone for PackageUrl
source§fn clone(&self) -> PackageUrl
fn clone(&self) -> PackageUrl
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 PackageUrl
impl Debug for PackageUrl
source§impl<'de> Deserialize<'de> for PackageUrl
impl<'de> Deserialize<'de> for PackageUrl
source§fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(de: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PackageUrl
impl Display for PackageUrl
source§impl From<AbsolutePackageUrl> for PackageUrl
impl From<AbsolutePackageUrl> for PackageUrl
source§fn from(absolute: AbsolutePackageUrl) -> Self
fn from(absolute: AbsolutePackageUrl) -> Self
Converts to this type from the input type.
source§impl From<RelativePackageUrl> for PackageUrl
impl From<RelativePackageUrl> for PackageUrl
source§fn from(relative: RelativePackageUrl) -> Self
fn from(relative: RelativePackageUrl) -> Self
Converts to this type from the input type.
source§impl FromStr for PackageUrl
impl FromStr for PackageUrl
source§impl Hash for PackageUrl
impl Hash for PackageUrl
source§impl Ord for PackageUrl
impl Ord for PackageUrl
source§fn cmp(&self, other: &PackageUrl) -> Ordering
fn cmp(&self, other: &PackageUrl) -> 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<PackageUrl> for PackageUrl
impl PartialEq<PackageUrl> for PackageUrl
source§fn eq(&self, other: &PackageUrl) -> bool
fn eq(&self, other: &PackageUrl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PackageUrl> for PackageUrl
impl PartialOrd<PackageUrl> for PackageUrl
source§fn partial_cmp(&self, other: &PackageUrl) -> Option<Ordering>
fn partial_cmp(&self, other: &PackageUrl) -> 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 more