Struct iroh_blobs::util::fs::DataSource
source · pub struct DataSource { /* private fields */ }
Expand description
A data source
Implementations§
source§impl DataSource
impl DataSource
sourcepub fn new(path: PathBuf) -> Self
pub fn new(path: PathBuf) -> Self
Creates a new DataSource
from a PathBuf
.
sourcepub fn with_name(path: PathBuf, name: String) -> Self
pub fn with_name(path: PathBuf, name: String) -> Self
Creates a new DataSource
from a PathBuf
and a custom name.
Trait Implementations§
source§impl Clone for DataSource
impl Clone for DataSource
source§fn clone(&self) -> DataSource
fn clone(&self) -> DataSource
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 moresource§impl Debug for DataSource
impl Debug for DataSource
source§impl From<&Path> for DataSource
impl From<&Path> for DataSource
source§impl From<PathBuf> for DataSource
impl From<PathBuf> for DataSource
source§impl Ord for DataSource
impl Ord for DataSource
source§fn cmp(&self, other: &DataSource) -> Ordering
fn cmp(&self, other: &DataSource) -> 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
source§impl PartialEq for DataSource
impl PartialEq for DataSource
source§fn eq(&self, other: &DataSource) -> bool
fn eq(&self, other: &DataSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DataSource
impl PartialOrd for DataSource
source§fn partial_cmp(&self, other: &DataSource) -> Option<Ordering>
fn partial_cmp(&self, other: &DataSource) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for DataSource
impl StructuralPartialEq for DataSource
Auto Trait Implementations§
impl Freeze for DataSource
impl RefUnwindSafe for DataSource
impl Send for DataSource
impl Sync for DataSource
impl Unpin for DataSource
impl UnwindSafe for DataSource
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.