pub struct Remembering<F> {
pub files: F,
/* private fields */
}Expand description
files, with each design file parsed matched against its last parse in
Parses — and remembered there as its last.
Fields§
§files: FImplementations§
Source§impl<F> Remembering<F>
impl<F> Remembering<F>
Sourcepub fn new(files: F) -> Remembering<F>
pub fn new(files: F) -> Remembering<F>
files, remembering their parses from none.
Sourcepub fn with(files: F, parses: &Parses) -> Remembering<F>
pub fn with(files: F, parses: &Parses) -> Remembering<F>
files, remembering their parses in parses, shared.
Trait Implementations§
Source§impl<F: Files> Files for Remembering<F>
impl<F: Files> Files for Remembering<F>
Source§fn parse(&self, path: &str, source: &str) -> Result<Arc<File>, Problem>
fn parse(&self, path: &str, source: &str) -> Result<Arc<File>, Problem>
source parsed and matched against path’s last parse, which it
then is.
Source§fn bytes(&self, path: &str) -> Option<Vec<u8>>
fn bytes(&self, path: &str) -> Option<Vec<u8>>
A file’s bytes: a design’s text, an
Image’s file or a font file.Source§fn list(&self, path: &str) -> Option<Vec<String>>
fn list(&self, path: &str) -> Option<Vec<String>>
The names of the files directly in the folder at
path, sorted;
None when there is no such folder. A font folder is read this way.Auto Trait Implementations§
impl<F> Freeze for Remembering<F>where
F: Freeze,
impl<F> RefUnwindSafe for Remembering<F>where
F: RefUnwindSafe,
impl<F> Send for Remembering<F>where
F: Send,
impl<F> Sync for Remembering<F>where
F: Sync,
impl<F> Unpin for Remembering<F>where
F: Unpin,
impl<F> UnsafeUnpin for Remembering<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for Remembering<F>where
F: UnwindSafe,
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