Skip to main content

MeshData

Struct MeshData 

Source
pub struct MeshData<S, V, St, CtSt>
where St: Storage<V>, CtSt: Storage<CellType>,
{ pub sieve: S, pub coordinates: Option<Coordinates<V, St>>, pub sections: BTreeMap<String, Section<V, St>>, pub mixed_sections: MixedSectionStore, pub labels: Option<LabelSet>, pub cell_types: Option<Section<CellType, CtSt>>, pub discretization: Option<Discretization>, }
Expand description

Combined sieve and section data returned by I/O readers.

Fields§

§sieve: S

The mesh topology as a sieve.

§coordinates: Option<Coordinates<V, St>>

Optional coordinate section wrapper.

§sections: BTreeMap<String, Section<V, St>>

Named sections keyed by user-provided identifiers.

§mixed_sections: MixedSectionStore

Tagged sections with mixed scalar types.

§labels: Option<LabelSet>

Optional integer labels associated with mesh points.

§cell_types: Option<Section<CellType, CtSt>>

Optional cell type section over mesh points.

§discretization: Option<Discretization>

Optional discretization metadata keyed by regions.

Implementations§

Source§

impl<S, V, St, CtSt> MeshData<S, V, St, CtSt>
where St: Storage<V>, CtSt: Storage<CellType>,

Source

pub fn new(sieve: S) -> Self

Create an empty container with a sieve and no sections.

Trait Implementations§

Source§

impl<S: Debug, V: Debug, St, CtSt> Debug for MeshData<S, V, St, CtSt>
where St: Storage<V> + Debug, CtSt: Storage<CellType> + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<S, V, St, CtSt> Freeze for MeshData<S, V, St, CtSt>
where S: Freeze, CtSt: Freeze, St: Freeze,

§

impl<S, V, St, CtSt> RefUnwindSafe for MeshData<S, V, St, CtSt>

§

impl<S, V, St, CtSt> Send for MeshData<S, V, St, CtSt>
where S: Send, CtSt: Send, St: Send, V: Send,

§

impl<S, V, St, CtSt> Sync for MeshData<S, V, St, CtSt>
where S: Sync, CtSt: Sync, St: Sync, V: Sync,

§

impl<S, V, St, CtSt> Unpin for MeshData<S, V, St, CtSt>
where S: Unpin, CtSt: Unpin, St: Unpin, V: Unpin,

§

impl<S, V, St, CtSt> UnsafeUnpin for MeshData<S, V, St, CtSt>
where S: UnsafeUnpin, CtSt: UnsafeUnpin, St: UnsafeUnpin,

§

impl<S, V, St, CtSt> UnwindSafe for MeshData<S, V, St, CtSt>

Blanket Implementations§

Source§

impl<T> AccumulatePathExt for T

Source§

fn accumulate_path<O, I>(path: I) -> O
where O: Orientation, I: IntoIterator<Item = O>,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.