Struct rhit::LineGroup[][src]

pub struct LineGroup<'b, T> where
    T: Display + Hash + Eq + 'b, 
{ pub value: T, pub lines: Vec<&'b LogLine>, pub trend: Trend, pub bytes: u64, pub key_sum: u64, }

A non empty group of lines, with a common characteristic, for stats

Fields

value: Tlines: Vec<&'b LogLine>trend: Trendbytes: u64key_sum: u64

Implementations

impl<'b, T> LineGroup<'b, T> where
    T: Display + Hash + Eq + 'b, 
[src]

pub fn new(
    value: T,
    lines: Vec<&'b LogLine>,
    trend_computer: &TrendComputer
) -> Self
[src]

pub fn any(&self) -> &LogLine[src]

pub fn hits(&self) -> usize[src]

pub fn histo_line(&self) -> String[src]

Auto Trait Implementations

impl<'b, T> RefUnwindSafe for LineGroup<'b, T> where
    T: RefUnwindSafe

impl<'b, T> Send for LineGroup<'b, T> where
    T: Send

impl<'b, T> Sync for LineGroup<'b, T> where
    T: Sync

impl<'b, T> Unpin for LineGroup<'b, T> where
    T: Unpin

impl<'b, T> UnwindSafe for LineGroup<'b, T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Fun for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.