pub struct FileFeatures {
pub path: PathBuf,
pub language: Language,
pub content_sha256: String,
pub functions: Vec<FunctionFeatures>,
}Expand description
Features of one source file.
Fields§
§path: PathBufPath of the file as recorded, with / as the separator.
language: LanguageLanguage of the file.
content_sha256: StringSHA-256 of the file content (hex).
functions: Vec<FunctionFeatures>Functions of the file, in the order they start; a function precedes the functions nested in it.
Trait Implementations§
Source§impl Clone for FileFeatures
impl Clone for FileFeatures
Source§impl Debug for FileFeatures
impl Debug for FileFeatures
Auto Trait Implementations§
impl Freeze for FileFeatures
impl RefUnwindSafe for FileFeatures
impl Send for FileFeatures
impl Sync for FileFeatures
impl Unpin for FileFeatures
impl UnsafeUnpin for FileFeatures
impl UnwindSafe for FileFeatures
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> 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