Enum wagon_codegen::FileType
source · pub enum FileType {
String(String),
Blob(Box<[u8]>),
Dir(Vec<FileStructure>),
}
Expand description
The types of file this filestructure can represent.
Because TokenStream
s are kinda funky and they just get converted to strings
for writing to disk anyway, they are not supported. Just convert them to string instead.
Variants§
String(String)
Write a specific string to a file.
Blob(Box<[u8]>)
Write binary data to a file.
Dir(Vec<FileStructure>)
This is a directory which holds multiple other files.
Trait Implementations§
source§impl PartialEq for FileType
impl PartialEq for FileType
impl Eq for FileType
impl StructuralPartialEq for FileType
Auto Trait Implementations§
impl Freeze for FileType
impl RefUnwindSafe for FileType
impl Send for FileType
impl Sync for FileType
impl Unpin for FileType
impl UnwindSafe for FileType
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.