pub struct Polygon {
pub points: Vec<Point>,
}Fields§
§points: Vec<Point>Trait Implementations§
Source§impl ManualCodec<Polygon> for PolygonCodec
impl ManualCodec<Polygon> for PolygonCodec
fn encode(value: &Polygon, output: &mut CodecWriter) -> PluginResult<()>
fn decode(input: &mut CodecReader<'_>) -> PluginResult<Polygon>
fn corpus() -> Vec<Polygon>
Source§impl RadixType for Polygon
impl RadixType for Polygon
const LOCAL_ID: &'static str = "polygon"
const DISPLAY_NAME: &'static str = "polygon"
const CODEC_VERSION: u32 = 1u32
const SEMANTIC_REVISION: u32 = 1u32
const STORAGE_KIND: u16 = ::radixdb_plugin::__private::abi::RADIX_EXTERNAL_STORAGE_VARIABLE
const FIXED_BYTES: u32 = 0u32
const MAX_BYTES: u32 = 4100u32
const CAPABILITIES: u64 = 7u64
const CODEC_FINGERPRINT: [u8; 32]
fn encode(&self, output: &mut CodecWriter) -> PluginResult<()>
fn decode(input: &mut CodecReader<'_>) -> PluginResult<Self>
fn test_corpus() -> Vec<Self>
fn semantic_equal(left: &Self, right: &Self) -> Option<bool>
fn semantic_hash( value: &Self, sink: &mut HashSink<'_>, ) -> Option<PluginResult<()>>
fn semantic_compare(left: &Self, right: &Self) -> Option<Ordering>
Auto Trait Implementations§
impl Freeze for Polygon
impl RefUnwindSafe for Polygon
impl Send for Polygon
impl Sync for Polygon
impl Unpin for Polygon
impl UnsafeUnpin for Polygon
impl UnwindSafe for Polygon
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