#[non_exhaustive]pub struct Rust;Expand description
The Rust language.
Implementations§
Trait Implementations§
impl Copy for Rust
Source§impl Language for Rust
impl Language for Rust
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
The language’s name:
go, cpp. Answers report it, and the cache files the language’s extractions under it.Source§fn claims(&self, path: &str) -> bool
fn claims(&self, path: &str) -> bool
Whether the file at
path, root-relative with forward slashes, is this language’s.Source§fn fingerprint(&self) -> &[u8] ⓘ
fn fingerprint(&self) -> &[u8] ⓘ
Identifies what
Language::extract computes from the same bytes: it changes whenever the grammar or the
language’s extraction does, and a cache keeps the extractions of each fingerprint apart. The code of this crate,
which shapes the result too, is identified by FINGERPRINT, which a cache folds in
beside it.Source§fn conventions(&self) -> Conventions
fn conventions(&self) -> Conventions
The conventions the graph resolves this language’s calls under.
Source§fn extract(&self, source: &[u8]) -> RawExtraction
fn extract(&self, source: &[u8]) -> RawExtraction
What
source, one file’s whole content, holds, from the bytes alone. Read moreAuto Trait Implementations§
impl Freeze for Rust
impl RefUnwindSafe for Rust
impl Send for Rust
impl Sync for Rust
impl Unpin for Rust
impl UnsafeUnpin for Rust
impl UnwindSafe for Rust
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