#[non_exhaustive]pub enum SetLanguageOutcome {
Ready,
Loading(String),
Unknown,
}Expand description
Outcome of SyntaxLayer::set_language_for_path.
§Examples
use hjkl_syntax::SetLanguageOutcome;
assert!(SetLanguageOutcome::Ready.is_known());
assert!(SetLanguageOutcome::Loading("rust".to_string()).is_known());
assert!(!SetLanguageOutcome::Unknown.is_known());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.
Ready
Grammar was already cached — installed immediately.
Loading(String)
Grammar is being fetched/compiled on the background pool.
Unknown
Extension unrecognized. No grammar — plain text only.
Implementations§
Auto Trait Implementations§
impl Freeze for SetLanguageOutcome
impl RefUnwindSafe for SetLanguageOutcome
impl Send for SetLanguageOutcome
impl Sync for SetLanguageOutcome
impl Unpin for SetLanguageOutcome
impl UnsafeUnpin for SetLanguageOutcome
impl UnwindSafe for SetLanguageOutcome
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