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 PackageName
impl From<RelativePackageUrl> for PackageName
Source§fn from(url: RelativePackageUrl) -> Self
fn from(url: RelativePackageUrl) -> 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 for RelativePackageUrl
impl PartialEq for RelativePackageUrl
Source§impl PartialOrd for RelativePackageUrl
impl PartialOrd for RelativePackageUrl
Source§impl Serialize for RelativePackageUrl
impl Serialize for RelativePackageUrl
Source§impl TryFrom<&str> for RelativePackageUrl
impl TryFrom<&str> for RelativePackageUrl
impl Eq for RelativePackageUrl
impl StructuralPartialEq for RelativePackageUrl
Auto Trait Implementations§
impl Freeze for RelativePackageUrl
impl RefUnwindSafe for RelativePackageUrl
impl Send for RelativePackageUrl
impl Sync for RelativePackageUrl
impl Unpin for RelativePackageUrl
impl UnwindSafe for RelativePackageUrl
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
)