pub struct SynthField {
pub ty: SynthType,
pub optional: bool,
}Expand description
A field in a record type
Fields§
§ty: SynthTypeThe type of the field
optional: boolWhether the field is optional
Note: In synthesized types, optionality comes from unifying records where some have the field and others don’t.
Implementations§
Trait Implementations§
Source§impl Clone for SynthField
impl Clone for SynthField
Source§fn clone(&self) -> SynthField
fn clone(&self) -> SynthField
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 SynthField
impl Debug for SynthField
Source§impl PartialEq for SynthField
impl PartialEq for SynthField
impl StructuralPartialEq for SynthField
Auto Trait Implementations§
impl Freeze for SynthField
impl RefUnwindSafe for SynthField
impl Send for SynthField
impl Sync for SynthField
impl Unpin for SynthField
impl UnwindSafe for SynthField
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