#[non_exhaustive]pub enum LinkError {
Missing,
Cycle,
Broken,
UnknownModifier,
Lazy,
}Expand description
Why a link left its message as written.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Missing
The key names no message (missing, a subtree or a boolean).
Cycle
The link leads back to a message being resolved.
Broken
The target is itself left as written.
UnknownModifier
Not upper, lower or capitalize.
Lazy
Nothing at build, when lazy and remote files are not read yet: the key may be in
one of the view’s lazy files. An eager message is resolved at build only.
Trait Implementations§
impl Copy for LinkError
impl Eq for LinkError
Source§impl Ord for LinkError
impl Ord for LinkError
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for LinkError
impl PartialOrd for LinkError
impl StructuralPartialEq for LinkError
Auto Trait Implementations§
impl Forget for LinkError
impl Freeze for LinkError
impl Move for LinkError
impl RefUnwindSafe for LinkError
impl Send for LinkError
impl Sync for LinkError
impl Unpin for LinkError
impl UnsafeUnpin for LinkError
impl UnwindSafe for LinkError
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