pub struct FutharkConfig {
pub indent_width: usize,
pub annotate_lets: bool,
pub default_int: FutharkType,
pub default_float: FutharkType,
}Expand description
Configuration for the Futhark backend emitter.
Fields§
§indent_width: usizeNumber of spaces per indentation level
annotate_lets: boolEmit type annotations on let-bindings when available
default_int: FutharkTypeDefault integer type for literals without explicit type
default_float: FutharkTypeDefault float type for literals without explicit type
Trait Implementations§
Source§impl Clone for FutharkConfig
impl Clone for FutharkConfig
Source§fn clone(&self) -> FutharkConfig
fn clone(&self) -> FutharkConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FutharkConfig
impl Debug for FutharkConfig
Auto Trait Implementations§
impl Freeze for FutharkConfig
impl RefUnwindSafe for FutharkConfig
impl Send for FutharkConfig
impl Sync for FutharkConfig
impl Unpin for FutharkConfig
impl UnsafeUnpin for FutharkConfig
impl UnwindSafe for FutharkConfig
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