Skip to main content

Layer

Struct Layer 

Source
pub struct Layer {
    pub index: usize,
    pub name: String,
    pub bottom: StoryId,
    pub top: StoryId,
    pub height: f64,
    pub bottom_elevation: f64,
    pub top_elevation: f64,
    pub level_kind: StoryLevelKind,
    pub weight: Option<f64>,
    pub node_ids: Vec<NodeId>,
    pub structure: StoryStructure,
}
Expand description

層(隣り合う 2 つの階の間)。法規上の「i 階」はこれを指す。

Model::layersModel::stories から組み立てる導出値であり、 モデルには保持しない(保持すると Story::node_ids と同種の同期ずれを 1 つ増やすことになる)。層を数える処理は必ずこれを介し、 Model::stories を層として直接走査してはならない。

層と床の対応は実務の慣行に従う。

由来
名前下端床(法令の「i 階」は下の床の呼び名)
階高上端床の標高 − 下端床の標高
重量・所属節点・階種別上端床

重量が上端床なのは、層の質量が上端の床に集中するためである。

Fields§

§index: usize

下から 0 始まりの層の番号。層を識別する添字。

§name: String

層の名前(下端床の階名)。

§bottom: StoryId

下端の階(床)。

§top: StoryId

上端の階(床)。層の重量・所属節点・階種別はこの階が持つ。

§height: f64

層の高さ(階高)[mm]。

§bottom_elevation: f64

下端床の標高 [mm]。

§top_elevation: f64

上端床の標高 [mm]。

§level_kind: StoryLevelKind

層の種別(一般/PH/地下)。

§weight: Option<f64>

設計に用いる地震用重量 [N](未算定なら None)。

§node_ids: Vec<NodeId>

層に属する節点(=上端床の所属節点)。

§structure: StoryStructure

主要構造種別(略算周期の鉄骨造比 α 算定用)。

Trait Implementations§

Source§

impl Clone for Layer

Source§

fn clone(&self) -> Layer

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Layer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Layer

Source§

fn eq(&self, other: &Layer) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Layer

Auto Trait Implementations§

§

impl Freeze for Layer

§

impl RefUnwindSafe for Layer

§

impl Send for Layer

§

impl Sync for Layer

§

impl Unpin for Layer

§

impl UnsafeUnpin for Layer

§

impl UnwindSafe for Layer

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.