pub enum VersionOrSoname {
Version(PackageVersion),
Soname(SharedObjectName),
}
Expand description
Provides either a PackageVersion
or a SharedObjectName
.
This enum is used when creating SonameV1
.
Variants§
Implementations§
Source§impl VersionOrSoname
impl VersionOrSoname
Sourcepub fn parser(input: &mut &str) -> ModalResult<Self>
pub fn parser(input: &mut &str) -> ModalResult<Self>
Recognizes a PackageVersion
or SharedObjectName
in a string slice.
First attempts to recognize a SharedObjectName
and if that fails, falls back to
recognizing a PackageVersion
.
Trait Implementations§
Source§impl Clone for VersionOrSoname
impl Clone for VersionOrSoname
Source§fn clone(&self) -> VersionOrSoname
fn clone(&self) -> VersionOrSoname
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 VersionOrSoname
impl Debug for VersionOrSoname
Source§impl Display for VersionOrSoname
impl Display for VersionOrSoname
Source§impl FromStr for VersionOrSoname
impl FromStr for VersionOrSoname
Source§impl PartialEq for VersionOrSoname
impl PartialEq for VersionOrSoname
impl Eq for VersionOrSoname
impl StructuralPartialEq for VersionOrSoname
Auto Trait Implementations§
impl Freeze for VersionOrSoname
impl RefUnwindSafe for VersionOrSoname
impl Send for VersionOrSoname
impl Sync for VersionOrSoname
impl Unpin for VersionOrSoname
impl UnwindSafe for VersionOrSoname
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