pub struct ExodusBlock {
pub id: usize,
pub element_type: ExodusElementType,
pub connectivity: Vec<Vec<usize>>,
}Expand description
An element block (a group of elements sharing the same type).
Fields§
§id: usizeBlock identifier.
element_type: ExodusElementTypeElement type for all elements in this block.
connectivity: Vec<Vec<usize>>Connectivity: one row per element, listing node IDs (0-based).
Implementations§
Source§impl ExodusBlock
impl ExodusBlock
Sourcepub fn new(
id: usize,
element_type: ExodusElementType,
connectivity: Vec<Vec<usize>>,
) -> Self
pub fn new( id: usize, element_type: ExodusElementType, connectivity: Vec<Vec<usize>>, ) -> Self
Create a new element block.
Sourcepub fn num_elements(&self) -> usize
pub fn num_elements(&self) -> usize
Number of elements in this block.
Trait Implementations§
Source§impl Clone for ExodusBlock
impl Clone for ExodusBlock
Source§fn clone(&self) -> ExodusBlock
fn clone(&self) -> ExodusBlock
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 moreAuto Trait Implementations§
impl Freeze for ExodusBlock
impl RefUnwindSafe for ExodusBlock
impl Send for ExodusBlock
impl Sync for ExodusBlock
impl Unpin for ExodusBlock
impl UnsafeUnpin for ExodusBlock
impl UnwindSafe for ExodusBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.