pub struct CompareGFF { /* private fields */ }
Implementations§
Source§impl CompareGFF
impl CompareGFF
Sourcepub fn record_issues(&mut self, do_record: bool)
pub fn record_issues(&mut self, do_record: bool)
Changes the option to record issues in the result.
Sourcepub fn flexible_ids(&mut self, use_flexible_ids: bool)
pub fn flexible_ids(&mut self, use_flexible_ids: bool)
Changes the option to create new IDs in case of duplicates.
Sourcepub fn new_from_files<S: Into<String>>(
filename1: S,
filename2: S,
) -> Result<Self, Box<dyn Error>>
pub fn new_from_files<S: Into<String>>( filename1: S, filename2: S, ) -> Result<Self, Box<dyn Error>>
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>>
Sourcepub fn diff(&self) -> Result<Value, Box<dyn Error>>
pub fn diff(&self) -> Result<Value, Box<dyn Error>>
Generates the diff between the two loaded files.
Sourcepub fn sort_comparison(result: &mut Value)
pub fn sort_comparison(result: &mut Value)
Sorts a comparison JSON. Potentially slow. Used in tests.
pub fn diff_apollo(&self) -> Result<Value, Box<dyn Error>>
pub fn write_data1(&self, file: Box<dyn Write>) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for CompareGFF
impl RefUnwindSafe for CompareGFF
impl Send for CompareGFF
impl Sync for CompareGFF
impl Unpin for CompareGFF
impl UnwindSafe for CompareGFF
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more