Struct partition_identity::PartitionIdentifiers
source · pub struct PartitionIdentifiers { /* private fields */ }
Expand description
A collection of all discoverable identifiers for a partition.
Implementations
sourceimpl PartitionIdentifiers
impl PartitionIdentifiers
sourcepub fn from_path<P: AsRef<Path>>(path: P) -> PartitionIdentifiers
pub fn from_path<P: AsRef<Path>>(path: P) -> PartitionIdentifiers
Fetches all discoverable identifiers for a partition by the path to that partition.
sourcepub fn matches(&self, id: &PartitionID) -> bool
pub fn matches(&self, id: &PartitionID) -> bool
Checks if the given identity matches one of the available identifiers.
Trait Implementations
sourceimpl Clone for PartitionIdentifiers
impl Clone for PartitionIdentifiers
sourcefn clone(&self) -> PartitionIdentifiers
fn clone(&self) -> PartitionIdentifiers
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PartitionIdentifiers
impl Debug for PartitionIdentifiers
sourceimpl Default for PartitionIdentifiers
impl Default for PartitionIdentifiers
sourcefn default() -> PartitionIdentifiers
fn default() -> PartitionIdentifiers
Returns the “default value” for a type. Read more
sourceimpl Hash for PartitionIdentifiers
impl Hash for PartitionIdentifiers
sourceimpl PartialEq<PartitionIdentifiers> for PartitionIdentifiers
impl PartialEq<PartitionIdentifiers> for PartitionIdentifiers
sourcefn eq(&self, other: &PartitionIdentifiers) -> bool
fn eq(&self, other: &PartitionIdentifiers) -> bool
impl StructuralPartialEq for PartitionIdentifiers
Auto Trait Implementations
impl RefUnwindSafe for PartitionIdentifiers
impl Send for PartitionIdentifiers
impl Sync for PartitionIdentifiers
impl Unpin for PartitionIdentifiers
impl UnwindSafe for PartitionIdentifiers
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more