pub enum CodegenMode {
Write,
Check,
}Expand description
What to do with the generated module.
Variants§
Write
Write src/<package>_io.gleam, replacing any existing file.
Check
Compare against the on-disk file and fail on drift without writing (CI gate).
Trait Implementations§
Source§impl Clone for CodegenMode
impl Clone for CodegenMode
Source§fn clone(&self) -> CodegenMode
fn clone(&self) -> CodegenMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CodegenMode
Source§impl Debug for CodegenMode
impl Debug for CodegenMode
impl Eq for CodegenMode
Source§impl PartialEq for CodegenMode
impl PartialEq for CodegenMode
Source§fn eq(&self, other: &CodegenMode) -> bool
fn eq(&self, other: &CodegenMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodegenMode
Auto Trait Implementations§
impl Freeze for CodegenMode
impl RefUnwindSafe for CodegenMode
impl Send for CodegenMode
impl Sync for CodegenMode
impl Unpin for CodegenMode
impl UnsafeUnpin for CodegenMode
impl UnwindSafe for CodegenMode
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.