pub struct Context<'a> {
pub folders: &'a FolderIndex,
/* private fields */
}Expand description
What evaluating rules needs besides the item: the folder index (for
folderName), the activated fonts (for fontActivated, read on first
use from Eagle’s font folder and falcon’s) and a cache of compiled regexes.
Fields§
§folders: &'a FolderIndexImplementations§
Source§impl<'a> Context<'a>
impl<'a> Context<'a>
Sourcepub fn new(folders: &'a FolderIndex) -> Context<'a>
pub fn new(folders: &'a FolderIndex) -> Context<'a>
A context reading activated fonts from Eagle’s font folder, as
Eagle does, and from falcon’s (search::font_dirs): a font in
either counts as installed.
Sourcepub fn with_font_dir(
folders: &'a FolderIndex,
dir: Option<PathBuf>,
) -> Context<'a>
pub fn with_font_dir( folders: &'a FolderIndex, dir: Option<PathBuf>, ) -> Context<'a>
A context reading activated fonts from dir (none when None).
Sourcepub fn with_font_dirs(
folders: &'a FolderIndex,
dirs: Vec<PathBuf>,
) -> Context<'a>
pub fn with_font_dirs( folders: &'a FolderIndex, dirs: Vec<PathBuf>, ) -> Context<'a>
A context reading activated fonts from every folder in dirs.
Auto Trait Implementations§
impl<'a> !Freeze for Context<'a>
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> !Sync for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'a>
impl<'a> UnwindSafe for Context<'a>
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more