Struct fuchsia_url::RelativePackageUrl
source · pub struct RelativePackageUrl { /* private fields */ }
Expand description
A relative URL locating a Fuchsia package. Used with a subpackage context.
Has the form “
- “name” is a valid package name https://fuchsia.dev/fuchsia-src/concepts/packages/package_url
Implementations§
source§impl RelativePackageUrl
impl RelativePackageUrl
sourcepub fn parse(url: &str) -> Result<Self, ParseError>
pub fn parse(url: &str) -> Result<Self, ParseError>
Parse a relative package URL.
Trait Implementations§
source§impl AsRef<str> for RelativePackageUrl
impl AsRef<str> for RelativePackageUrl
source§impl Clone for RelativePackageUrl
impl Clone for RelativePackageUrl
source§fn clone(&self) -> RelativePackageUrl
fn clone(&self) -> RelativePackageUrl
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 RelativePackageUrl
impl Debug for RelativePackageUrl
source§impl<'de> Deserialize<'de> for RelativePackageUrl
impl<'de> Deserialize<'de> for RelativePackageUrl
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 RelativePackageUrl
impl Display for RelativePackageUrl
source§impl From<&RelativePackageUrl> for String
impl From<&RelativePackageUrl> for String
source§fn from(url: &RelativePackageUrl) -> Self
fn from(url: &RelativePackageUrl) -> Self
Converts to this type from the input type.
source§impl From<PackageName> for RelativePackageUrl
impl From<PackageName> for RelativePackageUrl
source§fn from(path: PackageName) -> Self
fn from(path: PackageName) -> 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 RelativePackageUrl
impl FromStr for RelativePackageUrl
source§impl Hash for RelativePackageUrl
impl Hash for RelativePackageUrl
source§impl Ord for RelativePackageUrl
impl Ord for RelativePackageUrl
source§fn cmp(&self, other: &RelativePackageUrl) -> Ordering
fn cmp(&self, other: &RelativePackageUrl) -> 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<RelativePackageUrl> for RelativePackageUrl
impl PartialEq<RelativePackageUrl> for RelativePackageUrl
source§fn eq(&self, other: &RelativePackageUrl) -> bool
fn eq(&self, other: &RelativePackageUrl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RelativePackageUrl> for RelativePackageUrl
impl PartialOrd<RelativePackageUrl> for RelativePackageUrl
source§fn partial_cmp(&self, other: &RelativePackageUrl) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativePackageUrl) -> 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