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§impl PartialOrd for PackagePath
impl PartialOrd for PackagePath
impl 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§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
)