[][src]Struct gff_diff::CompareGFF

pub struct CompareGFF { /* fields omitted */ }

Implementations

impl CompareGFF[src]

pub fn new() -> Self[src]

Creates a new, blank CompareGFF.

pub fn record_issues(&mut self, do_record: bool)[src]

Changes the option to record issues in the result.

pub fn flexible_ids(&mut self, use_flexible_ids: bool)[src]

Changes the option to create new IDs in case of duplicates.

pub fn new_from_files<S: Into<String>>(
    filename1: S,
    filename2: S
) -> Result<Self, Box<dyn Error>>
[src]

Creates a new CompareGFF with two files.

pub fn load_gff<S: Into<String>>(
    &mut self,
    filename: S,
    data_set: u8
) -> Result<(), Box<dyn Error>>
[src]

pub fn diff(&self) -> Result<Value, Box<dyn Error>>[src]

Generates the diff between the two loaded files.

pub fn sort_comparison(result: &mut Value)[src]

Sorts a comparison JSON. Potentially slow. Used in tests.

pub fn diff_apollo(&self) -> Result<Value, Box<dyn Error>>[src]

pub fn write_data1(&self, file: Box<dyn Write>) -> Result<(), Box<dyn Error>>[src]

pub fn apply_diff(
    &mut self,
    diff: &Value
) -> Result<&HashMap<String, Record>, Box<dyn Error>>
[src]

Applies the given diff to the data loaded into the gff 1 slot.

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> 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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,