[−][src]Struct appx::PackageFamilyName
e.g. NcsiUwpApp_8wekyb3d8bbwe
-
Refers to a family or set of appx packages/files.
This is comprised of the following underscore separated fields:
Field | Example | Example |
---|---|---|
Name | NcsiUwpApp | CanonicalGroupLimited.Ubuntu20.04onWindows |
PublisherId | 8wekyb3d8bbwe | 79rhkp1fndgsc |
To refer to specific individual packages within the set, see PackageFullName
Examples
NcsiUwpApp_8wekyb3d8bbwe
CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc
CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc
CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc
Corresponds to
powershell Get-AppxPackage ^| Format-Table -Property PackageFamilyName
HKCR\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Families\...
Implementations
impl PackageFamilyName
[src]
pub fn new(pfn: impl Into<Self>) -> Self
[src]
pub fn name(&self) -> &[u16]
[src]
pub fn publisher_id(&self) -> &[u16]
[src]
Methods from Deref<Target = WString>
pub fn units(&self) -> &[u16]
[src]
Get the code units of a UTF16-ish string, without the \0
pub fn units0(&self) -> &[u16]
[src]
Get the code units of a UTF16-ish string, including the \0
pub fn len(&self) -> usize
[src]
Length of the string in code units, without the \0
-terminator
pub fn len0(&self) -> usize
[src]
Length of the string in code units, including the \0
-terminator
pub fn to_os_string(&self) -> OsString
[src]
Convert the UTF16-ish string into an OsString (WTF8 on windows, something messier and possibly lossy on unix)
pub fn as_ptr0(&self) -> *const u16
[src]
Get a pointer to a \0
-terminated buffer for this string
pub fn display<'s>(&'s self) -> impl Display + 's
[src]
Make this string Display-friendly
Trait Implementations
impl Clone for PackageFamilyName
[src]
fn clone(&self) -> PackageFamilyName
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PackageFamilyName
[src]
impl Deref for PackageFamilyName
[src]
impl Display for PackageFamilyName
[src]
impl Eq for PackageFamilyName
[src]
impl<'_> From<&'_ [u16]> for PackageFamilyName
[src]
impl<'_> From<&'_ String> for PackageFamilyName
[src]
impl<'_> From<&'_ Vec<u16>> for PackageFamilyName
[src]
impl<'_> From<&'_ str> for PackageFamilyName
[src]
impl From<String> for PackageFamilyName
[src]
impl From<Vec<u16>> for PackageFamilyName
[src]
impl Hash for PackageFamilyName
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PackageFamilyName
[src]
fn cmp(&self, other: &PackageFamilyName) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<PackageFamilyName> for PackageFamilyName
[src]
fn eq(&self, other: &PackageFamilyName) -> bool
[src]
fn ne(&self, other: &PackageFamilyName) -> bool
[src]
impl PartialOrd<PackageFamilyName> for PackageFamilyName
[src]
fn partial_cmp(&self, other: &PackageFamilyName) -> Option<Ordering>
[src]
fn lt(&self, other: &PackageFamilyName) -> bool
[src]
fn le(&self, other: &PackageFamilyName) -> bool
[src]
fn gt(&self, other: &PackageFamilyName) -> bool
[src]
fn ge(&self, other: &PackageFamilyName) -> bool
[src]
impl StructuralEq for PackageFamilyName
[src]
impl StructuralPartialEq for PackageFamilyName
[src]
Auto Trait Implementations
impl RefUnwindSafe for PackageFamilyName
impl Send for PackageFamilyName
impl Sync for PackageFamilyName
impl Unpin for PackageFamilyName
impl UnwindSafe for PackageFamilyName
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,