Struct customasm::util::FileServerMock
source · pub struct FileServerMock { /* private fields */ }
Implementations§
Trait Implementations§
source§impl FileServer for FileServerMock
impl FileServer for FileServerMock
fn get_handle( &mut self, report: &mut Report, span: Option<Span>, filename: &str, ) -> Result<FileServerHandle, ()>
fn get_filename(&self, file_handle: FileServerHandle) -> &str
fn get_bytes( &self, _report: &mut Report, _span: Option<Span>, file_handle: FileServerHandle, ) -> Result<Vec<u8>, ()>
fn write_bytes( &mut self, _report: &mut Report, _span: Option<Span>, filename: &str, data: &Vec<u8>, ) -> Result<(), ()>
fn get_handle_unwrap(&mut self, filename: &str) -> FileServerHandle
fn get_bytes_unwrap(&self, file_handle: FileServerHandle) -> Vec<u8> ⓘ
fn get_str( &self, report: &mut Report, span: Option<Span>, file_handle: FileServerHandle, ) -> Result<String, ()>
fn get_str_unwrap(&self, file_handle: FileServerHandle) -> String
fn get_excerpt(&self, span: Span) -> String
Auto Trait Implementations§
impl Freeze for FileServerMock
impl RefUnwindSafe for FileServerMock
impl Send for FileServerMock
impl Sync for FileServerMock
impl Unpin for FileServerMock
impl UnwindSafe for FileServerMock
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