pub struct LineFeatures {Show 13 fields
pub line_length: f64,
pub indentation_level: f64,
pub token_diversity: f64,
pub is_definition: f64,
pub is_import: f64,
pub is_comment: f64,
pub is_closing: f64,
pub keyword_density: f64,
pub position_normalized: f64,
pub has_type_annotation: f64,
pub nesting_depth: f64,
pub prev_line_type: f64,
pub next_line_type: f64,
}Fields§
§line_length: f64§indentation_level: f64§token_diversity: f64§is_definition: f64§is_import: f64§is_comment: f64§is_closing: f64§keyword_density: f64§position_normalized: f64§has_type_annotation: f64§nesting_depth: f64§prev_line_type: f64§next_line_type: f64Implementations§
Trait Implementations§
Source§impl Clone for LineFeatures
impl Clone for LineFeatures
Source§fn clone(&self) -> LineFeatures
fn clone(&self) -> LineFeatures
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 moreAuto Trait Implementations§
impl Freeze for LineFeatures
impl RefUnwindSafe for LineFeatures
impl Send for LineFeatures
impl Sync for LineFeatures
impl Unpin for LineFeatures
impl UnsafeUnpin for LineFeatures
impl UnwindSafe for LineFeatures
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