Trait hotfix_message::Part
source · pub trait Part {
// Required methods
fn get_field_map(&self) -> &FieldMap;
fn get_field_map_mut(&mut self) -> &mut FieldMap;
// Provided methods
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, tag: &TagU32) -> Option<Field> { ... }
fn set_groups(&mut self, start_tag: TagU32, 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 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, tag: &TagU32) -> Option<Field>
fn set_groups(&mut self, start_tag: TagU32, groups: Vec<RepeatingGroup>)
fn get_group(&self, start_tag: TagU32, index: usize) -> Option<&RepeatingGroup>
fn calculate_length(&self) -> usize
Object Safety§
This trait is not object safe.