pub struct Boundaries(/* private fields */);Expand description
Boundary conditions of all six faces (default: all PEC).
Implementations§
Source§impl Boundaries
impl Boundaries
Sourcepub fn iter(&self) -> impl Iterator<Item = (Face, &Boundary)>
pub fn iter(&self) -> impl Iterator<Item = (Face, &Boundary)>
Iterates over (face, boundary) pairs in Face::ALL order.
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Checks every face’s parameters, and that periodic faces come in opposite pairs.
Sourcepub fn is_periodic(&self, axis: Axis) -> bool
pub fn is_periodic(&self, axis: Axis) -> bool
Whether the faces of axis are periodic.
Trait Implementations§
Source§impl Clone for Boundaries
impl Clone for Boundaries
impl Copy for Boundaries
Source§impl Debug for Boundaries
impl Debug for Boundaries
Source§impl Default for Boundaries
impl Default for Boundaries
Source§impl Index<Face> for Boundaries
impl Index<Face> for Boundaries
Source§impl IndexMut<Face> for Boundaries
impl IndexMut<Face> for Boundaries
Source§impl PartialEq for Boundaries
impl PartialEq for Boundaries
impl StructuralPartialEq for Boundaries
Auto Trait Implementations§
impl Freeze for Boundaries
impl RefUnwindSafe for Boundaries
impl Send for Boundaries
impl Sync for Boundaries
impl Unpin for Boundaries
impl UnsafeUnpin for Boundaries
impl UnwindSafe for Boundaries
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