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>
Implementations§
Source§impl RawPackageName
impl RawPackageName
Sourcepub(crate) fn parser(input: &mut &str) -> ModalResult<Self>
pub(crate) fn parser(input: &mut &str) -> ModalResult<Self>
Recognizes a RawPackageName
in the output of the alpm-pkgbuild-bride
script.
This parser is aware of its surrounding and consumes preceding spaces and until the eol.
§Errors
Returns an error if no RawPackageName
is found in input
.
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 · 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 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§
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