pub struct CrateFileDataDesc {
pub data_type: FileDataType,
pub range: Range<usize>,
}
Expand description
Describes a crate file with its data type and range in the crate’s data buffer.
This struct is used to quickly access the file’s content and its encoding format.
Fields§
§data_type: FileDataType
The data type of the file (UTF-8 or Non-UTF-8).
range: Range<usize>
The byte range of the file content within the crate’s data buffer.
Trait Implementations§
Source§impl Clone for CrateFileDataDesc
impl Clone for CrateFileDataDesc
Source§fn clone(&self) -> CrateFileDataDesc
fn clone(&self) -> CrateFileDataDesc
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 CrateFileDataDesc
impl Debug for CrateFileDataDesc
Source§impl Default for CrateFileDataDesc
impl Default for CrateFileDataDesc
Source§fn default() -> CrateFileDataDesc
fn default() -> CrateFileDataDesc
Returns the “default value” for a type. Read more
Source§impl Hash for CrateFileDataDesc
impl Hash for CrateFileDataDesc
Source§impl PartialEq for CrateFileDataDesc
impl PartialEq for CrateFileDataDesc
impl Eq for CrateFileDataDesc
impl StructuralPartialEq for CrateFileDataDesc
Auto Trait Implementations§
impl Freeze for CrateFileDataDesc
impl RefUnwindSafe for CrateFileDataDesc
impl Send for CrateFileDataDesc
impl Sync for CrateFileDataDesc
impl Unpin for CrateFileDataDesc
impl UnwindSafe for CrateFileDataDesc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.