Struct fuchsia_pkg::PackagePath
source · pub struct PackagePath { /* private fields */ }
Expand description
A Fuchsia Package Path. Paths must currently be “{name}/{variant}”.
Implementations§
source§impl PackagePath
impl PackagePath
pub const MAX_NAME_BYTES: usize = 255usize
pub const MAX_VARIANT_BYTES: usize = 255usize
pub fn from_name_and_variant(name: PackageName, variant: PackageVariant) -> Self
pub fn name(&self) -> &PackageName
pub fn variant(&self) -> &PackageVariant
pub fn into_name_and_variant(self) -> (PackageName, PackageVariant)
Trait Implementations§
source§impl Clone for PackagePath
impl Clone for PackagePath
source§fn clone(&self) -> PackagePath
fn clone(&self) -> PackagePath
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 PackagePath
impl Debug for PackagePath
source§impl Display for PackagePath
impl Display for PackagePath
source§impl FromStr for PackagePath
impl FromStr for PackagePath
source§impl Hash for PackagePath
impl Hash for PackagePath
source§impl Ord for PackagePath
impl Ord for PackagePath
source§fn cmp(&self, other: &PackagePath) -> Ordering
fn cmp(&self, other: &PackagePath) -> 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 PackagePath
impl PartialEq for PackagePath
source§fn eq(&self, other: &PackagePath) -> bool
fn eq(&self, other: &PackagePath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PackagePath
impl PartialOrd for PackagePath
source§fn partial_cmp(&self, other: &PackagePath) -> Option<Ordering>
fn partial_cmp(&self, other: &PackagePath) -> 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 moreimpl Eq for PackagePath
impl StructuralPartialEq for PackagePath
Auto Trait Implementations§
impl Freeze for PackagePath
impl RefUnwindSafe for PackagePath
impl Send for PackagePath
impl Sync for PackagePath
impl Unpin for PackagePath
impl UnwindSafe for PackagePath
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)