Trait no_proto::pointer::NP_Scalar[][src]

pub trait NP_Scalar<'scalar> {
    fn schema_default(_schema: &'scalar NP_Parsed_Schema) -> Option<Self>
    where
        Self: Sized
;
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
    where
        Self: Sized
;
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
    where
        Self: Sized
; }

This trait is used to restrict which types can be set/get in the buffer

Required methods

fn schema_default(_schema: &'scalar NP_Parsed_Schema) -> Option<Self> where
    Self: Sized
[src]

Get the default for the schema type Does NOT get the default property of the schema, but generates a default value based on the schema settings

fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self> where
    Self: Sized
[src]

Get the max value for this data type

fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self> where
    Self: Sized
[src]

Get the min value for this data type

Loading content...

Implementations on Foreign Types

impl<'value> NP_Scalar<'value> for String[src]

Loading content...

Implementors

impl<'value> NP_Scalar<'value> for &NP_ULID[src]

impl<'value> NP_Scalar<'value> for &NP_UUID[src]

impl<'value> NP_Scalar<'value> for &[u8][src]

impl<'value> NP_Scalar<'value> for NP_Enum[src]

impl<'value> NP_Scalar<'value> for NP_Date[src]

impl<'value> NP_Scalar<'value> for NP_Dec[src]

impl<'value> NP_Scalar<'value> for NP_Geo[src]

impl<'value> NP_Scalar<'value> for NP_Geo_Bytes[src]

impl<'value> NP_Scalar<'value> for NP_ULID[src]

impl<'value> NP_Scalar<'value> for NP_UUID[src]

impl<'value> NP_Scalar<'value> for NP_Bytes[src]

impl<'value> NP_Scalar<'value> for NP_String<'value>[src]

impl<'value> NP_Scalar<'value> for bool[src]

impl<'value> NP_Scalar<'value> for f32[src]

impl<'value> NP_Scalar<'value> for f64[src]

impl<'value> NP_Scalar<'value> for i8[src]

impl<'value> NP_Scalar<'value> for i16[src]

impl<'value> NP_Scalar<'value> for i32[src]

impl<'value> NP_Scalar<'value> for i64[src]

impl<'value> NP_Scalar<'value> for u8[src]

impl<'value> NP_Scalar<'value> for u16[src]

impl<'value> NP_Scalar<'value> for u32[src]

impl<'value> NP_Scalar<'value> for u64[src]

Loading content...