pub enum DocumentOpenState {
Open,
NotOpen,
}Expand description
Whether a file is currently open through DocumentTracker.
§Examples
use mcpls_core::bridge::{DocumentOpenState, Translator};
let translator = Translator::new();
assert_eq!(
translator.open_state(std::path::Path::new("/ws/a.rs")),
DocumentOpenState::NotOpen
);Variants§
Trait Implementations§
Source§impl Clone for DocumentOpenState
impl Clone for DocumentOpenState
impl Copy for DocumentOpenState
Source§impl Debug for DocumentOpenState
impl Debug for DocumentOpenState
impl Eq for DocumentOpenState
Source§impl PartialEq for DocumentOpenState
impl PartialEq for DocumentOpenState
impl StructuralPartialEq for DocumentOpenState
Auto Trait Implementations§
impl Freeze for DocumentOpenState
impl RefUnwindSafe for DocumentOpenState
impl Send for DocumentOpenState
impl Sync for DocumentOpenState
impl Unpin for DocumentOpenState
impl UnsafeUnpin for DocumentOpenState
impl UnwindSafe for DocumentOpenState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.