Enum Substance

Source
pub enum Substance {
Show 29 variants Empty, List(SubstanceList), Map(SubstanceMap), Point(Point), Surface(Surface), Text(String), Stub(Stub), Details(Details), Meta(Meta), Bin(Bin), Boolean(bool), Int(i64), Status(Status), Particle(Particle), Location(ParticleLocation), RawCommand(RawCommand), Command(Box<Command>), FormErrs(FormErrs), Json(Value), MultipartForm(MultipartForm), DirectedCore(Box<DirectedCore>), ReflectedCore(Box<ReflectedCore>), Hyper(HyperSubstance), Token(Token), UltraWave(Box<UltraWave>), Knock(Knock), Greet(Greet), Log(LogSubstance), Err(SpaceErr),
}

Variants§

§

Empty

§

List(SubstanceList)

§

Map(SubstanceMap)

§

Point(Point)

§

Surface(Surface)

§

Text(String)

§

Stub(Stub)

§

Details(Details)

§

Meta(Meta)

§

Bin(Bin)

§

Boolean(bool)

§

Int(i64)

§

Status(Status)

§

Particle(Particle)

§

Location(ParticleLocation)

§

RawCommand(RawCommand)

§

Command(Box<Command>)

§

FormErrs(FormErrs)

§

Json(Value)

§

MultipartForm(MultipartForm)

§

DirectedCore(Box<DirectedCore>)

§

ReflectedCore(Box<ReflectedCore>)

§

Hyper(HyperSubstance)

§

Token(Token)

§

UltraWave(Box<UltraWave>)

§

Knock(Knock)

§

Greet(Greet)

§

Log(LogSubstance)

§

Err(SpaceErr)

Implementations§

Source§

impl Substance

Source

pub fn ultrawave(&self) -> Option<&UltraWave>

Source

pub fn ultrawave_mut(&mut self) -> Option<&mut UltraWave>

Source§

impl Substance

Source

pub fn to_text(self) -> Result<String, SpaceErr>

Source

pub fn is_some(&self) -> bool

Source

pub fn from_bin(bin: Bin) -> Self

Source

pub fn kind(&self) -> SubstanceKind

Source

pub fn to_bin(self) -> Result<Bin, SpaceErr>

Trait Implementations§

Source§

impl Clone for Substance

Source§

fn clone(&self) -> Substance

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 Debug for Substance

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Substance

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for Substance

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 Display for Substance

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<Arc<Vec<u8>>> for Substance

Source§

fn from(f: Bin) -> Substance

Converts to this type from the input type.
Source§

impl From<Command> for Substance

Source§

fn from(f: Command) -> Substance

Converts to this type from the input type.
Source§

impl From<Details> for Substance

Source§

fn from(f: Details) -> Substance

Converts to this type from the input type.
Source§

impl From<DirectedCore> for Substance

Source§

fn from(f: DirectedCore) -> Substance

Converts to this type from the input type.
Source§

impl From<FormErrs> for Substance

Source§

fn from(f: FormErrs) -> Substance

Converts to this type from the input type.
Source§

impl From<Greet> for Substance

Source§

fn from(f: Greet) -> Substance

Converts to this type from the input type.
Source§

impl From<HashMap<String, String>> for Substance

Source§

fn from(f: Meta) -> Substance

Converts to this type from the input type.
Source§

impl From<HyperSubstance> for Substance

Source§

fn from(f: HyperSubstance) -> Substance

Converts to this type from the input type.
Source§

impl From<Knock> for Substance

Source§

fn from(f: Knock) -> Substance

Converts to this type from the input type.
Source§

impl From<LogSubstance> for Substance

Source§

fn from(f: LogSubstance) -> Substance

Converts to this type from the input type.
Source§

impl From<MultipartForm> for Substance

Source§

fn from(f: MultipartForm) -> Substance

Converts to this type from the input type.
Source§

impl From<Particle> for Substance

Source§

fn from(f: Particle) -> Substance

Converts to this type from the input type.
Source§

impl From<ParticleLocation> for Substance

Source§

fn from(f: ParticleLocation) -> Substance

Converts to this type from the input type.
Source§

impl From<PointDef<RouteSeg, PointSeg>> for Substance

Source§

fn from(f: Point) -> Substance

