pub struct ControllerPackPaths(/* private fields */);
Expand description
Represents a Mupen pack path or the four controller packs paths.
Implementations§
Source§impl ControllerPackPaths
impl ControllerPackPaths
Sourcepub fn is_mupen(&self) -> bool
pub fn is_mupen(&self) -> bool
Returns true if this ControllerPackPaths is a Mupen pack
Sourcepub fn into_indexed_paths(self) -> Vec<(usize, PathBuf)>
pub fn into_indexed_paths(self) -> Vec<(usize, PathBuf)>
Gets the paths from this ControllerPackPaths
Sourcepub fn first_path(&self) -> &Path
pub fn first_path(&self) -> &Path
Gets the path of the pack that initialized this ControllerPackPaths
Trait Implementations§
Source§impl Clone for ControllerPackPaths
impl Clone for ControllerPackPaths
Source§fn clone(&self) -> ControllerPackPaths
fn clone(&self) -> ControllerPackPaths
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§impl Debug for ControllerPackPaths
impl Debug for ControllerPackPaths
Source§impl Display for ControllerPackPaths
impl Display for ControllerPackPaths
Source§impl From<ControllerPackPaths> for PathBuf
impl From<ControllerPackPaths> for PathBuf
Source§fn from(value: ControllerPackPaths) -> Self
fn from(value: ControllerPackPaths) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ControllerPackPaths
impl PartialEq for ControllerPackPaths
impl StructuralPartialEq for ControllerPackPaths
Auto Trait Implementations§
impl Freeze for ControllerPackPaths
impl RefUnwindSafe for ControllerPackPaths
impl Send for ControllerPackPaths
impl Sync for ControllerPackPaths
impl Unpin for ControllerPackPaths
impl UnwindSafe for ControllerPackPaths
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