pub struct FileLibrary { /* private fields */ }
Implementations§
Source§impl FileLibrary
impl FileLibrary
pub fn new() -> FileLibrary
pub fn add_file( &mut self, file_name: FilePath, file_source: FileSource, ) -> FileID
pub fn get_line(&self, start: usize, file_id: FileID) -> Option<usize>
pub fn to_storage(&self) -> &SimpleFiles<FilePath, FileSource>
Trait Implementations§
Source§impl Clone for FileLibrary
impl Clone for FileLibrary
Source§fn clone(&self) -> FileLibrary
fn clone(&self) -> FileLibrary
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for FileLibrary
impl RefUnwindSafe for FileLibrary
impl Send for FileLibrary
impl Sync for FileLibrary
impl Unpin for FileLibrary
impl UnwindSafe for FileLibrary
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