pub struct CityBlock {
pub perimeter: Vec<NodeId>,
}Expand description
An enclosed city block bounded by road edges.
The perimeter is a closed polygon of node indices extracted by
crate::polygons::extract_blocks using the left-most-turn algorithm.
Blocks always wind clockwise (negative signed area).
Fields§
§perimeter: Vec<NodeId>Ordered list of node indices forming a closed polygon perimeter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CityBlock
impl<'de> Deserialize<'de> for CityBlock
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
Auto Trait Implementations§
impl Freeze for CityBlock
impl RefUnwindSafe for CityBlock
impl Send for CityBlock
impl Sync for CityBlock
impl Unpin for CityBlock
impl UnsafeUnpin for CityBlock
impl UnwindSafe for CityBlock
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