pub struct CodeQLLanguages { /* private fields */ }
Expand description
CodeQL Languages
Implementations§
Source§impl CodeQLLanguages
impl CodeQLLanguages
Sourcepub fn new(languages: Vec<CodeQLLanguage>) -> Self
pub fn new(languages: Vec<CodeQLLanguage>) -> Self
Create a new instance of CodeQLLanguages
Sourcepub fn check(&self, language: impl Into<String>) -> bool
pub fn check(&self, language: impl Into<String>) -> bool
Check if a language is supported by CodeQL
Sourcepub fn get_all(&self) -> &Vec<CodeQLLanguage>
pub fn get_all(&self) -> &Vec<CodeQLLanguage>
Get all languages supported by CodeQL
Sourcepub fn get_languages(&self) -> Vec<CodeQLLanguage>
pub fn get_languages(&self) -> Vec<CodeQLLanguage>
Get all primary languages supported by CodeQL
Sourcepub fn get_secondary(&self) -> Vec<CodeQLLanguage>
pub fn get_secondary(&self) -> Vec<CodeQLLanguage>
Get all secondary languages supported by CodeQL
Trait Implementations§
Source§impl Clone for CodeQLLanguages
impl Clone for CodeQLLanguages
Source§fn clone(&self) -> CodeQLLanguages
fn clone(&self) -> CodeQLLanguages
Returns a duplicate 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 CodeQLLanguages
impl Debug for CodeQLLanguages
Source§impl Default for CodeQLLanguages
impl Default for CodeQLLanguages
Source§fn default() -> CodeQLLanguages
fn default() -> CodeQLLanguages
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodeQLLanguages
impl RefUnwindSafe for CodeQLLanguages
impl Send for CodeQLLanguages
impl Sync for CodeQLLanguages
impl Unpin for CodeQLLanguages
impl UnwindSafe for CodeQLLanguages
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more