pub struct ImportInfo { /* private fields */ }
Expand description
Describes the conditions that we imported the file
Implementations§
Source§impl ImportInfo
impl ImportInfo
pub fn new( importer_id: ImporterId, source_file: CanonicalPathReference, path_references: HashMap<PathReferenceHash, CanonicalPathReference, RandomState>, source_file_modified_timestamp: u64, source_file_size: u64, import_data_contents_hash: u64, ) -> ImportInfo
pub fn importer_id(&self) -> ImporterId
pub fn source_file(&self) -> &CanonicalPathReference
pub fn importable_name(&self) -> &ImportableName
pub fn path_references( &self, ) -> &HashMap<PathReferenceHash, CanonicalPathReference, RandomState>
pub fn source_file_modified_timestamp(&self) -> u64
pub fn source_file_size(&self) -> u64
pub fn import_data_contents_hash(&self) -> u64
Trait Implementations§
Source§impl Clone for ImportInfo
impl Clone for ImportInfo
Source§fn clone(&self) -> ImportInfo
fn clone(&self) -> ImportInfo
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 ImportInfo
impl Debug for ImportInfo
Auto Trait Implementations§
impl Freeze for ImportInfo
impl RefUnwindSafe for ImportInfo
impl Send for ImportInfo
impl Sync for ImportInfo
impl Unpin for ImportInfo
impl UnwindSafe for ImportInfo
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