Struct psi_core::language_aspect::LanguageID
source · pub struct LanguageID(_);
Implementations§
source§impl LanguageID
impl LanguageID
pub fn any() -> Self
pub fn is_any(&self) -> bool
pub fn new(s: &str) -> LanguageID
pub fn language_type(&self) -> PsiResult<LanguageType>
Trait Implementations§
source§impl Clone for LanguageID
impl Clone for LanguageID
source§fn clone(&self) -> LanguageID
fn clone(&self) -> LanguageID
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 moresource§impl Debug for LanguageID
impl Debug for LanguageID
source§impl Hash for LanguageID
impl Hash for LanguageID
source§impl Ord for LanguageID
impl Ord for LanguageID
source§fn cmp(&self, other: &LanguageID) -> Ordering
fn cmp(&self, other: &LanguageID) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<LanguageID> for LanguageID
impl PartialEq<LanguageID> for LanguageID
source§fn eq(&self, other: &LanguageID) -> bool
fn eq(&self, other: &LanguageID) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LanguageID> for LanguageID
impl PartialOrd<LanguageID> for LanguageID
source§fn partial_cmp(&self, other: &LanguageID) -> Option<Ordering>
fn partial_cmp(&self, other: &LanguageID) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more