pub enum ElementKind {
Show 13 variants
Truss,
ElasticBeamColumn2d,
ElasticBeamColumn3d,
DispBeamColumn2d,
DispBeamColumn3d,
ForceBeamColumn2d,
ForceBeamColumn3d,
ZeroLength,
ZeroLengthSection,
Tri3,
Quad4,
Shell3,
Shell4,
}Expand description
Every element formulation, 2D and 3D. A kind that does not belong to the
model’s ndm is DecodeError::ElementKindNotInProfile.
Variants§
Truss
ElasticBeamColumn2d
ElasticBeamColumn3d
DispBeamColumn2d
DispBeamColumn3d
ForceBeamColumn2d
ForceBeamColumn3d
ZeroLength
ZeroLengthSection
Tri3
Quad4
Shell3
Shell4
Implementations§
Source§impl ElementKind
impl ElementKind
pub const ALL: [ElementKind; 13]
Sourcepub fn table(self) -> &'static str
pub fn table(self) -> &'static str
The kind’s table name as DecodeErrors report it (snake_case).
Sourcepub fn only_ndm(self) -> Option<u8>
pub fn only_ndm(self) -> Option<u8>
Some(2)/Some(3) for a formulation that exists only in that profile,
None for one shared by both.
pub fn in_profile(self, ndm: u8) -> bool
Sourcepub fn is_continuum(self) -> bool
pub fn is_continuum(self) -> bool
The 2D continuum elements (they take body and edge loads).
Sourcepub fn is_shell(self) -> bool
pub fn is_shell(self) -> bool
The 3D shell elements (they take self-weight and pressure loads).
Sourcepub fn edge_count(self) -> u8
pub fn edge_count(self) -> u8
Number of edges of a continuum element (zero for every other kind).
Sourcepub fn accepts_uniform_load(self) -> bool
pub fn accepts_uniform_load(self) -> bool
Whether core applies a beam Uniform load to this kind (the beam-columns).
Trait Implementations§
Source§impl Clone for ElementKind
impl Clone for ElementKind
Source§fn clone(&self) -> ElementKind
fn clone(&self) -> ElementKind
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 moreimpl Copy for ElementKind
Source§impl Debug for ElementKind
impl Debug for ElementKind
Source§impl<'de> Deserialize<'de> for ElementKind
impl<'de> Deserialize<'de> for ElementKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ElementKind
Source§impl PartialEq for ElementKind
impl PartialEq for ElementKind
Source§impl Serialize for ElementKind
impl Serialize for ElementKind
impl StructuralPartialEq for ElementKind
Source§impl Tsify for ElementKind
impl Tsify for ElementKind
const DECL: &'static str = "/**\n * Every element formulation, 2D and 3D. A kind that does not belong to the\n * model\'s `ndm` is `DecodeError::ElementKindNotInProfile`.\n */\nexport type ElementKind = \"truss\" | \"elasticBeamColumn2d\" | \"elasticBeamColumn3d\" | \"dispBeamColumn2d\" | \"dispBeamColumn3d\" | \"forceBeamColumn2d\" | \"forceBeamColumn3d\" | \"zeroLength\" | \"zeroLengthSection\" | \"tri3\" | \"quad4\" | \"shell3\" | \"shell4\";"
const SERIALIZATION_CONFIG: SerializationConfig
Source§type JsType = JsType
type JsType = JsType
Must be a type imported through
#[wasm_bindgen] extern "C" { .. }.
[Ts<T>] is #[repr(transparent)] over this and passes it across the
ABI as a plain JS handle, which any other representation would break.fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for ElementKind
impl RefUnwindSafe for ElementKind
impl Send for ElementKind
impl Sync for ElementKind
impl Unpin for ElementKind
impl UnsafeUnpin for ElementKind
impl UnwindSafe for ElementKind
Blanket Implementations§
impl<T> Boilerplate for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T, U> Imply<T> for U
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.