Struct zed2::languages::LanguageScope
source · pub struct LanguageScope { /* private fields */ }
Implementations§
source§impl LanguageScope
impl LanguageScope
pub fn collapsed_placeholder(&self) -> &str
pub fn line_comment_prefix(&self) -> Option<&Arc<str, Global>>
pub fn block_comment_delimiters( &self ) -> Option<(&Arc<str, Global>, &Arc<str, Global>)>
pub fn word_characters(&self) -> Option<&HashSet<char, RandomState>>
pub fn brackets(&self) -> impl Iterator<Item = (&BracketPair, bool)>
pub fn should_autoclose_before(&self, c: char) -> bool
pub fn language_allowed(&self, name: &LanguageServerName) -> bool
Trait Implementations§
source§impl Clone for LanguageScope
impl Clone for LanguageScope
source§fn clone(&self) -> LanguageScope
fn clone(&self) -> LanguageScope
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for LanguageScope
impl Send for LanguageScope
impl Sync for LanguageScope
impl Unpin for LanguageScope
impl !UnwindSafe for LanguageScope
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