pub struct FaceId {
pub node: NodePath,
pub back: bool,
pub pass: usize,
pub cb: bool,
pub index: usize,
}Expand description
展開した系の面の、プロジェクトの中での名前(SurfOrigin::face)。ブロックの木が同じなら、状態・BS の経路が違う
展開でも同じ面は同じ名前になる
Fields§
§node: NodePath面を足したいちばん内のブロック(ユーザーカタログの品は品のブロック、BS の腕の中は BS)
back: bool鏡の back で復路にたどった面
pass: usizeそのブロックを同じ向きで何回目にたどった範囲か(0 始まり)
cb: bool座標ブレーク(偏心・傾き・折り曲げの座標の面)か
index: usize範囲の中の番号(0 始まり、たどった順)。座標ブレークとほかの面は別に数える(偏心の有無が状態で変わっても、 ほかの面の番号はずれない)
Trait Implementations§
impl Eq for FaceId
impl StructuralPartialEq for FaceId
Auto Trait Implementations§
impl Freeze for FaceId
impl RefUnwindSafe for FaceId
impl Send for FaceId
impl Sync for FaceId
impl Unpin for FaceId
impl UnsafeUnpin for FaceId
impl UnwindSafe for FaceId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more