Struct wrapped2d::serialize::ChainShapeSnapshot
source · pub struct ChainShapeSnapshot {
pub vertices: Vec<Vec2>,
pub prev_vertex: Option<Vec2>,
pub next_vertex: Option<Vec2>,
}
Fields§
§vertices: Vec<Vec2>
§prev_vertex: Option<Vec2>
§next_vertex: Option<Vec2>
Implementations§
source§impl ChainShapeSnapshot
impl ChainShapeSnapshot
pub fn take(shape: &ChainShape) -> Self
pub fn rebuild(&self) -> ChainShape
Trait Implementations§
source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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 RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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