[][src]Struct finch::serialization::JsonSketch

pub struct JsonSketch {
    pub name: String,
    pub seq_length: Option<u64>,
    pub num_valid_kmers: Option<u64>,
    pub comment: Option<String>,
    pub filters: Option<HashMap<String, String>>,
    pub hashes: Vec<KmerCount>,
}

Fields

name: Stringseq_length: Option<u64>num_valid_kmers: Option<u64>comment: Option<String>filters: Option<HashMap<String, String>>hashes: Vec<KmerCount>

Implementations

impl JsonSketch[src]

pub fn new(
    name: &str,
    length: u64,
    n_kmers: u64,
    kmercounts: Vec<KmerCount>,
    filters: &HashMap<String, String>
) -> Self
[src]

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

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl Clone for JsonSketch[src]

impl Debug for JsonSketch[src]

impl<'de> Deserialize<'de> for JsonSketch[src]

impl Eq for JsonSketch[src]

impl Into<JsonSketch> for Sketch[src]

impl PartialEq<JsonSketch> for JsonSketch[src]

impl Serialize for JsonSketch[src]

impl StructuralEq for JsonSketch[src]

impl StructuralPartialEq for JsonSketch[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.