MCPcopy Create free account
hub / github.com/archlinux/alpm / version

Method version

alpm-types/src/env.rs:560–562  ·  view source on GitHub ↗

Returns a reference to the [`FullVersion`]. # Examples ``` use std::str::FromStr; use alpm_types::{FullVersion, InstalledPackage}; # fn main() -> Result<(), alpm_types::Error> { let file_name = InstalledPackage::new("example".parse()?, "1:1.0.0-1".parse()?, "x86_64".parse()?); assert_eq!(file_name.version(), &FullVersion::from_str("1:1.0.0-1")?); # Ok(()) # } ```

(&self)

Source from the content-addressed store, hash-verified

558 /// Returns a reference to the [`Name`].
559 ///
560 /// # Examples
561 ///
562 /// ```
563 /// use std::str::FromStr;
564 ///
565 /// use alpm_types::{InstalledPackage, Name};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected