pub struct DofLayout { /* private fields */ }Expand description
Contiguous DOF layout for a point set.
Implementations§
Source§impl DofLayout
impl DofLayout
Sourcepub fn offset(&self, point: PointId) -> Result<u64, MeshSieveError>
pub fn offset(&self, point: PointId) -> Result<u64, MeshSieveError>
Return the offset for a point in the layout.
Sourcepub fn dof_len(&self, point: PointId) -> Result<usize, MeshSieveError>
pub fn dof_len(&self, point: PointId) -> Result<usize, MeshSieveError>
Return the DOF count for a point in the layout.
Sourcepub fn global_index(
&self,
point: PointId,
dof: usize,
) -> Result<u64, MeshSieveError>
pub fn global_index( &self, point: PointId, dof: usize, ) -> Result<u64, MeshSieveError>
Return the global index for a local point/DOF pair.
Sourcepub fn total_dofs(&self) -> u64
pub fn total_dofs(&self) -> u64
Total number of DOFs in the layout.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DofLayout
impl RefUnwindSafe for DofLayout
impl Send for DofLayout
impl Sync for DofLayout
impl Unpin for DofLayout
impl UnsafeUnpin for DofLayout
impl UnwindSafe for DofLayout
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