pub struct LoadResult {
pub values: HashMap<u64, KnownValue>,
pub files_processed: Vec<PathBuf>,
pub errors: Vec<(PathBuf, LoadError)>,
}Expand description
Result of a directory loading operation.
Fields§
§values: HashMap<u64, KnownValue>Known values loaded, keyed by codepoint.
files_processed: Vec<PathBuf>Files that were successfully processed.
errors: Vec<(PathBuf, LoadError)>Non-fatal errors encountered during loading.
Implementations§
Source§impl LoadResult
impl LoadResult
Sourcepub fn values_count(&self) -> usize
pub fn values_count(&self) -> usize
Returns the number of unique values loaded.
Sourcepub fn values_iter(&self) -> impl Iterator<Item = &KnownValue>
pub fn values_iter(&self) -> impl Iterator<Item = &KnownValue>
Returns an iterator over the loaded known values.
Sourcepub fn into_values(self) -> impl Iterator<Item = KnownValue>
pub fn into_values(self) -> impl Iterator<Item = KnownValue>
Consumes the result and returns the loaded known values.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns true if any errors occurred during loading.
Trait Implementations§
Source§impl Debug for LoadResult
impl Debug for LoadResult
Source§impl Default for LoadResult
impl Default for LoadResult
Source§fn default() -> LoadResult
fn default() -> LoadResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadResult
impl !RefUnwindSafe for LoadResult
impl Send for LoadResult
impl Sync for LoadResult
impl Unpin for LoadResult
impl !UnwindSafe for LoadResult
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