pub enum Lang {
Ts,
Rs,
Java,
Python,
Go,
Cs,
Sql,
}Variants§
Implementations§
Source§impl Lang
impl Lang
pub const ALL: &'static [Lang]
pub fn from_tag(s: &str) -> Option<Self>
pub fn tag(self) -> &'static str
pub fn allowed_kinds(self) -> &'static [&'static str]
pub fn kind_specs(self) -> &'static [KindSpec]
pub fn kind_spec(self, id: &str) -> Option<&'static KindSpec>
pub fn allowed_visibilities(self) -> &'static [&'static str]
pub fn ignores_visibility(self) -> bool
Trait Implementations§
impl Copy for Lang
impl Eq for Lang
impl StructuralPartialEq for Lang
Auto Trait Implementations§
impl Freeze for Lang
impl RefUnwindSafe for Lang
impl Send for Lang
impl Sync for Lang
impl Unpin for Lang
impl UnsafeUnpin for Lang
impl UnwindSafe for Lang
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.