pub struct Discretization { /* private fields */ }Expand description
Discretization metadata for multiple named fields.
Implementations§
Source§impl Discretization
impl Discretization
Sourcepub fn insert_field(
&mut self,
name: impl Into<String>,
field: FieldDiscretization,
) -> Option<FieldDiscretization>
pub fn insert_field( &mut self, name: impl Into<String>, field: FieldDiscretization, ) -> Option<FieldDiscretization>
Insert a field discretization by name.
Sourcepub fn field(&self, name: &str) -> Option<&FieldDiscretization>
pub fn field(&self, name: &str) -> Option<&FieldDiscretization>
Retrieve a field discretization by name.
Sourcepub fn field_mut(&mut self, name: &str) -> &mut FieldDiscretization
pub fn field_mut(&mut self, name: &str) -> &mut FieldDiscretization
Retrieve or create a field discretization by name.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &FieldDiscretization)>
pub fn iter(&self) -> impl Iterator<Item = (&str, &FieldDiscretization)>
Iterate over all fields.
Trait Implementations§
Source§impl Clone for Discretization
impl Clone for Discretization
Source§fn clone(&self) -> Discretization
fn clone(&self) -> Discretization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Discretization
impl Debug for Discretization
Source§impl Default for Discretization
impl Default for Discretization
Source§fn default() -> Discretization
fn default() -> Discretization
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Discretization
impl RefUnwindSafe for Discretization
impl Send for Discretization
impl Sync for Discretization
impl Unpin for Discretization
impl UnsafeUnpin for Discretization
impl UnwindSafe for Discretization
Blanket Implementations§
Source§impl<T> AccumulatePathExt for T
impl<T> AccumulatePathExt for T
fn accumulate_path<O, I>(path: I) -> Owhere
O: Orientation,
I: IntoIterator<Item = O>,
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