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: Name
Implementations§
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 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 moreAuto 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