pub struct OrientRow {
pub row: u32,
pub x: [f64; 3],
pub yp: Option<[f64; 3]>,
}Expand description
One sparse orient row — OpenSees’ -orient x1 x2 x3 [yp1 yp2 yp3]: local
x is x; in 3D local z is x × yp and local y completes the frame; in 2D
yp is absent, x[2] must be 0 and local y is local x turned 90 degrees
counter-clockwise. Every DOF of the row is evaluated along those axes.
Rows without an entry use the global axes; at most one entry per row.
Fields§
§row: u32§x: [f64; 3]§yp: Option<[f64; 3]>Required in 3D, must be absent in 2D.
Trait Implementations§
impl Copy for OrientRow
Source§impl<'de> Deserialize<'de> for OrientRow
impl<'de> Deserialize<'de> for OrientRow
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 StructuralPartialEq for OrientRow
Source§impl Tsify for OrientRow
impl Tsify for OrientRow
const DECL: &'static str = "/**\n * One sparse `orient` row \u{2014} OpenSees\' `-orient x1 x2 x3 [yp1 yp2 yp3]`: local\n * x is `x`; in 3D local z is `x \u{d7} yp` and local y completes the frame; in 2D\n * `yp` is absent, `x[2]` must be 0 and local y is local x turned 90 degrees\n * counter-clockwise. Every DOF of the row is evaluated along those axes.\n * Rows without an entry use the global axes; at most one entry per row.\n */\nexport interface OrientRow {\n row: number;\n x: [number, number, number];\n /**\n * Required in 3D, must be absent in 2D.\n */\n yp?: [number, number, number];\n}"
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 OrientRow
impl RefUnwindSafe for OrientRow
impl Send for OrientRow
impl Sync for OrientRow
impl Unpin for OrientRow
impl UnsafeUnpin for OrientRow
impl UnwindSafe for OrientRow
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.