pub struct SharedObjectName(pub(crate) Name);Expand description
A shared object name.
This type wraps a Name and is used to represent the name of a shared object file
that ends with the .so suffix.
Tuple Fields§
§0: NameImplementations§
Sourcepub fn new(name: &str) -> Result<Self, Error>
pub fn new(name: &str) -> Result<Self, Error>
Creates a new SharedObjectName.
§Errors
Returns an error if the input does not end with .so.
§Examples
use alpm_types::SharedObjectName;
let shared_object_name = SharedObjectName::new("example.so")?;Sourcepub fn parser(input: &mut &str) -> ModalResult<Self>
pub fn parser(input: &mut &str) -> ModalResult<Self>
Parses a SharedObjectName from a string slice.
Trait Implementations§
Source§fn clone(&self) -> SharedObjectName
fn clone(&self) -> SharedObjectName
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§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§fn cmp(&self, other: &SharedObjectName) -> Ordering
fn cmp(&self, other: &SharedObjectName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
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