[][src]Struct mshio::mshfile::MshFile

pub struct MshFile<U, I, F> where
    U: MshUsizeT,
    I: MshIntT,
    F: MshFloatT
{ pub header: MshHeader, pub data: MshData<U, I, F>, }

A parsed MSH file containing mesh and header data

Models MSH files after revision 4.1 described at gmsh.info

Fields

header: MshHeader

Data extracted from the file format header

data: MshData<U, I, F>

Actual mesh data of the MSH file

Implementations

impl<U, I, F> MshFile<U, I, F> where
    U: MshUsizeT,
    I: MshIntT,
    F: MshFloatT
[src]

pub fn point_count(&self) -> usize[src]

Returns the total number of point entities in the MSH file

pub fn curve_count(&self) -> usize[src]

Returns the total number of curve entities in the MSH file

pub fn surface_count(&self) -> usize[src]

Returns the total number of surface entities in the MSH file

pub fn volume_count(&self) -> usize[src]

Returns the total number of volume entities in the MSH file

pub fn total_node_count(&self) -> usize[src]

Returns the total number of nodes in the MSH file

pub fn total_element_count(&self) -> usize[src]

Returns the total number of elements in the MSH file

pub fn count_element_types(&self) -> HashMap<ElementType, usize>[src]

Trait Implementations

impl<U: Clone, I: Clone, F: Clone> Clone for MshFile<U, I, F> where
    U: MshUsizeT,
    I: MshIntT,
    F: MshFloatT
[src]

impl<U: Debug, I: Debug, F: Debug> Debug for MshFile<U, I, F> where
    U: MshUsizeT,
    I: MshIntT,
    F: MshFloatT
[src]

impl<U: PartialEq, I: PartialEq, F: PartialEq> PartialEq<MshFile<U, I, F>> for MshFile<U, I, F> where
    U: MshUsizeT,
    I: MshIntT,
    F: MshFloatT
[src]

impl<U, I, F> StructuralPartialEq for MshFile<U, I, F> where
    U: MshUsizeT,
    I: MshIntT,
    F: MshFloatT
[src]

impl<'a> TryFrom<&'a [u8]> for MshFile<u64, i32, f64>[src]

Try to parse a MshFile from a slice of bytes

The input can be the content of an ASCII or binary encoded MSH file of file format version 4.1.

type Error = MshParserError<&'a [u8]>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<U, I, F> RefUnwindSafe for MshFile<U, I, F> where
    F: RefUnwindSafe,
    I: RefUnwindSafe,
    U: RefUnwindSafe

impl<U, I, F> Send for MshFile<U, I, F> where
    F: Send,
    I: Send,
    U: Send

impl<U, I, F> Sync for MshFile<U, I, F> where
    F: Sync,
    I: Sync,
    U: Sync

impl<U, I, F> Unpin for MshFile<U, I, F> where
    F: Unpin,
    I: Unpin,
    U: Unpin

impl<U, I, F> UnwindSafe for MshFile<U, I, F> where
    F: UnwindSafe,
    I: UnwindSafe,
    U: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.