pub struct FlexId { /* private fields */ }Expand description
拡張空間ID
Implementations§
Source§impl FlexId
impl FlexId
Sourcepub fn difference(&self, other: &FlexId) -> impl Iterator<Item = FlexId>
pub fn difference(&self, other: &FlexId) -> impl Iterator<Item = FlexId>
相手のFlexIdとの差集合(self - other)を計算し、イテレータとして返します。 空間と時間の両方を考慮し、相手にくり抜かれた「残りの領域」を過不足なく細かい FlexId に分割して返します。
Sourcepub fn intersection(&self, other: &FlexId) -> Option<FlexId>
pub fn intersection(&self, other: &FlexId) -> Option<FlexId>
2つのFlexIdの重なっている領域(Intersection)を計算して返します。 重なりがない場合は None を返します。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlexId
impl<'de> Deserialize<'de> for FlexId
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 FlexId
Source§impl IntoFlexIds for FlexId
impl IntoFlexIds for FlexId
Source§impl IntoSingleIds for FlexId
impl IntoSingleIds for FlexId
Source§impl IterFlexIds for FlexId
impl IterFlexIds for FlexId
Source§impl IterSingleIds for FlexId
impl IterSingleIds for FlexId
Source§impl Ord for FlexId
impl Ord for FlexId
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
Source§impl PartialOrd for FlexId
impl PartialOrd for FlexId
Source§impl SpatialId for FlexId
impl SpatialId for FlexId
Source§fn length_f_meters(&self) -> f64
fn length_f_meters(&self) -> f64
F 方向の長さをメートル単位で返す。
Source§fn length_x_meters(&self) -> f64
fn length_x_meters(&self) -> f64
X 方向の長さをメートル単位で返す。
Source§fn length_y_meters(&self) -> f64
fn length_y_meters(&self) -> f64
Y 方向の長さをメートル単位で返す。
Source§fn spatial_center(&self) -> Coordinate
fn spatial_center(&self) -> Coordinate
空間 ID の中心座標を返す。
Source§fn spatial_vertices(&self) -> [Coordinate; 8]
fn spatial_vertices(&self) -> [Coordinate; 8]
空間 ID の8頂点を返す。
Source§fn temporal(&self) -> &TemporalId
fn temporal(&self) -> &TemporalId
時間 ID を参照で返す。
Source§fn temporal_mut(&mut self) -> &mut TemporalId
fn temporal_mut(&mut self) -> &mut TemporalId
時間 ID を可変参照で返す。
impl StructuralPartialEq for FlexId
Auto Trait Implementations§
impl Freeze for FlexId
impl RefUnwindSafe for FlexId
impl Send for FlexId
impl Sync for FlexId
impl Unpin for FlexId
impl UnsafeUnpin for FlexId
impl UnwindSafe for FlexId
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