Skip to main content

Distributed

Enum Distributed 

Source
pub enum Distributed {
    Null,
    Bool(bool),
    I64(Le<i64>),
    U64(Le<u64>),
    F64(Le<f64>),
    String(Point<String>),
    Array(Point<Vec<Self>>),
    Object(Point<BTreeMap<LpString, Self>>),
}
Available on crate feature distributed only.

Variants§

§

Null

§

Bool(bool)

§

I64(Le<i64>)

§

U64(Le<u64>)

§

F64(Le<f64>)

§

String(Point<String>)

§

Array(Point<Vec<Self>>)

§

Object(Point<BTreeMap<LpString, Self>>)

Implementations§

Source§

impl Distributed

Source

pub async fn to_value(&self) -> Result<Value>

Trait Implementations§

Source§

impl Clone for Distributed

Source§

fn clone(&self) -> Distributed

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Distributed

Source§

fn default() -> Distributed

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Distributed

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Enum for Distributed

Source§

type Kind = __Kind

Discriminant uniquely identifying this enum’s variants.
Source§

fn kind(&self) -> Self::Kind

Get the EnumKind of this variant.
Source§

impl<__I: PointInput<Extra: Send + Sync + Clone>> EnumParse<__I> for Distributed
where bool: Parse<__I> + Object<__I::Extra>, Le<i64>: Parse<__I> + Object<__I::Extra>, Le<u64>: Parse<__I> + Object<__I::Extra>, Le<f64>: Parse<__I> + Object<__I::Extra>, Point<String>: Parse<__I> + Object<__I::Extra>,

Source§

fn enum_parse(kind: <Self as Enum>::Kind, input: __I) -> Result<Self>

Given an already-parsed EnumKind, parse the rest of a Parse Enum.
Source§

fn parse_as_enum(input: I) -> Result<Self, Error>
where <Self::Kind as EnumKind>::Tag: ParseInline<I>,

For implementing Parse::parse.
Source§

impl<__I: PointInput<Extra: Send + Sync>> EnumParseInline<__I> for Distributed
where bool: ParseInline<__I> + Inline<__I::Extra>, Le<i64>: ParseInline<__I> + Inline<__I::Extra>, Le<u64>: ParseInline<__I> + Inline<__I::Extra>, Le<f64>: ParseInline<__I> + Inline<__I::Extra>, Point<String>: ParseInline<__I> + Inline<__I::Extra>,

Source§

fn enum_parse_inline( kind: <Self as Enum>::Kind, input: &mut __I, ) -> Result<Self>

Given an already-parsed EnumKind, parse the rest of a ParseInline Enum.
Source§

fn parse_as_inline_enum(input: &mut I) -> Result<Self, Error>
where <Self::Kind as EnumKind>::Tag: ParseInline<I>,

For implementing ParseInline::parse_inline.
Source§

impl InlineOutput for Distributed

Source§

fn slice_to_output(slice: &[Self], output: &mut dyn Output)
where Self: Sized,

Source§

impl ListHashes for Distributed

Source§

fn list_hashes(&self, visitor: &mut impl FnMut(Hash))

Source§

fn topology_hash(&self) -> Hash

Source§

fn point_count(&self) -> usize

Source§

impl MaybeHasNiche for Distributed

Source§

type MnArray = NoNiche<NicheForUnsized>

Should implement MnArray. Not constraint explicitly, because that breaks things.
Source§

impl<__I: PointInput<Extra: Send + Sync + Clone>> Parse<__I> for Distributed
where bool: Parse<__I> + Object<__I::Extra>, Le<i64>: Parse<__I> + Object<__I::Extra>, Le<u64>: Parse<__I> + Object<__I::Extra>, Le<f64>: Parse<__I> + Object<__I::Extra>, Point<String>: Parse<__I> + Object<__I::Extra>,

Source§

fn parse(input: __I) -> Result<Self>

Parse consuming the whole stream.
Source§

impl<__I: PointInput<Extra: Send + Sync>> ParseInline<__I> for Distributed
where bool: ParseInline<__I> + Inline<__I::Extra>, Le<i64>: ParseInline<__I> + Inline<__I::Extra>, Le<u64>: ParseInline<__I> + Inline<__I::Extra>, Le<f64>: ParseInline<__I> + Inline<__I::Extra>, Point<String>: ParseInline<__I> + Inline<__I::Extra>,

