Struct pepper::syntax::SyntaxCollection
source · [−]pub struct SyntaxCollection { /* private fields */ }
Implementations
sourceimpl SyntaxCollection
impl SyntaxCollection
pub fn new() -> Self
pub fn find_handle_by_path(&self, path: &str) -> Option<SyntaxHandle>
pub fn set_current_from_glob(
&mut self,
glob: &str
) -> Result<(), InvalidGlobError>
pub fn get_current(&mut self) -> &mut Syntax
pub fn get(&self, handle: SyntaxHandle) -> &Syntax
Auto Trait Implementations
impl RefUnwindSafe for SyntaxCollection
impl Send for SyntaxCollection
impl Sync for SyntaxCollection
impl Unpin for SyntaxCollection
impl UnwindSafe for SyntaxCollection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more