#[non_exhaustive]pub struct Python;Expand description
The Python language.
Implementations§
Trait Implementations§
impl Copy for Python
Source§impl Language for Python
impl Language for Python
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 Python
impl RefUnwindSafe for Python
impl Send for Python
impl Sync for Python
impl Unpin for Python
impl UnsafeUnpin for Python
impl UnwindSafe for Python
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