Source§

fn parse_inline(input: &mut __I) -> Result<Self>

Parse without consuming the whole stream. Errors on unexpected EOF.
Source§

fn parse_as_inline(input: I) -> Result<Self, Error>

For implementing Parse::parse.
Source§

fn parse_vec(input: I) -> Result<Vec<Self>, Error>

Parse a Vec of Self. Customisable for optimisations.
Source§

fn parse_vec_n(input: &mut I, n: usize) -> Result<Vec<Self>, Error>

Parse a Vec of Self of length n. Customisable for optimisations.
Source§

fn parse_array<const N: usize>(input: &mut I) -> Result<[Self; N], Error>

Parse an array of Self. Customisable for optimisations.
Source§

fn parse_generic_array<N>(input: &mut I) -> Result<GenericArray<Self, N>, Error>
where N: ArrayLength,

Parse a GenericArray of Self. Customisable for optimisations.
Source§

impl Serialize for Distributed

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Tagged for Distributed

Source§

const TAGS: Tags = _

Source§

const HASH: Hash = _

Source§

impl ToOutput for Distributed

Source§

fn to_output(&self, output: &mut dyn Output)

Source§

fn data_hash(&self) -> Hash

Source§

fn mangle_hash(&self) -> Hash

Source§

fn output<T>(&self) -> T
where T: Output + Default,

Source§

fn vec(&self) -> Vec<u8>

Source§

impl Topological for Distributed
where Self: ToOutput + Tagged,

Source§

fn traverse(&self, visitor: &mut impl PointVisitor)

Source§

fn topology(&self) -> Vec<Arc<dyn Singular>>

Source§

impl TryFrom<Value> for Distributed

Source§

type Error = DistributedParseError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T

Source§

fn any_ref(&self) -> &(dyn Any + 'static)
where T: 'static,

Get a shared RTTI reference.
Source§

fn any_mut(&mut self) -> &mut (dyn Any + 'static)
where T: 'static,

Get an exclusive RTTI reference.
Source§

fn any_box(self: Box<T>) -> Box<dyn Any>
where T: 'static,

Get an RTTI Box.
Source§

fn any_arc(self: Arc<T>) -> Arc<dyn Any>
where T: 'static,

Get an RTTI Arc.
Source§

fn any_arc_sync(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
where T: 'static + Send + Sync,

Get an RTTI Arc which is also Send.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, Extra> ExtraFor<T> for Extra
where T: for<'a> Parse<Input<'a, Extra>>, Extra: Clone,

Source§

fn parse(&self, data: &[u8], resolve: &Arc<dyn Resolve>) -> Result<T, Error>

Source§

fn parse_checked( &self, hash: Hash, data: &[u8], resolve: &Arc<dyn Resolve>, ) -> Result<T, Error>
where T: FullHash,

Self::parse, then check that FullHash::full_hash matches.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FullHash for T
where T: ToOutput + ListHashes + Tagged + ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoPoint for T
where T: Traversible,

Source§

fn point(self) -> Point<Self>
where Self: Clone,

Source§

impl<T> ParseSlice for T
where T: for<'a> Parse<Input<'a>>,

Source§

fn parse_slice(data: &[u8], resolve: &Arc<dyn Resolve>) -> Result<Self, Error>

Source§

fn reparse(&self) -> Result<Self, Error>
where Self: Traversible,

Source§

impl<T, Extra> ParseSliceExtra<Extra> for T
where T: for<'a> Parse<Input<'a, Extra>>, Extra: Clone,

Source§

fn parse_slice_extra( data: &[u8], resolve: &Arc<dyn Resolve>, extra: &Extra, ) -> Result<Self, Error>

Source§

fn reparse_extra(&self, extra: &Extra) -> Result<Self, Error>
where Self: Traversible,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> Traversible for T
where T: 'static + Send + Sync + FullHash + Topological,

Source§

fn to_resolve(&self) -> Arc<dyn Resolve>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T, Extra> Inline<Extra> for T
where T: Object<Extra> + InlineOutput + for<'a> ParseInline<Input<'a, Extra>>,

Source§

impl<T, Extra> Object<Extra> for T
where T: Traversible + for<'a> Parse<Input<'a, Extra>>,