pub struct PathDiscovery { /* private fields */ }Expand description
The brave filesystem explorer who never says no to an adventure
We’re the expedition leaders who’ll climb any directory tree, cross any symlink bridge, and search every nook and cranny for typographic treasures. Give us a list of neighborhoods to explore and we’ll come back with a complete census of every font that calls those places home.
Implementations§
Source§impl PathDiscovery
impl PathDiscovery
Sourcepub fn new<I, P>(roots: I) -> Self
pub fn new<I, P>(roots: I) -> Self
Assembles our expedition team and maps out our adventure route
Give us your list of neighborhoods to explore and we’ll prepare our expedition kit. By default, we play it safe and stick to the beaten path - no mysterious symlink shortcuts unless you say so.
Sourcepub fn follow_symlinks(self, follow: bool) -> Self
pub fn follow_symlinks(self, follow: bool) -> Self
Decides whether we’re brave enough to follow mysterious shortcuts
Symlinks are like teleportation portals in the filesystem - they can lead to wondrous discoveries or endless loops. We’ll follow them if you’re feeling adventurous, but we’re happy to stay on solid ground if you prefer the conservative approach.
Trait Implementations§
Source§impl Clone for PathDiscovery
impl Clone for PathDiscovery
Source§fn clone(&self) -> PathDiscovery
fn clone(&self) -> PathDiscovery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PathDiscovery
impl Debug for PathDiscovery
Source§impl FontDiscovery for PathDiscovery
impl FontDiscovery for PathDiscovery
Source§fn discover(&self) -> Result<Vec<TypgFontSourceRef>>
fn discover(&self) -> Result<Vec<TypgFontSourceRef>>
Sets out on our grand font-finding expedition through the filesystem jungle
We’ll visit every neighborhood on our map, climb directory trees with the agility of a seasoned explorer, and carefully examine every file we encounter. Only the true typographic treasures get added to our collection - we’re discerning explorers who know quality when we see it.
Returns: A complete catalog of every font we discovered on our adventure.
Auto Trait Implementations§
impl Freeze for PathDiscovery
impl RefUnwindSafe for PathDiscovery
impl Send for PathDiscovery
impl Sync for PathDiscovery
impl Unpin for PathDiscovery
impl UnsafeUnpin for PathDiscovery
impl UnwindSafe for PathDiscovery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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