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 for RelativeComponentUrl
impl PartialEq for RelativeComponentUrl
Source§impl PartialOrd for RelativeComponentUrl
impl PartialOrd for RelativeComponentUrl
Source§impl Serialize for RelativeComponentUrl
impl Serialize for RelativeComponentUrl
Source§impl TryFrom<&str> for RelativeComponentUrl
impl TryFrom<&str> for RelativeComponentUrl
impl Eq for RelativeComponentUrl
impl StructuralPartialEq for RelativeComponentUrl
Auto Trait Implementations§
impl Freeze for RelativeComponentUrl
impl RefUnwindSafe for RelativeComponentUrl
impl Send for RelativeComponentUrl
impl Sync for RelativeComponentUrl
impl Unpin for RelativeComponentUrl
impl UnwindSafe for RelativeComponentUrl
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
)