pub struct Section {
pub dictionary: Dictionary,
pub rows: Vec<Row>,
}
Fields§
§dictionary: Dictionary
§rows: Vec<Row>
Implementations§
source§impl Section
impl Section
pub fn new() -> Section
pub fn with_capacity(n: usize) -> Section
pub fn get(&self, name: &str) -> Option<&Value>
sourcepub fn get_mut(&mut self, name: &str) -> Option<&mut Value>
pub fn get_mut(&mut self, name: &str) -> Option<&mut Value>
Returns a mutable reference to the field associated with the given name in the dictionary.
If a field exists for the provided name, a mutable reference to that field is returned.
If no field is associated with the name, None
is returned.
pub fn fetch(&self, key: &str) -> Result<&Value, IonError>
pub fn rows_without_header(&self) -> &[Row]
pub fn parse<F: FromIon<Section>>(&self) -> Result<F, F::Err>
Trait Implementations§
source§impl<'a> IntoIterator for &'a Section
impl<'a> IntoIterator for &'a Section
source§impl IntoIterator for Section
impl IntoIterator for Section
source§impl PartialEq for Section
impl PartialEq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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