Struct customasm::util::FileServerReal
source · pub struct FileServerReal { /* private fields */ }
Implementations§
Trait Implementations§
source§impl FileServer for FileServerReal
impl FileServer for FileServerReal
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 FileServerReal
impl RefUnwindSafe for FileServerReal
impl Send for FileServerReal
impl Sync for FileServerReal
impl Unpin for FileServerReal
impl UnwindSafe for FileServerReal
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