Enum webc::v1::DirOrFileWithBytes
source · pub enum DirOrFileWithBytes<'a> {
Dir {
path: PathBuf,
},
File {
path: PathBuf,
bytes: &'a [u8],
},
}
Variants§
Implementations§
Trait Implementations§
source§impl<'a> Clone for DirOrFileWithBytes<'a>
impl<'a> Clone for DirOrFileWithBytes<'a>
source§fn clone(&self) -> DirOrFileWithBytes<'a>
fn clone(&self) -> DirOrFileWithBytes<'a>
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<'a> Debug for DirOrFileWithBytes<'a>
impl<'a> Debug for DirOrFileWithBytes<'a>
source§impl<'a> Hash for DirOrFileWithBytes<'a>
impl<'a> Hash for DirOrFileWithBytes<'a>
source§impl<'a> Ord for DirOrFileWithBytes<'a>
impl<'a> Ord for DirOrFileWithBytes<'a>
source§fn cmp(&self, other: &DirOrFileWithBytes<'a>) -> Ordering
fn cmp(&self, other: &DirOrFileWithBytes<'a>) -> 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<'a> PartialEq<DirOrFileWithBytes<'a>> for DirOrFileWithBytes<'a>
impl<'a> PartialEq<DirOrFileWithBytes<'a>> for DirOrFileWithBytes<'a>
source§fn eq(&self, other: &DirOrFileWithBytes<'a>) -> bool
fn eq(&self, other: &DirOrFileWithBytes<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd<DirOrFileWithBytes<'a>> for DirOrFileWithBytes<'a>
impl<'a> PartialOrd<DirOrFileWithBytes<'a>> for DirOrFileWithBytes<'a>
source§fn partial_cmp(&self, other: &DirOrFileWithBytes<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &DirOrFileWithBytes<'a>) -> 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<'a> Eq for DirOrFileWithBytes<'a>
impl<'a> StructuralEq for DirOrFileWithBytes<'a>
impl<'a> StructuralPartialEq for DirOrFileWithBytes<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DirOrFileWithBytes<'a>
impl<'a> Send for DirOrFileWithBytes<'a>
impl<'a> Sync for DirOrFileWithBytes<'a>
impl<'a> Unpin for DirOrFileWithBytes<'a>
impl<'a> UnwindSafe for DirOrFileWithBytes<'a>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.