pub enum LoadEventKind<'a> {
Ready {
id: BufferId,
name: &'a str,
},
Failed {
id: BufferId,
name: &'a str,
error: &'a str,
},
}Expand description
Exhaustive view of a LoadEvent for use in
SyntaxLayer::dispatch_load_event callbacks.
Unlike LoadEvent (which is #[non_exhaustive]), matching on this enum
requires no wildcard arm and produces a compile error when new variants are
added.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LoadEventKind<'a>
impl<'a> RefUnwindSafe for LoadEventKind<'a>
impl<'a> Send for LoadEventKind<'a>
impl<'a> Sync for LoadEventKind<'a>
impl<'a> Unpin for LoadEventKind<'a>
impl<'a> UnsafeUnpin for LoadEventKind<'a>
impl<'a> UnwindSafe for LoadEventKind<'a>
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