pub struct NodeHandle(/* private fields */);Expand description
Handle to a node of a FrameModel.
Handles are produced by FrameModel::add_node and are only valid for the
model that created them. They are deliberately distinct from raw DOF
indices so a node reference cannot be confused with a degree of freedom.
Implementations§
Source§impl NodeHandle
impl NodeHandle
Sourcepub fn from_index(index: usize) -> Self
pub fn from_index(index: usize) -> Self
Build a handle from a raw index.
The handle is not validated here; validity is checked when it is
used against a model (returning FemError::InvalidNode). Prefer
FrameModel::add_node in normal use.
Trait Implementations§
Source§impl Clone for NodeHandle
impl Clone for NodeHandle
impl Copy for NodeHandle
Source§impl Debug for NodeHandle
impl Debug for NodeHandle
impl Eq for NodeHandle
Source§impl Hash for NodeHandle
impl Hash for NodeHandle
Source§impl Ord for NodeHandle
impl Ord for NodeHandle
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NodeHandle
impl PartialEq for NodeHandle
Source§impl PartialOrd for NodeHandle
impl PartialOrd for NodeHandle
impl StructuralPartialEq for NodeHandle
Auto Trait Implementations§
impl Freeze for NodeHandle
impl RefUnwindSafe for NodeHandle
impl Send for NodeHandle
impl Sync for NodeHandle
impl Unpin for NodeHandle
impl UnsafeUnpin for NodeHandle
impl UnwindSafe for NodeHandle
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