pub struct ComponentUrl { /* private fields */ }
Expand description
A URL locating a Fuchsia component. Can be either absolute or relative.
See AbsoluteComponentUrl
and RelativeComponentUrl
for more details.
https://fuchsia.dev/fuchsia-src/concepts/packages/package_url
Implementations§
Source§impl ComponentUrl
impl ComponentUrl
Sourcepub fn parse(url: &str) -> Result<Self, ParseError>
pub fn parse(url: &str) -> Result<Self, ParseError>
Parse a Component URL.
Sourcepub fn package_url(&self) -> &PackageUrl
pub fn package_url(&self) -> &PackageUrl
The package URL of this URL (this URL without the resource path).
Trait Implementations§
Source§impl Clone for ComponentUrl
impl Clone for ComponentUrl
Source§fn clone(&self) -> ComponentUrl
fn clone(&self) -> ComponentUrl
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 ComponentUrl
impl Debug for ComponentUrl
Source§impl<'de> Deserialize<'de> for ComponentUrl
impl<'de> Deserialize<'de> for ComponentUrl
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 ComponentUrl
impl Display for ComponentUrl
Source§impl FromStr for ComponentUrl
impl FromStr for ComponentUrl
Source§impl Hash for ComponentUrl
impl Hash for ComponentUrl
Source§impl Ord for ComponentUrl
impl Ord for ComponentUrl
Source§fn cmp(&self, other: &ComponentUrl) -> Ordering
fn cmp(&self, other: &ComponentUrl) -> 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 ComponentUrl
impl PartialEq for ComponentUrl
Source§impl PartialOrd for ComponentUrl
impl PartialOrd for ComponentUrl
Source§impl Serialize for ComponentUrl
impl Serialize for ComponentUrl
Source§impl TryFrom<&str> for ComponentUrl
impl TryFrom<&str> for ComponentUrl
impl Eq for ComponentUrl
impl StructuralPartialEq for ComponentUrl
Auto Trait Implementations§
impl Freeze for ComponentUrl
impl RefUnwindSafe for ComponentUrl
impl Send for ComponentUrl
impl Sync for ComponentUrl
impl Unpin for ComponentUrl
impl UnwindSafe for ComponentUrl
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
)