Trait no_proto::pointer::NP_Scalar [−][src]
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]
Self: Sized,
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]
Self: Sized,
Get the max value for this data type
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
Get the min value for this data type
Implementations on Foreign Types
impl<'value> NP_Scalar<'value> for String
[src]
fn schema_default(schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
Implementors
impl<'value> NP_Scalar<'value> for &NP_ULID
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for &NP_UUID
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for &[u8]
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for NP_Enum
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for NP_Date
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for NP_Dec
[src]
fn schema_default(schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for NP_Geo
[src]
fn schema_default(schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for NP_Geo_Bytes
[src]
fn schema_default(schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for NP_ULID
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for NP_UUID
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for NP_Bytes
[src]
fn schema_default(schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(cursor: &NP_Cursor, memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for NP_String<'value>
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for bool
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for f32
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for f64
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for i8
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for i16
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for i32
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for i64
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for u8
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for u16
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for u32
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,
fn np_max_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
fn np_min_value(_cursor: &NP_Cursor, _memory: &NP_Memory) -> Option<Self>
[src]
impl<'value> NP_Scalar<'value> for u64
[src]
fn schema_default(_schema: &NP_Parsed_Schema) -> Option<Self> where
Self: Sized,
[src]
Self: Sized,