pub trait Part {
// Required methods
fn get_field_map(&self) -> &FieldMap;
fn get_field_map_mut(&mut self) -> &mut FieldMap;
// Provided methods
fn set<'a, V>(
&'a mut self,
field_definition: &HardCodedFixFieldDefinition,
value: V,
)
where V: FieldType<'a> { ... }
fn store_field(&mut self, field: Field) { ... }
fn get<'a, V>(
&'a self,
field: &HardCodedFixFieldDefinition,
) -> Result<V, FieldValueError<V::Error>>
where V: FieldType<'a> { ... }
fn get_raw(&self, field: &HardCodedFixFieldDefinition) -> Option<&[u8]> { ... }
fn pop(&mut self, field: &HardCodedFixFieldDefinition) -> Option<Field> { ... }
fn set_groups(&mut self, groups: Vec<RepeatingGroup>) { ... }
fn get_group(
&self,
start_tag: TagU32,
index: usize,
) -> Option<&RepeatingGroup> { ... }
fn calculate_length(&self) -> usize { ... }
}
Required Methods§
fn get_field_map(&self) -> &FieldMap
fn get_field_map_mut(&mut self) -> &mut FieldMap
Provided Methods§
fn set<'a, V>(
&'a mut self,
field_definition: &HardCodedFixFieldDefinition,
value: V,
)where
V: FieldType<'a>,
fn store_field(&mut self, field: Field)
fn get<'a, V>(
&'a self,
field: &HardCodedFixFieldDefinition,
) -> Result<V, FieldValueError<V::Error>>where
V: FieldType<'a>,
fn get_raw(&self, field: &HardCodedFixFieldDefinition) -> Option<&[u8]>
fn pop(&mut self, field: &HardCodedFixFieldDefinition) -> Option<Field>
fn set_groups(&mut self, groups: Vec<RepeatingGroup>)
fn get_group(&self, start_tag: TagU32, index: usize) -> Option<&RepeatingGroup>
fn calculate_length(&self) -> usize
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.