pub struct DomainDictionary {
pub domain: DomainId,
pub priority: u8,
pub dictionary: Arc<UserDictionary>,
pub source_path: Option<PathBuf>,
pub loaded_at: SystemTime,
}Expand description
A single domain overlay paired with its priority and metadata.
Fields§
§domain: DomainIdDomain identifier.
priority: u8Search priority — 0 is the highest (searched first).
dictionary: Arc<UserDictionary>The underlying dictionary, shared via reference-counting.
source_path: Option<PathBuf>Optional path from which the dictionary was loaded.
loaded_at: SystemTimeWall-clock time at which this domain was registered.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DomainDictionary
impl RefUnwindSafe for DomainDictionary
impl Send for DomainDictionary
impl Sync for DomainDictionary
impl Unpin for DomainDictionary
impl UnsafeUnpin for DomainDictionary
impl UnwindSafe for DomainDictionary
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> 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