pub enum DocumentRole {
Canonical,
Primary,
Variant,
Orphan,
}Expand description
The classification of a Fluent document’s role within the workspace during analysis.
Variants§
Canonical
The reference document against which all others are compared.
Primary
A primary (non-variant) translation document for a language root.
Variant
A regional or script variant that depends on a primary for fallback.
Orphan
A document whose locale was not expected or configured in the workspace.
Trait Implementations§
Source§impl Clone for DocumentRole
impl Clone for DocumentRole
Source§fn clone(&self) -> DocumentRole
fn clone(&self) -> DocumentRole
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentRole
impl Debug for DocumentRole
impl Copy for DocumentRole
Auto Trait Implementations§
impl Freeze for DocumentRole
impl RefUnwindSafe for DocumentRole
impl Send for DocumentRole
impl Sync for DocumentRole
impl Unpin for DocumentRole
impl UnsafeUnpin for DocumentRole
impl UnwindSafe for DocumentRole
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<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.