Converts to this type from the input type.
Source§

impl From<RawCommand> for Substance

Source§

fn from(f: RawCommand) -> Substance

Converts to this type from the input type.
Source§

impl From<ReflectedCore> for Substance

Source§

fn from(f: ReflectedCore) -> Substance

Converts to this type from the input type.
Source§

impl From<SpaceErr> for Substance

Source§

fn from(f: SpaceErr) -> Substance

Converts to this type from the input type.
Source§

impl From<Status> for Substance

Source§

fn from(f: Status) -> Substance

Converts to this type from the input type.
Source§

impl From<String> for Substance

Source§

fn from(f: String) -> Substance

Converts to this type from the input type.
Source§

impl From<Stub> for Substance

Source§

fn from(f: Stub) -> Substance

Converts to this type from the input type.
Source§

impl From<SubstanceList> for Substance

Source§

fn from(f: SubstanceList) -> Substance

Converts to this type from the input type.
Source§

impl From<SubstanceMap> for Substance

Source§

fn from(f: SubstanceMap) -> Substance

Converts to this type from the input type.
Source§

impl From<Surface> for Substance

Source§

fn from(f: Surface) -> Substance

Converts to this type from the input type.
Source§

impl From<Token> for Substance

Source§

fn from(f: Token) -> Substance

Converts to this type from the input type.
Source§

impl From<UltraWaveDef<Recipients>> for Substance

Source§

fn from(f: UltraWave) -> Substance

Converts to this type from the input type.
Source§

impl From<Value> for Substance

Source§

fn from(f: Value) -> Substance

Converts to this type from the input type.
Source§

impl From<bool> for Substance

Source§

fn from(f: bool) -> Substance

Converts to this type from the input type.
Source§

impl From<i64> for Substance

Source§

fn from(f: i64) -> Substance

Converts to this type from the input type.
Source§

impl Into<Substance> for Assign

Source§

fn into(self) -> Substance

Converts this type into the (usually inferred) input type.
Source§

impl Into<Substance> for Provision

Source§

fn into(self) -> Substance

Converts this type into the (usually inferred) input type.
Source§

impl PartialEq for Substance

Source§

fn eq(&self, other: &Substance) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Substance

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 ToSubstance<()> for Substance

Source§

impl ToSubstance<Arc<Vec<u8>>> for Substance

Source§

impl ToSubstance<Command> for Substance

Source§

impl ToSubstance<Details> for Substance

Source§

impl ToSubstance<DirectedCore> for Substance

Source§

impl ToSubstance<FormErrs> for Substance

Source§

impl ToSubstance<Greet> for Substance

Source§

impl ToSubstance<HashMap<String, String>> for Substance

Source§

impl ToSubstance<HyperSubstance> for Substance

Source§

impl ToSubstance<Knock> for Substance

Source§

impl ToSubstance<LogSubstance> for Substance

Source§

impl ToSubstance<MultipartForm> for Substance

Source§

impl ToSubstance<Particle> for Substance

Source§

impl ToSubstance<ParticleLocation> for Substance

Source§

impl ToSubstance<PointDef<RouteSeg, PointSeg>> for Substance

Source§

impl ToSubstance<RawCommand> for Substance

Source§

impl ToSubstance<ReflectedCore> for Substance

Source§

impl ToSubstance<SpaceErr> for Substance

Source§

impl ToSubstance<Status> for Substance

Source§

impl ToSubstance<String> for Substance

Source§

impl ToSubstance<Stub> for Substance

Source§

impl ToSubstance<SubstanceList> for Substance

Source§

impl ToSubstance<SubstanceMap> for Substance

Source§

impl ToSubstance<Surface> for Substance

Source§

impl ToSubstance<Token> for Substance

Source§

impl ToSubstance<UltraWaveDef<Recipients>> for Substance

Source§

impl ToSubstance<Value> for Substance

Source§

impl ToSubstance<bool> for Substance

Source§

impl ToSubstance<i64> for Substance

Source§

impl TryFrom<Pong> for Substance

Source§

type Error = SpaceErr

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

fn try_from(response: Pong) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryInto<Arc<Vec<u8>>> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Bin, Self::Error>

Performs the conversion.
Source§

impl TryInto<Command> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Command, Self::Error>

