pub enum GffType {
GFF3,
GFF2,
GTF2,
Any(u8, u8, u8),
}
Expand description
GffType
We have three format in the GFF family. The change is in the last field of GFF. For each type we have key value separator and field separator
Variants§
GFF3
Attribute format is: key1=value; key2=value1,value2
GFF2
Attribute format is: key1 value; key2 value1; key2 value2
GTF2
Same as GFF2 just possible keyword and possible value change
Any(u8, u8, u8)
Any, first field of tuple separates key from value, second field separates multiple key value pairs, and third field separates multiple values for the same key
Trait Implementations§
source§impl<'de> Deserialize<'de> for GffType
impl<'de> Deserialize<'de> for GffType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for GffType
impl Ord for GffType
source§impl PartialEq<GffType> for GffType
impl PartialEq<GffType> for GffType
source§impl PartialOrd<GffType> for GffType
impl PartialOrd<GffType> for GffType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for GffType
impl Eq for GffType
impl StructuralEq for GffType
impl StructuralPartialEq for GffType
Auto Trait Implementations§
impl RefUnwindSafe for GffType
impl Send for GffType
impl Sync for GffType
impl Unpin for GffType
impl UnwindSafe for GffType
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.