Struct CompareGFF

Source
pub struct CompareGFF { /* private fields */ }

Implementations§

Source§

impl CompareGFF

Source

pub fn new() -> Self

Creates a new, blank CompareGFF.

Source

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

Changes the option to record issues in the result.

Source

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

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

Source

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

Creates a new CompareGFF with two files.

Source

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

Source

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

Generates the diff between the two loaded files.

Source

pub fn sort_comparison(result: &mut Value)

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

Source

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

Source

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

Source

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

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

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V