pub trait GitElement: Sized {
// Required methods
fn read(structure: &GffStruct) -> Self;
fn write(&self, id: i32) -> GffStruct;
}Expand description
One arm’s element codec, so a list can read or write either side without naming which.
Both halves are what the derive already generates for a list element; this only gives the two arms one name so the list can be generic over them.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.