pub struct SynthRecord {
pub fields: HashMap<String, SynthField>,
}Expand description
A record type with named fields
Fields§
§fields: HashMap<String, SynthField>Field name to field definition
Implementations§
Source§impl SynthRecord
impl SynthRecord
Sourcepub fn new(fields: impl IntoIterator<Item = (String, SynthField)>) -> Self
pub fn new(fields: impl IntoIterator<Item = (String, SynthField)>) -> Self
Create a record from field definitions
Trait Implementations§
Source§impl Clone for SynthRecord
impl Clone for SynthRecord
Source§fn clone(&self) -> SynthRecord
fn clone(&self) -> SynthRecord
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 SynthRecord
impl Debug for SynthRecord
Source§impl Display for SynthRecord
impl Display for SynthRecord
Source§impl PartialEq for SynthRecord
impl PartialEq for SynthRecord
impl StructuralPartialEq for SynthRecord
Auto Trait Implementations§
impl Freeze for SynthRecord
impl RefUnwindSafe for SynthRecord
impl Send for SynthRecord
impl Sync for SynthRecord
impl Unpin for SynthRecord
impl UnwindSafe for SynthRecord
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