Performs the conversion.
Source§

impl TryInto<Details> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Details, Self::Error>

Performs the conversion.
Source§

impl TryInto<DirectedCore> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<DirectedCore, Self::Error>

Performs the conversion.
Source§

impl TryInto<FormErrs> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<FormErrs, Self::Error>

Performs the conversion.
Source§

impl TryInto<Greet> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Greet, Self::Error>

Performs the conversion.
Source§

impl TryInto<HashMap<String, String>> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Meta, Self::Error>

Performs the conversion.
Source§

impl TryInto<HashMap<String, Substance>> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<HashMap<String, Substance>, Self::Error>

Performs the conversion.
Source§

impl TryInto<HyperSubstance> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<HyperSubstance, Self::Error>

Performs the conversion.
Source§

impl TryInto<Knock> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Knock, Self::Error>

Performs the conversion.
Source§

impl TryInto<LogSubstance> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<LogSubstance, Self::Error>

Performs the conversion.
Source§

impl TryInto<MultipartForm> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<MultipartForm, Self::Error>

Performs the conversion.
Source§

impl TryInto<Particle> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Particle, Self::Error>

Performs the conversion.
Source§

impl TryInto<ParticleLocation> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<ParticleLocation, Self::Error>

Performs the conversion.
Source§

impl TryInto<PointDef<RouteSeg, PointSeg>> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Point, Self::Error>

Performs the conversion.
Source§

impl TryInto<RawCommand> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<RawCommand, Self::Error>

Performs the conversion.
Source§

impl TryInto<ReflectedCore> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<ReflectedCore, Self::Error>

Performs the conversion.
Source§

impl TryInto<SpaceErr> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<SpaceErr, Self::Error>

Performs the conversion.
Source§

impl TryInto<Status> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Status, Self::Error>

Performs the conversion.
Source§

impl TryInto<String> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<String, Self::Error>

Performs the conversion.
Source§

impl TryInto<Stub> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Stub, Self::Error>

Performs the conversion.
Source§

impl TryInto<SubstanceList> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<SubstanceList, Self::Error>

Performs the conversion.
Source§

impl TryInto<SubstanceMap> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<SubstanceMap, Self::Error>

Performs the conversion.
Source§

impl TryInto<Surface> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Surface, Self::Error>

Performs the conversion.
Source§

impl TryInto<Token> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Token, Self::Error>

Performs the conversion.
Source§

impl TryInto<UltraWaveDef<Recipients>> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<UltraWave, Self::Error>

Performs the conversion.
Source§

impl TryInto<Value> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<Value, Self::Error>

Performs the conversion.
Source§

impl TryInto<bool> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<bool, Self::Error>

Performs the conversion.
Source§

impl TryInto<i64> for Substance

Source§

type Error = SpaceErr

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

fn try_into(self) -> Result<i64, Self::Error>

Performs the conversion.
Source§

impl<Pnt> ValueMatcher<Substance> for SubstancePatternDef<Pnt>

Source§

fn is_match(&self, payload: &Substance) -> Result<(), ()>

Source§

impl Eq for Substance

Source§

impl StructuralPartialEq for Substance

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> 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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<I, T> ExtractContext<I, ()> for T

Source§

fn extract_context(self, _original_input: I)

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
Source§

impl<T> Fmt for T
where T: Display,

Source§

fn fg<C>(self, color: C) -> Foreground<Self>
where C: Into<Option<Color>>,

Give this value the specified foreground colour
Source§

fn bg<C>(self, color: C) -> Background<Self>
where C: Into<Option<Color>>,

Give this value the specified background colour
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Indentable for T
where T: Display,

Source§

fn indented(self, indent: &str) -> Indented<'_, Self>

Wrap this object so that its Display representation is indented with the given indent. Each non-empty line of the formatted output will be prefixed with the indent. Read more
Source§

fn indented_skip_initial(self, indent: &str) -> IndentedSkipIntial<'_, Self>

Wrap this object so that its Display representation is indented with the given indent. Each non-empty line except for the first of the formatted output will be prefixed with the indent. Read more
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<I> RecreateContext<I> for I

Source§

fn recreate_context(_original_input: I, tail: I) -> I

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
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> ErasedDestructor for T
where T: 'static,