Representation of a pkgbase
value in a PKGBUILD
Validate and create a new Pkgbase
instance
The pkgbase
value in a PKGBUILD file must follow the following rules:
assert!(Pkgbase::new("-test-PaCkAGe@._+-&*").is_err());
assert!(Pkgbase::new(".TeSt-PaCkAGe@._+-&*").is_ok());
assert!(Pkgbase::new("TEST-PACKAGE@._+-&*").is_ok());
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
Serialize this value into the given Serde serializer. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.