[][src]Struct ccache_stats_reader::CacheLeaf

pub struct CacheLeaf { /* fields omitted */ }

A leaf container for one sub-cache of a ccache directory.

Methods

impl CacheLeaf[src]

pub fn read_file(f: PathBuf) -> Result<Self, ErrorKind>[src]

Construct a CacheLeaf by reading a specified input file

use ccache_stats_reader::CacheLeaf;
use std::path::PathBuf;
let leaf = CacheLeaf::read_file(PathBuf::from("/var/tmp/ccache/0/stats"));

Trait Implementations

impl CacheFieldCollection for CacheLeaf[src]

impl Default for CacheLeaf[src]

impl Clone for CacheLeaf[src]

impl Copy for CacheLeaf[src]

impl Debug for CacheLeaf[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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