pub struct RawPackageName(pub Option<String>);Expand description
A raw, unchecked package name.
Functions and variables may be specific for a package in a PKGBUILD.
If a PKGBUILD only defines a single package, the package’s package function will be named
package. This is represented by RawPackageName(None).
If a PKGBUILD defines one or more alpm-split-packages, there are as many custom package
functions as there are split packages. Here, each function is named package_<name>, where
<name> denotes an alpm-package-name. This is represented by RawPackageName(Some(name)).
Tuple Fields§
§0: Option<String>Trait Implementations§
Source§impl Clone for RawPackageName
impl Clone for RawPackageName
Source§fn clone(&self) -> RawPackageName
fn clone(&self) -> RawPackageName
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawPackageName
impl Debug for RawPackageName
Source§impl Hash for RawPackageName
impl Hash for RawPackageName
Source§impl PartialEq for RawPackageName
impl PartialEq for RawPackageName
impl Eq for RawPackageName
impl StructuralPartialEq for RawPackageName
Auto Trait Implementations§
impl Freeze for RawPackageName
impl RefUnwindSafe for RawPackageName
impl Send for RawPackageName
impl Sync for RawPackageName
impl Unpin for RawPackageName
impl UnwindSafe for RawPackageName
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)