pub enum Contents<'a> {
Empty,
FromString(&'a dyn AsRef<[u8]>),
FromFile(&'a dyn AsRef<Path>),
}
Expand description
Enum for what to seed the editor’s buffer with.
Variants§
Empty
Editor opens an empty file.
FromString(&'a dyn AsRef<[u8]>)
Editor opens a file with the contents of a String.
FromFile(&'a dyn AsRef<Path>)
Editor opens a file with the copied contents of a file at specified path.