pub struct Vault<N = NoteInMemory>where
N: Note,{ /* private fields */ }Expand description
Represents an entire Obsidian vault
Contains all parsed notes and metadata about the vault. Uses NoteOnDisk by default
which is optimized for memory efficiency in large vaults.
Implementations§
Source§impl<N> Vault<N>where
N: Note,
impl<N> Vault<N>where
N: Note,
Sourcepub fn get_duplicates_notes_by_name(&self) -> Vec<&N>
pub fn get_duplicates_notes_by_name(&self) -> Vec<&N>
Source§impl<N> Vault<N>where
N: Note,
impl<N> Vault<N>where
N: Note,
Sourcepub fn build_vault(
iter: impl Iterator<Item = N>,
options: &VaultOptions,
) -> Self
pub fn build_vault( iter: impl Iterator<Item = N>, options: &VaultOptions, ) -> Self
Build vault from iterator
Sourcepub fn par_build_vault(
iter: impl ParallelIterator<Item = N>,
options: &VaultOptions,
) -> Selfwhere
N: Send,
Available on crate feature rayon only.
pub fn par_build_vault(
iter: impl ParallelIterator<Item = N>,
options: &VaultOptions,
) -> Selfwhere
N: Send,
rayon only.Build vault from parallel iterator
Source§impl<F> Vault<F>where
F: Note,
impl<F> Vault<F>where
F: Note,
Sourcepub fn get_digraph(&self) -> Result<DiGraph<&F, ()>, F::Error>
Available on crate feature petgraph only.
pub fn get_digraph(&self) -> Result<DiGraph<&F, ()>, F::Error>
petgraph only.Builds directed graph representing note relationships
Edges point from source note to linked note (A → B means A links to B)
§Performance Notes
- For vaults with 1000+ notes, enable
rayonfeature - Uses
NoteOnDiskfor minimal memory footprint
§Other
See get_ungraph
Sourcepub fn par_get_digraph(&self) -> Result<DiGraph<&F, ()>, F::Error>
Available on crate features petgraph and rayon only.
pub fn par_get_digraph(&self) -> Result<DiGraph<&F, ()>, F::Error>
petgraph and rayon only.Parallel builds directed graph representing note relationships
Edges point from source note to linked note (A → B means A links to B)
§Performance Notes
- For vaults with 1000+ notes, enable
rayonfeature - Uses
NoteOnDiskfor minimal memory footprint
§Other
See par_get_ungraph
Trait Implementations§
impl<N> Eq for Vault<N>
impl<N> StructuralPartialEq for Vault<N>where
N: Note,
Auto Trait Implementations§
impl<N> Freeze for Vault<N>
impl<N> RefUnwindSafe for Vault<N>where
N: RefUnwindSafe,
impl<N> Send for Vault<N>where
N: Send,
impl<N> Sync for Vault<N>where
N: Sync,
impl<N> Unpin for Vault<N>where
N: Unpin,
impl<N> UnwindSafe for Vault<N>where
N: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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