Type Alias relay_protocol::Array

source ·
pub type Array<T> = Vec<Annotated<T>>;
Expand description

Alias for typed arrays.

Aliased Type§

struct Array<T> { /* private fields */ }

Trait Implementations§

source§

impl<T> Empty for Array<T>
where T: Empty,

source§

fn is_empty(&self) -> bool

Returns whether this value is empty.
source§

fn is_deep_empty(&self) -> bool

Returns whether this value is empty or all of its descendants are empty. Read more
source§

impl<T> FromValue for Array<T>
where T: FromValue,

source§

fn from_value(value: Annotated<Value>) -> Annotated<Self>

Creates a meta structure from an annotated boxed value.
source§

impl<T> IntoValue for Array<T>
where T: IntoValue,

source§

fn into_value(self) -> Value

Boxes the meta structure back into a value.
source§

fn serialize_payload<S>( &self, s: S, behavior: SkipSerialization ) -> Result<S::Ok, S::Error>
where Self: Sized, S: Serializer,

Efficiently serializes the payload directly.
source§

fn extract_child_meta(&self) -> MetaMap
where Self: Sized,

Extracts children meta map out of a value.
source§

fn extract_meta_tree(value: &Annotated<Self>) -> MetaTree
where Self: Sized,

Extracts the meta tree out of annotated value. Read more