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