diff --git a/main/rsn/all.html b/main/rsn/all.html index 165c5ae..7eb3598 100644 --- a/main/rsn/all.html +++ b/main/rsn/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Type Aliases

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Type Aliases

\ No newline at end of file diff --git a/main/rsn/de/enum.EnumVariantAccessor.html b/main/rsn/de/enum.EnumVariantAccessor.html deleted file mode 100644 index 898eb15..0000000 --- a/main/rsn/de/enum.EnumVariantAccessor.html +++ /dev/null @@ -1,27 +0,0 @@ -EnumVariantAccessor in rsn::de - Rust
rsn::de

Enum EnumVariantAccessor

source
pub enum EnumVariantAccessor<'a, 'de> {
-    Unit,
-    Nested(&'a mut Deserializer<'de>),
-}

Variants§

§

Unit

§

Nested(&'a mut Deserializer<'de>)

Trait Implementations§

source§

impl<'a, 'de> VariantAccess<'de> for EnumVariantAccessor<'a, 'de>

source§

type Error = DeserializerError

The error type that can be returned if some error occurs during -deserialization. Must match the error type of our EnumAccess.
source§

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

Called when deserializing a variant with no values. Read more
source§

fn newtype_variant_seed<T>(self, seed: T) -> Result<T::Value, Self::Error>
where - T: DeserializeSeed<'de>,

Called when deserializing a variant with a single value. Read more
source§

fn tuple_variant<V>( - self, - _len: usize, - visitor: V, -) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Called when deserializing a tuple-like variant. Read more
source§

fn struct_variant<V>( - self, - _fields: &'static [&'static str], - visitor: V, -) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Called when deserializing a struct-like variant. Read more
source§

fn newtype_variant<T>(self) -> Result<T, Self::Error>
where - T: Deserialize<'de>,

Called when deserializing a variant with a single value. Read more

Auto Trait Implementations§

§

impl<'a, 'de> Freeze for EnumVariantAccessor<'a, 'de>

§

impl<'a, 'de> RefUnwindSafe for EnumVariantAccessor<'a, 'de>

§

impl<'a, 'de> Send for EnumVariantAccessor<'a, 'de>

§

impl<'a, 'de> Sync for EnumVariantAccessor<'a, 'de>

§

impl<'a, 'de> Unpin for EnumVariantAccessor<'a, 'de>

§

impl<'a, 'de> !UnwindSafe for EnumVariantAccessor<'a, 'de>

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
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, 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.
\ No newline at end of file diff --git a/main/rsn/de/enum.ErrorKind.html b/main/rsn/de/enum.ErrorKind.html index 3a934dd..9cd842d 100644 --- a/main/rsn/de/enum.ErrorKind.html +++ b/main/rsn/de/enum.ErrorKind.html @@ -1,4 +1,4 @@ -ErrorKind in rsn::de - Rust
rsn::de

Enum ErrorKind

source
pub enum ErrorKind {
+ErrorKind in rsn::de - Rust
rsn::de

Enum ErrorKind

source
#[non_exhaustive]
pub enum ErrorKind {
Show 18 variants ExpectedInteger, ExpectedFloat, ExpectedUnit, @@ -17,8 +17,30 @@ SomeCanOnlyContainOneValue, Parser(ErrorKind), Message(String), -
}

Variants§

§

ExpectedInteger

§

ExpectedFloat

§

ExpectedUnit

§

ExpectedBool

§

ExpectedOption

§

ExpectedChar

§

ExpectedString

§

ExpectedBytes

§

ExpectedSequence

§

ExpectedMap

§

ExpectedTupleStruct

§

ExpectedMapStruct

§

ExpectedEnum

§

InvalidUtf8

§

NameMismatch(&'static str)

§

SomeCanOnlyContainOneValue

§

Parser(ErrorKind)

§

Message(String)

Trait Implementations§

source§

impl Clone for ErrorKind

source§

fn clone(&self) -> ErrorKind

Returns a copy 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 ErrorKind

source§

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

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

impl Display for ErrorKind

source§

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

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

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ErrorKind

source§

fn eq(&self, other: &ErrorKind) -> 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 StructuralPartialEq for ErrorKind

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

}
Expand description

The kind of a deserialization error.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ExpectedInteger

An integer was expected.

+
§

ExpectedFloat

A floating point number was expected.

+
§

ExpectedUnit

A unit type was expected.

+
§

ExpectedBool

A boolean literal was expected.

+
§

ExpectedOption

An option was expected.

+
§

ExpectedChar

A character literal was expected.

+
§

ExpectedString

A string literal was expected.

+
§

ExpectedBytes

A byte string literal was expected.

+
§

ExpectedSequence

A sequence (list) was expected.

+
§

ExpectedMap

A map was expected.

+
§

ExpectedTupleStruct

A structure containing a tuple was expected.

+
§

ExpectedMapStruct

A structure containing named fields was expected.

+
§

ExpectedEnum

An enumerated value was expected.

+
§

InvalidUtf8

Invalid UTF-8 was encountered in the input or while decoding escaped +characters.

+
§

NameMismatch(&'static str)

The name of a type did not match what was expected.

+

The &str parameter is the name that was expected.

+
§

SomeCanOnlyContainOneValue

Some(_) can only contain one value but more than one value was +encountered.

+
§

Parser(ErrorKind)

An Rsn parsing error.

+
§

Message(String)

An error from deserializing Serde.

+

Trait Implementations§

source§

impl Clone for ErrorKind

source§

fn clone(&self) -> ErrorKind

Returns a copy 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 ErrorKind

source§

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

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

impl Display for ErrorKind

source§

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

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

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ErrorKind

source§

fn eq(&self, other: &ErrorKind) -> 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 StructuralPartialEq for ErrorKind

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 diff --git a/main/rsn/de/index.html b/main/rsn/de/index.html index 1c3077f..fa10d78 100644 --- a/main/rsn/de/index.html +++ b/main/rsn/de/index.html @@ -1 +1,2 @@ -rsn::de - Rust
\ No newline at end of file +rsn::de - Rust
rsn

Module de

source
Expand description

Serde deserialization support.

+

Structs§

Enums§

  • The kind of a deserialization error.
\ No newline at end of file diff --git a/main/rsn/de/sidebar-items.js b/main/rsn/de/sidebar-items.js index 7c123bc..a0118be 100644 --- a/main/rsn/de/sidebar-items.js +++ b/main/rsn/de/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":["EnumVariantAccessor","ErrorKind"],"struct":["Deserializer","DeserializerError","Error","SequenceDeserializer"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["ErrorKind"],"struct":["Deserializer","DeserializerError","Error"]}; \ No newline at end of file diff --git a/main/rsn/de/struct.Deserializer.html b/main/rsn/de/struct.Deserializer.html index 6db7816..7c9ef9e 100644 --- a/main/rsn/de/struct.Deserializer.html +++ b/main/rsn/de/struct.Deserializer.html @@ -1,91 +1,99 @@ -Deserializer in rsn::de - Rust
rsn::de

Struct Deserializer

source
pub struct Deserializer<'de> { /* private fields */ }

Implementations§

source§

impl<'de> Deserializer<'de>

source

pub fn new(source: &'de str, config: Config) -> Self

source

pub fn ensure_eof(self) -> Result<(), Error>

Trait Implementations§

source§

impl<'de> Deserializer<'de> for &mut Deserializer<'de>

source§

type Error = DeserializerError

The error type that can be returned if some error occurs during -deserialization.
source§

fn deserialize_i8<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting an i8 value.
source§

fn deserialize_i16<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting an i16 value.
source§

fn deserialize_i32<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting an i32 value.
source§

fn deserialize_i64<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting an i64 value.
source§

fn deserialize_i128<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
source§

fn deserialize_u8<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a u8 value.
source§

fn deserialize_u16<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a u16 value.
source§

fn deserialize_u32<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a u32 value.
source§

fn deserialize_u64<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a u64 value.
source§

fn deserialize_u128<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
source§

fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where +Deserializer in rsn::de - Rust
rsn::de

Struct Deserializer

source
pub struct Deserializer<'de> { /* private fields */ }
Expand description

Deserializes Rsn using Serde.

+

Implementations§

source§

impl<'de> Deserializer<'de>

source

pub fn new(source: &'de str, configuration: Config) -> Self

Returns a deserializer for source with the given configuration.

+

Config::include_comments will always be disabled, regardless of the +value set in configuration.

+
source

pub fn ensure_eof(self) -> Result<(), Error>

Checks that this deserializer has consumed all of the input.

+
§Errors
+

Returns parser::ErrorKind::TrailingData if there is any data left +unparsed.

+

Trait Implementations§

source§

impl<'de> Deserializer<'de> for &mut Deserializer<'de>

source§

type Error = DeserializerError

The error type that can be returned if some error occurs during +deserialization.
source§

fn deserialize_i8<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting an i8 value.
source§

fn deserialize_i16<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting an i16 value.
source§

fn deserialize_i32<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting an i32 value.
source§

fn deserialize_i64<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting an i64 value.
source§

fn deserialize_i128<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting an i128 value. Read more
source§

fn deserialize_u8<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a u8 value.
source§

fn deserialize_u16<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a u16 value.
source§

fn deserialize_u32<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a u32 value.
source§

fn deserialize_u64<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a u64 value.
source§

fn deserialize_u128<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting an u128 value. Read more
source§

fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Require the Deserializer to figure out how to drive the visitor based -on what data type is in the input. Read more
source§

fn deserialize_bool<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a bool value.
source§

fn deserialize_f32<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a f32 value.
source§

fn deserialize_f64<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a f64 value.
source§

fn deserialize_char<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a char value.
source§

fn deserialize_str<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where +on what data type is in the input. Read more

source§

fn deserialize_bool<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a bool value.
source§

fn deserialize_f32<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a f32 value.
source§

fn deserialize_f64<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a f64 value.
source§

fn deserialize_char<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a char value.
source§

fn deserialize_str<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the -Deserializer. Read more
source§

fn deserialize_string<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where +Deserializer. Read more

source§

fn deserialize_string<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the -Deserializer. Read more
source§

fn deserialize_bytes<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where +Deserializer. Read more

source§

fn deserialize_bytes<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the -Deserializer. Read more
source§

fn deserialize_byte_buf<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where +Deserializer. Read more

source§

fn deserialize_byte_buf<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the -Deserializer. Read more
source§

fn deserialize_option<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting an optional value. Read more
source§

fn deserialize_unit<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit value.
source§

fn deserialize_unit_struct<V>( +Deserializer. Read more

source§

fn deserialize_option<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting an optional value. Read more
source§

fn deserialize_unit<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit value.
source§

fn deserialize_unit_struct<V>( self, _name: &'static str, visitor: V, ) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a unit struct with a -particular name.
source§

fn deserialize_newtype_struct<V>( +particular name.

source§

fn deserialize_newtype_struct<V>( self, name: &'static str, visitor: V, ) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a newtype struct with a -particular name.
source§

fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values.
source§

fn deserialize_tuple<V>( +particular name.

source§

fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values.
source§

fn deserialize_tuple<V>( self, _len: usize, visitor: V, ) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a sequence of values and -knows how many values there are without looking at the serialized data.
source§

fn deserialize_tuple_struct<V>( +knows how many values there are without looking at the serialized data.

source§

fn deserialize_tuple_struct<V>( self, struct_name: &'static str, _len: usize, visitor: V, ) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a tuple struct with a -particular name and number of fields.
source§

fn deserialize_map<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where - V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
source§

fn deserialize_struct<V>( +particular name and number of fields.

source§

fn deserialize_map<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where + V: Visitor<'de>,

Hint that the Deserialize type is expecting a map of key-value pairs.
source§

fn deserialize_struct<V>( self, struct_name: &'static str, _fields: &'static [&'static str], visitor: V, ) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting a struct with a particular -name and fields.
source§

fn deserialize_enum<V>( +name and fields.

source§

fn deserialize_enum<V>( self, _name: &'static str, _variants: &'static [&'static str], visitor: V, ) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting an enum value with a -particular name and possible variants.
source§

fn deserialize_identifier<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where +particular name and possible variants.

source§

fn deserialize_identifier<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type is expecting the name of a struct -field or the discriminant of an enum variant.
source§

fn deserialize_ignored_any<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where +field or the discriminant of an enum variant.

source§

fn deserialize_ignored_any<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Hint that the Deserialize type needs to deserialize a value whose type doesn’t matter because it is ignored. Read more
source§

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to -deserialize their human-readable form. Read more
source§

impl<'a, 'de> EnumAccess<'de> for &'a mut Deserializer<'de>

source§

type Error = DeserializerError

The error type that can be returned if some error occurs during -deserialization.
source§

type Variant = EnumVariantAccessor<'a, 'de>

The Visitor that will be used to deserialize the content of the enum -variant.
source§

fn variant_seed<V>( +deserialize their human-readable form. Read more

source§

impl<'a, 'de> EnumAccess<'de> for &'a mut Deserializer<'de>

source§

type Error = DeserializerError

The error type that can be returned if some error occurs during +deserialization.
source§

type Variant = EnumVariantAccessor<'a, 'de>

The Visitor that will be used to deserialize the content of the enum +variant.
source§

fn variant_seed<V>( self, seed: V, ) -> Result<(V::Value, Self::Variant), Self::Error>
where V: DeserializeSeed<'de>,

variant is called to identify which variant to deserialize. Read more
source§

fn variant<V>(self) -> Result<(V, Self::Variant), Self::Error>
where - V: Deserialize<'de>,

variant is called to identify which variant to deserialize. Read more
source§

impl<'de> MapAccess<'de> for Deserializer<'de>

source§

type Error = DeserializerError

The error type that can be returned if some error occurs during -deserialization.
source§

fn next_key_seed<K>(&mut self, seed: K) -> Result<Option<K::Value>, Self::Error>
where + V: Deserialize<'de>,

variant is called to identify which variant to deserialize. Read more
source§

impl<'de> MapAccess<'de> for Deserializer<'de>

source§

type Error = DeserializerError

The error type that can be returned if some error occurs during +deserialization.
source§

fn next_key_seed<K>(&mut self, seed: K) -> Result<Option<K::Value>, Self::Error>
where K: DeserializeSeed<'de>,

This returns Ok(Some(key)) for the next key in the map, or Ok(None) -if there are no more remaining entries. Read more
source§

fn next_value_seed<V>(&mut self, seed: V) -> Result<V::Value, Self::Error>
where +if there are no more remaining entries. Read more

source§

fn next_value_seed<V>(&mut self, seed: V) -> Result<V::Value, Self::Error>
where V: DeserializeSeed<'de>,

This returns a Ok(value) for the next value in the map. Read more
source§

fn next_entry_seed<K, V>( &mut self, kseed: K, diff --git a/main/rsn/de/struct.DeserializerError.html b/main/rsn/de/struct.DeserializerError.html index c3d3d7b..8237d17 100644 --- a/main/rsn/de/struct.DeserializerError.html +++ b/main/rsn/de/struct.DeserializerError.html @@ -1,10 +1,10 @@ -DeserializerError in rsn::de - Rust
rsn::de

Struct DeserializerError

source
pub struct DeserializerError {
+DeserializerError in rsn::de - Rust
rsn::de

Struct DeserializerError

source
pub struct DeserializerError {
     pub location: Option<Range<usize>>,
     pub kind: ErrorKind,
-}

Fields§

§location: Option<Range<usize>>§kind: ErrorKind

Implementations§

source§

impl DeserializerError

source

pub fn new( - location: impl Into<Option<Range<usize>>>, - kind: impl Into<ErrorKind>, -) -> Self

Trait Implementations§

source§

impl Clone for DeserializerError

source§

fn clone(&self) -> DeserializerError

Returns a copy 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 DeserializerError

source§

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

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

impl Display for DeserializerError

source§

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

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

impl Error for DeserializerError

source§

fn custom<T>(msg: T) -> Self
where +}

Expand description

An error that arose while deserializing Rsn.

+

Fields§

§location: Option<Range<usize>>

The location of the error, if available.

+
§kind: ErrorKind

The kind of error that occurred.

+

Trait Implementations§

source§

impl Clone for DeserializerError

source§

fn clone(&self) -> DeserializerError

Returns a copy 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 DeserializerError

source§

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

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

impl Display for DeserializerError

source§

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

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

impl Error for DeserializerError

source§

fn custom<T>(msg: T) -> Self
where T: Display,

Raised when there is general error when deserializing a type. Read more
source§

fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self

Raised when a Deserialize receives a type different from what it was expecting. Read more
source§

fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self

Raised when a Deserialize receives a value of the right type but that is wrong for some other reason. Read more
source§

fn invalid_length(len: usize, exp: &dyn Expected) -> Self

Raised when deserializing a sequence or map and the input data contains @@ -13,8 +13,8 @@ unrecognized name.
source§

fn missing_field(field: &'static str) -> Self

Raised when a Deserialize struct type expected to receive a required field with a particular name but that field was not present in the input.
source§

fn duplicate_field(field: &'static str) -> Self

Raised when a Deserialize struct type received more than one of the -same field.
source§

impl Error for DeserializerError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for DeserializerError

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for DeserializerError

source§

fn eq(&self, other: &DeserializerError) -> 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 StructuralPartialEq for DeserializerError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +same field.

source§

impl Error for DeserializerError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for DeserializerError

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for DeserializerError

source§

fn eq(&self, other: &DeserializerError) -> 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 StructuralPartialEq for DeserializerError

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 diff --git a/main/rsn/de/struct.Error.html b/main/rsn/de/struct.Error.html index 733903b..7a493eb 100644 --- a/main/rsn/de/struct.Error.html +++ b/main/rsn/de/struct.Error.html @@ -1,8 +1,11 @@ -Error in rsn::de - Rust
rsn::de

Struct Error

source
pub struct Error {
+Error in rsn::de - Rust
rsn::de

Struct Error

source
pub struct Error {
     pub location: Range<usize>,
     pub kind: ErrorKind,
-}

Fields§

§location: Range<usize>§kind: ErrorKind

Implementations§

source§

impl Error

source

pub fn new(location: Range<usize>, kind: impl Into<ErrorKind>) -> Self

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy 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 Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Error

source§

fn eq(&self, other: &Error) -> 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 StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A deserialization error.

+

Fields§

§location: Range<usize>

The offset of bytes in the source when the error occurred.

+
§kind: ErrorKind

The kind of error that occurred.

+

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy 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 Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Error

source§

fn eq(&self, other: &Error) -> 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 StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

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 diff --git a/main/rsn/de/struct.SequenceDeserializer.html b/main/rsn/de/struct.SequenceDeserializer.html deleted file mode 100644 index 2ab9715..0000000 --- a/main/rsn/de/struct.SequenceDeserializer.html +++ /dev/null @@ -1,19 +0,0 @@ -SequenceDeserializer in rsn::de - Rust
rsn::de

Struct SequenceDeserializer

source
pub struct SequenceDeserializer<'a, 'de> { /* private fields */ }

Trait Implementations§

source§

impl<'a, 'de> Drop for SequenceDeserializer<'a, 'de>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a, 'de> SeqAccess<'de> for SequenceDeserializer<'a, 'de>

source§

type Error = DeserializerError

The error type that can be returned if some error occurs during -deserialization.
source§

fn next_element_seed<T>( - &mut self, - seed: T, -) -> Result<Option<T::Value>, Self::Error>
where - T: DeserializeSeed<'de>,

This returns Ok(Some(value)) for the next value in the sequence, or -Ok(None) if there are no more remaining items. Read more
source§

fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error>
where - T: Deserialize<'de>,

This returns Ok(Some(value)) for the next value in the sequence, or -Ok(None) if there are no more remaining items. Read more
source§

fn size_hint(&self) -> Option<usize>

Returns the number of elements remaining in the sequence, if known.

Auto Trait Implementations§

§

impl<'a, 'de> Freeze for SequenceDeserializer<'a, 'de>

§

impl<'a, 'de> RefUnwindSafe for SequenceDeserializer<'a, 'de>

§

impl<'a, 'de> Send for SequenceDeserializer<'a, 'de>

§

impl<'a, 'de> Sync for SequenceDeserializer<'a, 'de>

§

impl<'a, 'de> Unpin for SequenceDeserializer<'a, 'de>

§

impl<'a, 'de> !UnwindSafe for SequenceDeserializer<'a, 'de>

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
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, 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.
\ No newline at end of file diff --git a/main/rsn/fn.from_reader.html b/main/rsn/fn.from_reader.html index 6381a72..ff8af8a 100644 --- a/main/rsn/fn.from_reader.html +++ b/main/rsn/fn.from_reader.html @@ -1 +1,6 @@ -from_reader in rsn - Rust
rsn

Function from_reader

source
pub fn from_reader<D: DeserializeOwned, R: Read>(reader: R) -> Result<D, Error>
\ No newline at end of file +from_reader in rsn - Rust
rsn

Function from_reader

source
pub fn from_reader<D: DeserializeOwned, R: Read>(reader: R) -> Result<D, Error>
Expand description

Deserializes D from reader using the default Rsn +Config.

+

§Errors

+

Returns an error if reader returns an error while reading, doesn’t contain +valid Rsn, or cannot be deserialized as D.

+
\ No newline at end of file diff --git a/main/rsn/fn.from_slice.html b/main/rsn/fn.from_slice.html index 4642837..5113552 100644 --- a/main/rsn/fn.from_slice.html +++ b/main/rsn/fn.from_slice.html @@ -1,3 +1,8 @@ -from_slice in rsn - Rust
rsn

Function from_slice

source
pub fn from_slice<'de, D: Deserialize<'de>>(
+from_slice in rsn - Rust
rsn

Function from_slice

source
pub fn from_slice<'de, D: Deserialize<'de>>(
     source: &'de [u8],
-) -> Result<D, Error>
\ No newline at end of file +) -> Result<D, Error>
Expand description

Deserializes D from slice using the default Rsn +Config.

+

§Errors

+

Returns an error if slice isn’t valid Rsn or cannot be deserialized as +D.

+
\ No newline at end of file diff --git a/main/rsn/fn.from_str.html b/main/rsn/fn.from_str.html index 7878501..17552c0 100644 --- a/main/rsn/fn.from_str.html +++ b/main/rsn/fn.from_str.html @@ -1 +1,6 @@ -from_str in rsn - Rust
rsn

Function from_str

source
pub fn from_str<'de, D: Deserialize<'de>>(source: &'de str) -> Result<D, Error>
\ No newline at end of file +from_str in rsn - Rust
rsn

Function from_str

source
pub fn from_str<'de, D: Deserialize<'de>>(source: &'de str) -> Result<D, Error>
Expand description

Deserializes D from source using the default Rsn +Config.

+

§Errors

+

Returns an error if source isn’t valid Rsn or cannot be deserialized as +D.

+
\ No newline at end of file diff --git a/main/rsn/fn.to_string.html b/main/rsn/fn.to_string.html index 0ad239e..eee6765 100644 --- a/main/rsn/fn.to_string.html +++ b/main/rsn/fn.to_string.html @@ -1 +1,7 @@ -to_string in rsn - Rust
rsn

Function to_string

source
pub fn to_string<S: Serialize>(value: &S) -> String
\ No newline at end of file +to_string in rsn - Rust
rsn

Function to_string

source
pub fn to_string<S: Serialize>(value: &S) -> Result<String, Error>
Expand description

Serializes value into a String using the default Rsn +Config.

+

§Errors

+

Rsn itself does not produce any errors while serializing values. This +function will return errors that arise within Serialize implementations +encountered while serializing value.

+
\ No newline at end of file diff --git a/main/rsn/fn.to_string_pretty.html b/main/rsn/fn.to_string_pretty.html index 08abbd7..67f1b19 100644 --- a/main/rsn/fn.to_string_pretty.html +++ b/main/rsn/fn.to_string_pretty.html @@ -1 +1,7 @@ -to_string_pretty in rsn - Rust
rsn

Function to_string_pretty

source
pub fn to_string_pretty<S: Serialize>(value: &S) -> String
\ No newline at end of file +to_string_pretty in rsn - Rust
rsn

Function to_string_pretty

source
pub fn to_string_pretty<S: Serialize>(value: &S) -> Result<String, Error>
Expand description

Serializes value into a String using +Config::pretty().

+

§Errors

+

Rsn itself does not produce any errors while serializing values. This +function will return errors that arise within Serialize implementations +encountered while serializing value.

+
\ No newline at end of file diff --git a/main/rsn/fn.to_vec.html b/main/rsn/fn.to_vec.html index 5ab3b84..1291cfd 100644 --- a/main/rsn/fn.to_vec.html +++ b/main/rsn/fn.to_vec.html @@ -1 +1,7 @@ -to_vec in rsn - Rust
rsn

Function to_vec

source
pub fn to_vec<S: Serialize>(value: &S) -> Vec<u8>
\ No newline at end of file +to_vec in rsn - Rust
rsn

Function to_vec

source
pub fn to_vec<S: Serialize>(value: &S) -> Result<Vec<u8>, Error>
Expand description

Serializes value into a Vec<u8> using the default Rsn +Config.

+

§Errors

+

Rsn itself does not produce any errors while serializing values. This +function will return errors that arise within Serialize implementations +encountered while serializing value.

+
\ No newline at end of file diff --git a/main/rsn/fn.to_writer.html b/main/rsn/fn.to_writer.html index 6c83b7d..2c707f5 100644 --- a/main/rsn/fn.to_writer.html +++ b/main/rsn/fn.to_writer.html @@ -1 +1,6 @@ -to_writer in rsn - Rust
rsn

Function to_writer

source
pub fn to_writer<S: Serialize, W: Write>(value: &S, writer: W) -> Result<usize>
\ No newline at end of file +to_writer in rsn - Rust
rsn

Function to_writer

source
pub fn to_writer<S: Serialize, W: Write>(value: &S, writer: W) -> Result<usize>
Expand description

Serializes value into a writer using the default Rsn +Config.

+

§Errors

+

Returns any errors occurring while serializing value or while writing to +writer.

+
\ No newline at end of file diff --git a/main/rsn/index.html b/main/rsn/index.html index 56f17be..3b5cc4e 100644 --- a/main/rsn/index.html +++ b/main/rsn/index.html @@ -1 +1,153 @@ -rsn - Rust
\ No newline at end of file +rsn - Rust

Crate rsn

source
Expand description

§Rsn - Rusty Notation

+

This crate is very early in development. Please report any issues on our +GitHub.

+

rsn forbids unsafe code +rsn is considered alpha +crate version +Live Build Status +HTML Coverage Report for main +Documentation for main

+

A UTF-8 based text format that looks very similar to valid Rust code. This format adheres closely to Rust’s lexical rules

+

§no_std support

+

This crate supports no_std targets that support the alloc crate.

+

§Data Types

ExampleStruct {
+  integers: [42, 0xFF, 0o77, 0b101],
+  floats: [42., 3.14, 1e10],
+  bools: [true, false],
+  chars: ['a', '\''],
+  string: "Hello, World!",
+  raw_string: r#"I said, "Hello, World!""#,
+  bytes: [b'a', b'\''],
+  byte_string: b"Hello, World!",
+  raw_byte_string: br#"I said, "Hello, World!""#,
+  named_map: StructLike {
+    field: 42,
+  },
+  named_tuple: TupleLike(42),
+  r#raw_identifiers: true,
+  array: [1, 2, 3],
+  tuple: (1, 2, 3),
+  map: {
+    "a": 1,
+    "b": 2,
+  },
+}
+
    +
  • +

    Integers (42, 0xFF, 0o77, 0b101)

    +
  • +
  • +

    Floats (42., 3.14)

    +
  • +
  • +

    Bool (true, false)

    +
  • +
  • +

    Character ('a', '\'')

    +
  • +
  • +

    Byte (b'a', b'\'')

    +
  • +
  • +

    String ("hello, world")

    +
  • +
  • +

    Raw Strings (r#"They said, "Hello World!""#)

    +
  • +
  • +

    Byte Strings (b"hello, world")

    +
  • +
  • +

    Named

    +
      +
    • Ident or Raw Ident (r#foo)
    • +
    • Map or Tuple
    • +
    +
  • +
  • +

    Map

    +
      +
    • List of <Value>: <Value> pairs, delimited by comma
    • +
    • Trailing comma is optional
    • +
    +
  • +
  • +

    Tuple (empty tuple = Unit)

    +
      +
    • List of <Value>s, delimited by comma
    • +
    • Trailing comma is optional
    • +
    +
  • +
  • +

    Array

    +
      +
    • List of <Value>s, delimited by comma
    • +
    • Trailing comma is optional
    • +
    +
  • +
  • +

    Comments // and /* */

    +
  • +
  • +

    Potential Extensions via #[] syntax

    +
      +
    • Semi-strict comma-delimited list
    • +
    • #[foo(...), bar = ...,]
    • +
    • All braces/brackets/parens must be paired correctly?
    • +
    +
  • +
+ +
    +
  • rsn-fmt: A formatter project for rsn.
  • +
  • rsn.vim: A plugin for Vim/NeoVim.
  • +
+

§Why not Ron?

+

Ron is a great format. There were a few design +decisions that led to this very-similar-yet-not-the-same format being invented:

+
    +
  • ron differentiates between Tuples and Lists, while rsn treats all +sequences the same.
  • +
  • ron uses a different syntax for structures and maps. rsn uses the same +syntax for both concepts.
  • +
  • ron has special support for Option<T>. rsn treats Option<T> like any +other enum.
  • +
  • ron’s parsing rules are close but not the same as Rust, while rsn attempts +to match implementations: +
      +
    • Unicode white space and idents (added in +ron-rs/ron#444)
    • +
    • Rust allows _ in float literals
    • +
    • Rust allows for raw line endings to be escaped in string literals.
    • +
    • Rust supports byte strings and byte literals, while Ron elected to use +base64 encoded strings for byte values.
    • +
    +
  • +
+

§Differences between Rust syntax and Rsn

+

The syntax differs from valid Rust code for:

+
    +
  • Map literals. Rust has no syntax for map literals.
  • +
  • Enum Variants being used without the type name – Red vs Color::Red +
      +
    • This is technically valid Rust syntax if use Color::* is present.
    • +
    +
  • +
  • Infinity and Not-A-Number floats are represented as ++inf/-inf/+NaN/-NaN. +
      +
    • For compatibility with Rust syntax, support for +f64::INFINITY is being +considered.
    • +
    +
  • +
+

The rules for parsing literals should match Rust’s rules as closely as possible.

+

Modules§

  • Serde deserialization support.
  • Parse data or a reader into a sequence of Rsn events.
  • Serde serialization support.
  • Parse data or a reader into a sequence of tokens.
  • Types for generically representing the parsed value from an Rsn document.
  • Types for writing Rsn.

Functions§

\ No newline at end of file diff --git a/main/rsn/parser/enum.ErrorKind.html b/main/rsn/parser/enum.ErrorKind.html index 622510a..7714dd8 100644 --- a/main/rsn/parser/enum.ErrorKind.html +++ b/main/rsn/parser/enum.ErrorKind.html @@ -1,4 +1,4 @@ -ErrorKind in rsn::parser - Rust
rsn::parser

Enum ErrorKind

source
pub enum ErrorKind {
+ErrorKind in rsn::parser - Rust
rsn::parser

Enum ErrorKind

source
#[non_exhaustive]
pub enum ErrorKind { Tokenizer(ErrorKind), UnexpectedEof, ExpectedKey, @@ -7,8 +7,19 @@ ExpectedCommaOrEnd(Nested), ExpectedMapOrTuple, TrailingData, -}

Variants§

§

Tokenizer(ErrorKind)

§

UnexpectedEof

§

ExpectedKey

§

ExpectedColon

§

ExpectedValue

§

ExpectedCommaOrEnd(Nested)

§

ExpectedMapOrTuple

§

TrailingData

Trait Implementations§

source§

impl Clone for ErrorKind

source§

fn clone(&self) -> ErrorKind

Returns a copy 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 ErrorKind

source§

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

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

impl Display for ErrorKind

source§

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

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

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ErrorKind

source§

fn eq(&self, other: &ErrorKind) -> 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 Eq for ErrorKind

source§

impl StructuralPartialEq for ErrorKind

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A kind of error that arose while parsing Rsn events.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Tokenizer(ErrorKind)

An error occurred tokenizing the input.

+
§

UnexpectedEof

An end-of-file error was encountered when data was still expected.

+
§

ExpectedKey

A key in a map was expected.

+
§

ExpectedColon

A : was expected.

+
§

ExpectedValue

A value was expected.

+

This may be encountered in both sequence (list/tuple) parsing and map +parsing.

+
§

ExpectedCommaOrEnd(Nested)

Expected a , or the end-variant of the specified Nested.

+
§

ExpectedMapOrTuple

Expected either a map or a tuple.

+
§

TrailingData

Additional data was found after a complete value was parsed.

+

Trait Implementations§

source§

impl Clone for ErrorKind

source§

fn clone(&self) -> ErrorKind

Returns a copy 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 ErrorKind

source§

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

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

impl Display for ErrorKind

source§

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

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

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ErrorKind

source§

fn eq(&self, other: &ErrorKind) -> 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 Eq for ErrorKind

source§

impl StructuralPartialEq for ErrorKind

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 diff --git a/main/rsn/parser/enum.EventKind.html b/main/rsn/parser/enum.EventKind.html index 01e7448..ac0e527 100644 --- a/main/rsn/parser/enum.EventKind.html +++ b/main/rsn/parser/enum.EventKind.html @@ -1,4 +1,4 @@ -EventKind in rsn::parser - Rust
rsn::parser

Enum EventKind

source
pub enum EventKind<'s> {
+EventKind in rsn::parser - Rust
rsn::parser

Enum EventKind

source
pub enum EventKind<'s> {
     BeginNested {
         name: Option<Name<'s>>,
         kind: Nested,
@@ -6,8 +6,20 @@
     EndNested,
     Primitive(Primitive<'s>),
     Comment(&'s str),
-}

Variants§

§

BeginNested

Fields

§name: Option<Name<'s>>
§kind: Nested
§

EndNested

§

Primitive(Primitive<'s>)

§

Comment(&'s str)

Trait Implementations§

source§

impl<'s> Clone for EventKind<'s>

source§

fn clone(&self) -> EventKind<'s>

Returns a copy 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<'s> Debug for EventKind<'s>

source§

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

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

impl<'s> PartialEq for EventKind<'s>

source§

fn eq(&self, other: &EventKind<'s>) -> 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<'s> StructuralPartialEq for EventKind<'s>

Auto Trait Implementations§

§

impl<'s> Freeze for EventKind<'s>

§

impl<'s> RefUnwindSafe for EventKind<'s>

§

impl<'s> Send for EventKind<'s>

§

impl<'s> Sync for EventKind<'s>

§

impl<'s> Unpin for EventKind<'s>

§

impl<'s> UnwindSafe for EventKind<'s>

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A kind of an event encountered when parsing Rsn.

+

Variants§

§

BeginNested

A nested sequence of events has started.

+

The next events “belong” to this nesting until a matching +EventKind::EndNested is encountered.

+

Fields

§name: Option<Name<'s>>

The name of this nested context, if encountered.

+
§kind: Nested

The type of nesting.

+
§

EndNested

A nested sequence of events has concluded.

+

This event can only be encountered after a EventKind::BeginNested +has been encountered. Only valid nesting equences can be encountered. If +nesting cannot be matched, an error will be returned.

+
§

Primitive(Primitive<'s>)

A primitive literal.

+
§

Comment(&'s str)

A comment.

+

Trait Implementations§

source§

impl<'s> Clone for EventKind<'s>

source§

fn clone(&self) -> EventKind<'s>

Returns a copy 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<'s> Debug for EventKind<'s>

source§

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

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

impl<'s> PartialEq for EventKind<'s>

source§

fn eq(&self, other: &EventKind<'s>) -> 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<'s> StructuralPartialEq for EventKind<'s>

Auto Trait Implementations§

§

impl<'s> Freeze for EventKind<'s>

§

impl<'s> RefUnwindSafe for EventKind<'s>

§

impl<'s> Send for EventKind<'s>

§

impl<'s> Sync for EventKind<'s>

§

impl<'s> Unpin for EventKind<'s>

§

impl<'s> UnwindSafe for EventKind<'s>

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 diff --git a/main/rsn/parser/enum.ListState.html b/main/rsn/parser/enum.ListState.html deleted file mode 100644 index 5b90525..0000000 --- a/main/rsn/parser/enum.ListState.html +++ /dev/null @@ -1,17 +0,0 @@ -ListState in rsn::parser - Rust
rsn::parser

Enum ListState

source
pub enum ListState {
-    ExpectingValue,
-    ExpectingComma,
-}

Variants§

§

ExpectingValue

§

ExpectingComma

Trait Implementations§

source§

impl Clone for ListState

source§

fn clone(&self) -> ListState

Returns a copy 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 ListState

source§

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

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

impl PartialEq for ListState

source§

fn eq(&self, other: &ListState) -> 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 Copy for ListState

source§

impl Eq for ListState

source§

impl StructuralPartialEq for ListState

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, dst: *mut T)

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
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> 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, 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.
\ No newline at end of file diff --git a/main/rsn/parser/enum.MapState.html b/main/rsn/parser/enum.MapState.html deleted file mode 100644 index 4cde935..0000000 --- a/main/rsn/parser/enum.MapState.html +++ /dev/null @@ -1,19 +0,0 @@ -MapState in rsn::parser - Rust
rsn::parser

Enum MapState

source
pub enum MapState {
-    ExpectingKey,
-    ExpectingColon,
-    ExpectingValue,
-    ExpectingComma,
-}

Variants§

§

ExpectingKey

§

ExpectingColon

§

ExpectingValue

§

ExpectingComma

Trait Implementations§

source§

impl Clone for MapState

source§

fn clone(&self) -> MapState

Returns a copy 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 MapState

source§

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

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

impl PartialEq for MapState

source§

fn eq(&self, other: &MapState) -> 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 Copy for MapState

source§

impl Eq for MapState

source§

impl StructuralPartialEq for MapState

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, dst: *mut T)

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
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> 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, 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.
\ No newline at end of file diff --git a/main/rsn/parser/enum.Nested.html b/main/rsn/parser/enum.Nested.html index 88bf107..cb06970 100644 --- a/main/rsn/parser/enum.Nested.html +++ b/main/rsn/parser/enum.Nested.html @@ -1,9 +1,13 @@ -Nested in rsn::parser - Rust
rsn::parser

Enum Nested

source
pub enum Nested {
+Nested in rsn::parser - Rust
rsn::parser

Enum Nested

source
pub enum Nested {
     Tuple,
     Map,
     List,
-}

Variants§

§

Tuple

§

Map

§

List

Trait Implementations§

source§

impl Clone for Nested

source§

fn clone(&self) -> Nested

Returns a copy 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 Nested

source§

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

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

impl From<Balanced> for Nested

source§

fn from(kind: Balanced) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Nested

source§

fn eq(&self, other: &Nested) -> 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 Copy for Nested

source§

impl Eq for Nested

source§

impl StructuralPartialEq for Nested

Auto Trait Implementations§

§

impl Freeze for Nested

§

impl RefUnwindSafe for Nested

§

impl Send for Nested

§

impl Sync for Nested

§

impl Unpin for Nested

§

impl UnwindSafe for Nested

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A kind of nestable types.

+

Variants§

§

Tuple

A sequence of values enclosed by parentheses.

+
§

Map

A sequence of key-value pairs enclosed by curly braces.

+
§

List

A sequence of values enclosed by square brackets.

+

Trait Implementations§

source§

impl Clone for Nested

source§

fn clone(&self) -> Nested

Returns a copy 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 Nested

source§

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

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

impl From<Balanced> for Nested

source§

fn from(kind: Balanced) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Nested

source§

fn eq(&self, other: &Nested) -> 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 Copy for Nested

source§

impl Eq for Nested

source§

impl StructuralPartialEq for Nested

Auto Trait Implementations§

§

impl Freeze for Nested

§

impl RefUnwindSafe for Nested

§

impl Send for Nested

§

impl Sync for Nested

§

impl Unpin for Nested

§

impl UnwindSafe for Nested

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 diff --git a/main/rsn/parser/enum.NestedState.html b/main/rsn/parser/enum.NestedState.html deleted file mode 100644 index 943911c..0000000 --- a/main/rsn/parser/enum.NestedState.html +++ /dev/null @@ -1,18 +0,0 @@ -NestedState in rsn::parser - Rust
rsn::parser

Enum NestedState

source
pub enum NestedState {
-    Tuple(ListState),
-    List(ListState),
-    Map(MapState),
-}

Variants§

Trait Implementations§

source§

impl Clone for NestedState

source§

fn clone(&self) -> NestedState

Returns a copy 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 NestedState

source§

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

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

impl PartialEq for NestedState

source§

fn eq(&self, other: &NestedState) -> 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 Copy for NestedState

source§

impl Eq for NestedState

source§

impl StructuralPartialEq for NestedState

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, dst: *mut T)

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
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> 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, 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.
\ No newline at end of file diff --git a/main/rsn/parser/enum.Primitive.html b/main/rsn/parser/enum.Primitive.html index fd29a83..ba63a57 100644 --- a/main/rsn/parser/enum.Primitive.html +++ b/main/rsn/parser/enum.Primitive.html @@ -1,4 +1,4 @@ -Primitive in rsn::parser - Rust
rsn::parser

Enum Primitive

source
pub enum Primitive<'s> {
+Primitive in rsn::parser - Rust
rsn::parser

Enum Primitive

source
pub enum Primitive<'s> {
     Bool(bool),
     Integer(Integer),
     Float(f64),
@@ -6,8 +6,16 @@
     String(Cow<'s, str>),
     Identifier(&'s str),
     Bytes(Cow<'s, [u8]>),
-}

Variants§

§

Bool(bool)

§

Integer(Integer)

§

Float(f64)

§

Char(char)

§

String(Cow<'s, str>)

§

Identifier(&'s str)

§

Bytes(Cow<'s, [u8]>)

Trait Implementations§

source§

impl<'s> Clone for Primitive<'s>

source§

fn clone(&self) -> Primitive<'s>

Returns a copy 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<'s> Debug for Primitive<'s>

source§

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

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

impl<'s> PartialEq for Primitive<'s>

source§

fn eq(&self, other: &Primitive<'s>) -> 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<'s> StructuralPartialEq for Primitive<'s>

Auto Trait Implementations§

§

impl<'s> Freeze for Primitive<'s>

§

impl<'s> RefUnwindSafe for Primitive<'s>

§

impl<'s> Send for Primitive<'s>

§

impl<'s> Sync for Primitive<'s>

§

impl<'s> Unpin for Primitive<'s>

§

impl<'s> UnwindSafe for Primitive<'s>

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A primitive literal.

+

Variants§

§

Bool(bool)

A boolean literal.

+
§

Integer(Integer)

An integer literal.

+
§

Float(f64)

A floating point literal.

+
§

Char(char)

A character literal.

+
§

String(Cow<'s, str>)

A string literal.

+
§

Identifier(&'s str)

An identifier.

+
§

Bytes(Cow<'s, [u8]>)

A byte string literal.

+

Trait Implementations§

source§

impl<'s> Clone for Primitive<'s>

source§

fn clone(&self) -> Primitive<'s>

Returns a copy 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<'s> Debug for Primitive<'s>

source§

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

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

impl<'s> PartialEq for Primitive<'s>

source§

fn eq(&self, other: &Primitive<'s>) -> 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<'s> StructuralPartialEq for Primitive<'s>

Auto Trait Implementations§

§

impl<'s> Freeze for Primitive<'s>

§

impl<'s> RefUnwindSafe for Primitive<'s>

§

impl<'s> Send for Primitive<'s>

§

impl<'s> Sync for Primitive<'s>

§

impl<'s> Unpin for Primitive<'s>

§

impl<'s> UnwindSafe for Primitive<'s>

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 diff --git a/main/rsn/parser/index.html b/main/rsn/parser/index.html index 1fcf149..ec277e0 100644 --- a/main/rsn/parser/index.html +++ b/main/rsn/parser/index.html @@ -1 +1,2 @@ -rsn::parser - Rust
\ No newline at end of file +rsn::parser - Rust
rsn

Module parser

source
Expand description

Parse data or a reader into a sequence of Rsn events.

+

Structs§

  • The configuration of a Parser.
  • An error that arose while parsing Rsn events.
  • A Rsn event from parsing Rsn.
  • A name/identifier.
  • Parses input as a sequence of Events.

Enums§

  • A kind of error that arose while parsing Rsn events.
  • A kind of an event encountered when parsing Rsn.
  • A kind of nestable types.
  • A primitive literal.
\ No newline at end of file diff --git a/main/rsn/parser/sidebar-items.js b/main/rsn/parser/sidebar-items.js index 6c770b5..ffe34c0 100644 --- a/main/rsn/parser/sidebar-items.js +++ b/main/rsn/parser/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":["ErrorKind","EventKind","ListState","MapState","Nested","NestedState","Primitive"],"struct":["Config","Error","Event","Name","Parser"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["ErrorKind","EventKind","Nested","Primitive"],"struct":["Config","Error","Event","Name","Parser"]}; \ No newline at end of file diff --git a/main/rsn/parser/struct.Config.html b/main/rsn/parser/struct.Config.html index 92467f8..4db09e3 100644 --- a/main/rsn/parser/struct.Config.html +++ b/main/rsn/parser/struct.Config.html @@ -1,16 +1,44 @@ -Config in rsn::parser - Rust
rsn::parser

Struct Config

source
#[non_exhaustive]
pub struct Config { +Config in rsn::parser - Rust
rsn::parser

Struct Config

source
#[non_exhaustive]
pub struct Config { pub allow_implicit_map_at_root: bool, pub include_comments: bool, -}

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§allow_implicit_map_at_root: bool§include_comments: bool

Implementations§

source§

impl Config

source

pub fn deserialize<'de, T: Deserialize<'de>>( +}

Expand description

The configuration of a Parser.

+

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§allow_implicit_map_at_root: bool

Allows parsing an implicit map at the root of the Rsn document.

+

Rsn allows root-level syntax that may be desirable when using it as a +configuration-like file format.

+

Implicit map:

+
name: "John Doe"
+age: 40
+

Normal map:

+
{
+    name: "John Doe",
+    age: 40,
+}
+

When set to true, the parser will allow both implicit and explicit +syntaxes at the root of the document. When set to false, the parser will +only allow explicit maps.

+
§include_comments: bool

When true, the parser will include EventKind::Comment events.

+

Implementations§

source§

impl Config

source

pub fn deserialize<'de, T: Deserialize<'de>>( self, source: &'de str, -) -> Result<T, Error>

source

pub fn deserialize_from_slice<'de, T: Deserialize<'de>>( +) -> Result<T, Error>

Deserializes T from source using this configuration.

+
§Errors
+

Returns an error if source cannot be deserialized as T.

+
source

pub fn deserialize_from_slice<'de, T: Deserialize<'de>>( self, source: &'de [u8], -) -> Result<T, Error>

source

pub fn deserialize_from_reader<T: DeserializeOwned, R: Read>( +) -> Result<T, Error>

Deserializes T from source using this configuration.

+
§Errors
+

Returns an error if source cannot be deserialized as T.

+
source

pub fn deserialize_from_reader<T: DeserializeOwned, R: Read>( self, reader: R, -) -> Result<T, Error>

source§

impl Config

source

pub const fn allow_implicit_map_at_root(self, allow: bool) -> Self

source

pub const fn include_comments(self, include: bool) -> Self

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy 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 Config

source§

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

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

impl Default for Config

source§

fn default() -> Config

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

impl Copy for Config

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<T, Error>

Deserializes T from reader using this configuration.

+
§Errors
+

Returns any errors encountered while reading from reader or if +reader cannot be deserialized as T.

+

source§

impl Config

source

pub const fn allow_implicit_map_at_root(self, allow: bool) -> Self

Sets Config::allow_implicit_map_at_root to allow and returns self.

+
source

pub const fn include_comments(self, include: bool) -> Self

Sets Config::include_comments to include and returns self.

+

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy 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 Config

source§

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

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

impl Default for Config

source§

fn default() -> Config

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

impl Copy for Config

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

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 diff --git a/main/rsn/parser/struct.Error.html b/main/rsn/parser/struct.Error.html index ca3b32c..7a4ae1c 100644 --- a/main/rsn/parser/struct.Error.html +++ b/main/rsn/parser/struct.Error.html @@ -1,8 +1,11 @@ -Error in rsn::parser - Rust
rsn::parser

Struct Error

source
pub struct Error {
+Error in rsn::parser - Rust
rsn::parser

Struct Error

source
pub struct Error {
     pub location: Range<usize>,
     pub kind: ErrorKind,
-}

Fields§

§location: Range<usize>§kind: ErrorKind

Implementations§

source§

impl Error

source

pub fn new(location: Range<usize>, kind: ErrorKind) -> Self

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy 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 Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for DeserializerError

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Error

source§

fn eq(&self, other: &Error) -> 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 Eq for Error

source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

An error that arose while parsing Rsn events.

+

Fields§

§location: Range<usize>

The byte range of this error.

+
§kind: ErrorKind

The kind of error that occurred.

+

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy 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 Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for DeserializerError

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Error

source§

fn eq(&self, other: &Error) -> 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 Eq for Error

source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

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 diff --git a/main/rsn/parser/struct.Event.html b/main/rsn/parser/struct.Event.html index 4393e01..bf5fb8b 100644 --- a/main/rsn/parser/struct.Event.html +++ b/main/rsn/parser/struct.Event.html @@ -1,8 +1,11 @@ -Event in rsn::parser - Rust
rsn::parser

Struct Event

source
pub struct Event<'s> {
+Event in rsn::parser - Rust
rsn::parser

Struct Event

source
pub struct Event<'s> {
     pub location: Range<usize>,
     pub kind: EventKind<'s>,
-}

Fields§

§location: Range<usize>§kind: EventKind<'s>

Implementations§

source§

impl<'s> Event<'s>

source

pub fn new(location: Range<usize>, kind: EventKind<'s>) -> Self

Trait Implementations§

source§

impl<'s> Clone for Event<'s>

source§

fn clone(&self) -> Event<'s>

Returns a copy 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<'s> Debug for Event<'s>

source§

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

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

impl<'s> PartialEq for Event<'s>

source§

fn eq(&self, other: &Event<'s>) -> 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<'s> StructuralPartialEq for Event<'s>

Auto Trait Implementations§

§

impl<'s> Freeze for Event<'s>

§

impl<'s> RefUnwindSafe for Event<'s>

§

impl<'s> Send for Event<'s>

§

impl<'s> Sync for Event<'s>

§

impl<'s> Unpin for Event<'s>

§

impl<'s> UnwindSafe for Event<'s>

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A Rsn event from parsing Rsn.

+

Fields§

§location: Range<usize>

The byte offset of the source that produced this event.

+
§kind: EventKind<'s>

The kind of this event.

+

Trait Implementations§

source§

impl<'s> Clone for Event<'s>

source§

fn clone(&self) -> Event<'s>

Returns a copy 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<'s> Debug for Event<'s>

source§

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

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

impl<'s> PartialEq for Event<'s>

source§

fn eq(&self, other: &Event<'s>) -> 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<'s> StructuralPartialEq for Event<'s>

Auto Trait Implementations§

§

impl<'s> Freeze for Event<'s>

§

impl<'s> RefUnwindSafe for Event<'s>

§

impl<'s> Send for Event<'s>

§

impl<'s> Sync for Event<'s>

§

impl<'s> Unpin for Event<'s>

§

impl<'s> UnwindSafe for Event<'s>

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 diff --git a/main/rsn/parser/struct.Name.html b/main/rsn/parser/struct.Name.html index 10044f3..238eea1 100644 --- a/main/rsn/parser/struct.Name.html +++ b/main/rsn/parser/struct.Name.html @@ -1,7 +1,10 @@ -Name in rsn::parser - Rust
rsn::parser

Struct Name

source
pub struct Name<'s> {
+Name in rsn::parser - Rust
rsn::parser

Struct Name

source
pub struct Name<'s> {
     pub location: Range<usize>,
     pub name: &'s str,
-}

Fields§

§location: Range<usize>§name: &'s str

Methods from Deref<Target = str>§

1.0.0 · source

pub fn len(&self) -> usize

Returns the length of self.

+}
Expand description

A name/identifier.

+

Fields§

§location: Range<usize>

The byte range of the name in the source.

+
§name: &'s str

The name/identifier.

+

Methods from Deref<Target = str>§

1.0.0 · source

pub fn len(&self) -> usize

Returns the length of self.

This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

§Examples
@@ -1245,10 +1248,10 @@
§Examples
let s = "Grüße, Jürgen ❤";
 
 assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
-

Trait Implementations§

source§

impl<'s> Clone for Name<'s>

source§

fn clone(&self) -> Name<'s>

Returns a copy 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<'s> Debug for Name<'s>

source§

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

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

impl<'s> Deref for Name<'s>

source§

type Target = str

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'a, 's> PartialEq<&'a str> for Name<'s>

source§

fn eq(&self, other: &&'a str) -> 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<'s> PartialEq<str> for Name<'s>

source§

fn eq(&self, other: &str) -> 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<'s> PartialEq for Name<'s>

source§

fn eq(&self, other: &Name<'s>) -> 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<'s> StructuralPartialEq for Name<'s>

Auto Trait Implementations§

§

impl<'s> Freeze for Name<'s>

§

impl<'s> RefUnwindSafe for Name<'s>

§

impl<'s> Send for Name<'s>

§

impl<'s> Sync for Name<'s>

§

impl<'s> Unpin for Name<'s>

§

impl<'s> UnwindSafe for Name<'s>

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl<'s> Clone for Name<'s>

source§

fn clone(&self) -> Name<'s>

Returns a copy 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<'s> Debug for Name<'s>

source§

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

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

impl<'s> Deref for Name<'s>

source§

type Target = str

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'a, 's> PartialEq<&'a str> for Name<'s>

source§

fn eq(&self, other: &&'a str) -> 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<'s> PartialEq<str> for Name<'s>

source§

fn eq(&self, other: &str) -> 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<'s> PartialEq for Name<'s>

source§

fn eq(&self, other: &Name<'s>) -> 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<'s> StructuralPartialEq for Name<'s>

Auto Trait Implementations§

§

impl<'s> Freeze for Name<'s>

§

impl<'s> RefUnwindSafe for Name<'s>

§

impl<'s> Send for Name<'s>

§

impl<'s> Sync for Name<'s>

§

impl<'s> Unpin for Name<'s>

§

impl<'s> UnwindSafe for Name<'s>

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 diff --git a/main/rsn/parser/struct.Parser.html b/main/rsn/parser/struct.Parser.html index a07917a..9620dd1 100644 --- a/main/rsn/parser/struct.Parser.html +++ b/main/rsn/parser/struct.Parser.html @@ -1,4 +1,10 @@ -Parser in rsn::parser - Rust
rsn::parser

Struct Parser

source
pub struct Parser<'s> { /* private fields */ }

Implementations§

source§

impl<'s> Parser<'s>

source

pub fn new(source: &'s str, config: Config) -> Self

source

pub fn validate(source: &'s str, config: Config) -> bool

source

pub const fn current_offset(&self) -> usize

source

pub fn current_range(&self) -> Range<usize>

Trait Implementations§

source§

impl<'s> Debug for Parser<'s>

source§

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

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

impl<'s> Iterator for Parser<'s>

source§

type Item = Result<Event<'s>, Error>

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( +Parser in rsn::parser - Rust
rsn::parser

Struct Parser

source
pub struct Parser<'s> { /* private fields */ }
Expand description

Parses input as a sequence of Events.

+

Implementations§

source§

impl<'s> Parser<'s>

source

pub fn new(source: &'s str, configuration: Config) -> Self

Returns a parser that parses source using configuration.

+
source

pub fn validate(source: &'s str, configuration: Config) -> bool

Validates that source would parse successfully using configuration.

+
source

pub const fn current_offset(&self) -> usize

Returns the current byte offset of the parser.

+
source

pub fn current_range(&self) -> Range<usize>

Returns the range between the start of the containing nested event and +the current byte offset of the parser.

+

Trait Implementations§

source§

impl<'s> Debug for Parser<'s>

source§

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

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

impl<'s> Iterator for Parser<'s>

source§

type Item = Result<Event<'s>, Error>

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where diff --git a/main/rsn/ser/index.html b/main/rsn/ser/index.html index d9c11cd..9c05a34 100644 --- a/main/rsn/ser/index.html +++ b/main/rsn/ser/index.html @@ -1 +1,2 @@ -rsn::ser - Rust
rsn

Module ser

source

Structs§

\ No newline at end of file +rsn::ser - Rust
rsn

Module ser

source
Expand description

Serde serialization support.

+

Structs§

\ No newline at end of file diff --git a/main/rsn/ser/sidebar-items.js b/main/rsn/ser/sidebar-items.js index c0ea2ba..bcf0005 100644 --- a/main/rsn/ser/sidebar-items.js +++ b/main/rsn/ser/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":["Config","MapSerializer","Serializer"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["Config","Serializer"]}; \ No newline at end of file diff --git a/main/rsn/ser/struct.Config.html b/main/rsn/ser/struct.Config.html index caf861b..350c5ab 100644 --- a/main/rsn/ser/struct.Config.html +++ b/main/rsn/ser/struct.Config.html @@ -1,12 +1,44 @@ -Config in rsn::ser - Rust
rsn::ser

Struct Config

source
#[non_exhaustive]
pub struct Config { +Config in rsn::ser - Rust
rsn::ser

Struct Config

source
#[non_exhaustive]
pub struct Config { pub writer: Config, pub implicit_map_at_root: bool, pub anonymous_structs: bool, -}

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§writer: Config§implicit_map_at_root: bool§anonymous_structs: bool

Implementations§

Expand description

The configuration for a Serializer.

+

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§writer: Config

The writer configuration.

+
§implicit_map_at_root: bool

Whether a map-like type at the root of the document should use the +implicit map syntax.

+
§anonymous_structs: bool

Whether to include the names of structures in.

+

Implementations§

source§

impl Config

source

pub fn serialize_to_writer<S: Serialize, W: Write>( &self, value: &S, writer: W, -) -> Result<usize>

source§

impl Config

source

pub const fn new() -> Self

source

pub fn pretty() -> Self

source

pub const fn implicit_map_at_root(self, implicit_map_at_root: bool) -> Self

source

pub const fn anonymous_structs(self, anonymous_structs: bool) -> Self

source

pub fn serialize<S: Serialize>(&self, value: &S) -> String

source

pub fn serialize_to_vec<S: Serialize>(&self, value: &S) -> Vec<u8>

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy 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 Config

source§

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

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

impl Default for Config

source§

fn default() -> Config

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

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<usize>

Serializes value into writer using this configuration.

+
§Errors
+

Returns any errors occurring while serializing value or while +writing to writer.

+

source§

impl Config

source

pub const fn new() -> Self

Returns the default configuration.

+

The default configuration uses:

+ +
source

pub fn pretty() -> Self

Returns the default configuration with nested indentation and newlines.

+
source

pub const fn implicit_map_at_root(self, implicit_map_at_root: bool) -> Self

Sets Config::implicit_map_at_root and returns self.

+
source

pub const fn anonymous_structs(self, anonymous_structs: bool) -> Self

Sets Config::anonymous_structs and returns self.

+
source

pub fn serialize<S: Serialize>(&self, value: &S) -> Result<String, Error>

Returns value serialized as Rsn with this configuration.

+
§Errors
+

Rsn itself does not produce any errors while serializing values. This +function will return errors that arise within Serialize implementations +encountered while serializing value.

+
source

pub fn serialize_to_vec<S: Serialize>( + &self, + value: &S, +) -> Result<Vec<u8>, Error>

Returns value serialized as Rsn with this configuration.

+
§Errors
+

Rsn itself does not produce any errors while serializing values. This +function will return errors that arise within Serialize implementations +encountered while serializing value.

+

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy 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 Config

source§

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

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

impl Default for Config

source§

fn default() -> Config

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

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

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 diff --git a/main/rsn/ser/struct.MapSerializer.html b/main/rsn/ser/struct.MapSerializer.html deleted file mode 100644 index cfc6c91..0000000 --- a/main/rsn/ser/struct.MapSerializer.html +++ /dev/null @@ -1,29 +0,0 @@ -MapSerializer in rsn::ser - Rust
rsn::ser

Struct MapSerializer

source
pub struct MapSerializer<'a, 'config, Output> { /* private fields */ }

Trait Implementations§

source§

impl<'a, 'config, Output> SerializeMap for MapSerializer<'a, 'config, Output>
where - Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_key<T>(&mut self, key: &T) -> Result<(), Self::Error>
where - T: Serialize + ?Sized,

Serialize a map key. Read more
source§

fn serialize_value<T>(&mut self, value: &T) -> Result<(), Self::Error>
where - T: Serialize + ?Sized,

Serialize a map value. Read more
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a map.
source§

fn serialize_entry<K, V>( - &mut self, - key: &K, - value: &V, -) -> Result<(), Self::Error>
where - K: Serialize + ?Sized, - V: Serialize + ?Sized,

Serialize a map entry consisting of a key and a value. Read more
source§

impl<'a, 'config, Output> SerializeStruct for MapSerializer<'a, 'config, Output>
where - Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_field<T>( - &mut self, - key: &'static str, - value: &T, -) -> Result<(), Self::Error>
where - T: Serialize + ?Sized,

Serialize a struct field.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a struct.
source§

fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>

Indicate that a struct field has been skipped. Read more

Auto Trait Implementations§

§

impl<'a, 'config, Output> Freeze for MapSerializer<'a, 'config, Output>

§

impl<'a, 'config, Output> RefUnwindSafe for MapSerializer<'a, 'config, Output>
where - Output: RefUnwindSafe,

§

impl<'a, 'config, Output> Send for MapSerializer<'a, 'config, Output>
where - Output: Send,

§

impl<'a, 'config, Output> Sync for MapSerializer<'a, 'config, Output>
where - Output: Sync,

§

impl<'a, 'config, Output> Unpin for MapSerializer<'a, 'config, Output>

§

impl<'a, 'config, Output> !UnwindSafe for MapSerializer<'a, 'config, Output>

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
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, 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.
\ No newline at end of file diff --git a/main/rsn/ser/struct.Serializer.html b/main/rsn/ser/struct.Serializer.html index 4768925..f6e7eac 100644 --- a/main/rsn/ser/struct.Serializer.html +++ b/main/rsn/ser/struct.Serializer.html @@ -1,87 +1,90 @@ -Serializer in rsn::ser - Rust
rsn::ser

Struct Serializer

source
pub struct Serializer<'config, Output> { /* private fields */ }

Implementations§

source§

impl<'config, Output> Serializer<'config, Output>
where - Output: Write,

source

pub fn new(output: Output, config: &'config Config) -> Self

source

pub fn finish(self) -> Output

Trait Implementations§

source§

impl<'config, Output: Debug> Debug for Serializer<'config, Output>

source§

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

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

impl Default for Serializer<'static, String>

source§

fn default() -> Self

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

impl<'a, 'config, Output> SerializeSeq for &'a mut Serializer<'config, Output>
where - Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_element<T>(&mut self, value: &T) -> Result<(), Self::Error>
where - T: Serialize + ?Sized,

Serialize a sequence element.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a sequence.
source§

impl<'a, 'config, Output> SerializeStructVariant for &'a mut Serializer<'config, Output>
where - Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_field<T>( +Serializer in rsn::ser - Rust
rsn::ser

Struct Serializer

source
pub struct Serializer<'config, Output> { /* private fields */ }
Expand description

A Serde serializer that generates Rsn.

+

Implementations§

source§

impl<'config, Output> Serializer<'config, Output>
where + Output: Write,

source

pub fn new(output: Output, configuration: &'config Config) -> Self

Returns a new serializer that writes to output using configuration.

+
source

pub fn finish(self) -> Output

Finishes writing to the output and returns the output.

+

Trait Implementations§

source§

impl<'config, Output: Debug> Debug for Serializer<'config, Output>

source§

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

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

impl Default for Serializer<'static, String>

source§

fn default() -> Self

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

impl<'a, 'config, Output> SerializeSeq for &'a mut Serializer<'config, Output>
where + Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_element<T>(&mut self, value: &T) -> Result<(), Self::Error>
where + T: Serialize + ?Sized,

Serialize a sequence element.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a sequence.
source§

impl<'a, 'config, Output> SerializeStructVariant for &'a mut Serializer<'config, Output>
where + Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_field<T>( &mut self, key: &'static str, value: &T, ) -> Result<(), Self::Error>
where - T: Serialize + ?Sized,

Serialize a struct variant field.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a struct variant.
source§

fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>

Indicate that a struct variant field has been skipped. Read more
source§

impl<'a, 'config, Output> SerializeTuple for &'a mut Serializer<'config, Output>
where - Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_element<T>(&mut self, value: &T) -> Result<(), Self::Error>
where - T: Serialize + ?Sized,

Serialize a tuple element.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a tuple.
source§

impl<'a, 'config, Output> SerializeTupleStruct for &'a mut Serializer<'config, Output>
where - Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_field<T>(&mut self, value: &T) -> Result<(), Self::Error>
where - T: Serialize + ?Sized,

Serialize a tuple struct field.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a tuple struct.
source§

impl<'a, 'config, Output> SerializeTupleVariant for &'a mut Serializer<'config, Output>
where - Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_field<T>(&mut self, value: &T) -> Result<(), Self::Error>
where - T: Serialize + ?Sized,

Serialize a tuple variant field.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a tuple variant.
source§

impl<'a, 'config, Output> Serializer for &'a mut Serializer<'config, Output>
where - Output: Write,

source§

type Error = Error

The error type when some error occurs during serialization.
source§

type Ok = ()

The output type produced by this Serializer during successful + T: Serialize + ?Sized,

Serialize a struct variant field.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a struct variant.
source§

fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error>

Indicate that a struct variant field has been skipped. Read more
source§

impl<'a, 'config, Output> SerializeTuple for &'a mut Serializer<'config, Output>
where + Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_element<T>(&mut self, value: &T) -> Result<(), Self::Error>
where + T: Serialize + ?Sized,

Serialize a tuple element.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a tuple.
source§

impl<'a, 'config, Output> SerializeTupleStruct for &'a mut Serializer<'config, Output>
where + Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_field<T>(&mut self, value: &T) -> Result<(), Self::Error>
where + T: Serialize + ?Sized,

Serialize a tuple struct field.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a tuple struct.
source§

impl<'a, 'config, Output> SerializeTupleVariant for &'a mut Serializer<'config, Output>
where + Output: Write,

source§

type Error = Error

Must match the Error type of our Serializer.
source§

type Ok = ()

Must match the Ok type of our Serializer.
source§

fn serialize_field<T>(&mut self, value: &T) -> Result<(), Self::Error>
where + T: Serialize + ?Sized,

Serialize a tuple variant field.
source§

fn end(self) -> Result<Self::Ok, Self::Error>

Finish serializing a tuple variant.
source§

impl<'a, 'config, Output> Serializer for &'a mut Serializer<'config, Output>
where + Output: Write,

source§

type Error = Error

The error type when some error occurs during serialization.
source§

type Ok = ()

The output type produced by this Serializer during successful serialization. Most serializers that produce text or binary output should set Ok = () and serialize into an io::Write or buffer contained within the Serializer instance. Serializers that build in-memory data structures may be simplified by using Ok to propagate -the data structure around.
source§

type SerializeMap = MapSerializer<'a, 'config, Output>

Type returned from serialize_map for serializing the content of the -map.
source§

type SerializeSeq = &'a mut Serializer<'config, Output>

Type returned from serialize_seq for serializing the content of the -sequence.
source§

type SerializeStruct = MapSerializer<'a, 'config, Output>

Type returned from serialize_struct for serializing the content of -the struct.
source§

type SerializeStructVariant = &'a mut Serializer<'config, Output>

Type returned from serialize_struct_variant for serializing the -content of the struct variant.
source§

type SerializeTuple = &'a mut Serializer<'config, Output>

Type returned from serialize_tuple for serializing the content of -the tuple.
source§

type SerializeTupleStruct = &'a mut Serializer<'config, Output>

Type returned from serialize_tuple_struct for serializing the -content of the tuple struct.
source§

type SerializeTupleVariant = &'a mut Serializer<'config, Output>

Type returned from serialize_tuple_variant for serializing the -content of the tuple variant.
source§

fn serialize_bool(self, v: bool) -> Result<Self::Ok, Self::Error>

Serialize a bool value. Read more
source§

fn serialize_i8(self, v: i8) -> Result<Self::Ok, Self::Error>

Serialize an i8 value. Read more
source§

fn serialize_i16(self, v: i16) -> Result<Self::Ok, Self::Error>

Serialize an i16 value. Read more
source§

fn serialize_i32(self, v: i32) -> Result<Self::Ok, Self::Error>

Serialize an i32 value. Read more
source§

fn serialize_i64(self, v: i64) -> Result<Self::Ok, Self::Error>

Serialize an i64 value. Read more
source§

fn serialize_i128(self, v: i128) -> Result<Self::Ok, Self::Error>

Serialize an i128 value. Read more
source§

fn serialize_u8(self, v: u8) -> Result<Self::Ok, Self::Error>

Serialize a u8 value. Read more
source§

fn serialize_u16(self, v: u16) -> Result<Self::Ok, Self::Error>

Serialize a u16 value. Read more
source§

fn serialize_u32(self, v: u32) -> Result<Self::Ok, Self::Error>

Serialize a u32 value. Read more
source§

fn serialize_u64(self, v: u64) -> Result<Self::Ok, Self::Error>

Serialize a u64 value. Read more
source§

fn serialize_u128(self, v: u128) -> Result<Self::Ok, Self::Error>

Serialize a u128 value. Read more
source§

fn serialize_f32(self, v: f32) -> Result<Self::Ok, Self::Error>

Serialize an f32 value. Read more
source§

fn serialize_f64(self, v: f64) -> Result<Self::Ok, Self::Error>

Serialize an f64 value. Read more
source§

fn serialize_char(self, v: char) -> Result<Self::Ok, Self::Error>

Serialize a character. Read more
source§

fn serialize_str(self, v: &str) -> Result<Self::Ok, Self::Error>

Serialize a &str. Read more
source§

fn serialize_bytes(self, v: &[u8]) -> Result<Self::Ok, Self::Error>

Serialize a chunk of raw byte data. Read more
source§

fn serialize_none(self) -> Result<Self::Ok, Self::Error>

Serialize a None value. Read more
source§

fn serialize_some<T>(self, value: &T) -> Result<Self::Ok, Self::Error>
where - T: Serialize + ?Sized,

Serialize a Some(T) value. Read more
source§

fn serialize_unit(self) -> Result<Self::Ok, Self::Error>

Serialize a () value. Read more
source§

fn serialize_unit_struct( +the data structure around.

source§

type SerializeMap = MapSerializer<'a, 'config, Output>

Type returned from serialize_map for serializing the content of the +map.
source§

type SerializeSeq = &'a mut Serializer<'config, Output>

Type returned from serialize_seq for serializing the content of the +sequence.
source§

type SerializeStruct = MapSerializer<'a, 'config, Output>

Type returned from serialize_struct for serializing the content of +the struct.
source§

type SerializeStructVariant = &'a mut Serializer<'config, Output>

Type returned from serialize_struct_variant for serializing the +content of the struct variant.
source§

type SerializeTuple = &'a mut Serializer<'config, Output>

Type returned from serialize_tuple for serializing the content of +the tuple.
source§

type SerializeTupleStruct = &'a mut Serializer<'config, Output>

Type returned from serialize_tuple_struct for serializing the +content of the tuple struct.
source§

type SerializeTupleVariant = &'a mut Serializer<'config, Output>

Type returned from serialize_tuple_variant for serializing the +content of the tuple variant.
source§

fn serialize_bool(self, v: bool) -> Result<Self::Ok, Self::Error>

Serialize a bool value. Read more
source§

fn serialize_i8(self, v: i8) -> Result<Self::Ok, Self::Error>

Serialize an i8 value. Read more
source§

fn serialize_i16(self, v: i16) -> Result<Self::Ok, Self::Error>

Serialize an i16 value. Read more
source§

fn serialize_i32(self, v: i32) -> Result<Self::Ok, Self::Error>

Serialize an i32 value. Read more
source§

fn serialize_i64(self, v: i64) -> Result<Self::Ok, Self::Error>

Serialize an i64 value. Read more
source§

fn serialize_i128(self, v: i128) -> Result<Self::Ok, Self::Error>

Serialize an i128 value. Read more
source§

fn serialize_u8(self, v: u8) -> Result<Self::Ok, Self::Error>

Serialize a u8 value. Read more
source§

fn serialize_u16(self, v: u16) -> Result<Self::Ok, Self::Error>

Serialize a u16 value. Read more
source§

fn serialize_u32(self, v: u32) -> Result<Self::Ok, Self::Error>

Serialize a u32 value. Read more
source§

fn serialize_u64(self, v: u64) -> Result<Self::Ok, Self::Error>

Serialize a u64 value. Read more
source§

fn serialize_u128(self, v: u128) -> Result<Self::Ok, Self::Error>

Serialize a u128 value. Read more
source§

fn serialize_f32(self, v: f32) -> Result<Self::Ok, Self::Error>

Serialize an f32 value. Read more
source§

fn serialize_f64(self, v: f64) -> Result<Self::Ok, Self::Error>

Serialize an f64 value. Read more
source§

fn serialize_char(self, v: char) -> Result<Self::Ok, Self::Error>

Serialize a character. Read more
source§

fn serialize_str(self, v: &str) -> Result<Self::Ok, Self::Error>

Serialize a &str. Read more
source§

fn serialize_bytes(self, v: &[u8]) -> Result<Self::Ok, Self::Error>

Serialize a chunk of raw byte data. Read more
source§

fn serialize_none(self) -> Result<Self::Ok, Self::Error>

Serialize a None value. Read more
source§

fn serialize_some<T>(self, value: &T) -> Result<Self::Ok, Self::Error>
where + T: Serialize + ?Sized,

Serialize a Some(T) value. Read more
source§

fn serialize_unit(self) -> Result<Self::Ok, Self::Error>

Serialize a () value. Read more
source§

fn serialize_unit_struct( self, name: &'static str, -) -> Result<Self::Ok, Self::Error>

Serialize a unit struct like struct Unit or PhantomData<T>. Read more
source§

fn serialize_unit_variant( +) -> Result<Self::Ok, Self::Error>

Serialize a unit struct like struct Unit or PhantomData<T>. Read more
source§

fn serialize_unit_variant( self, _name: &'static str, _variant_index: u32, variant: &'static str, -) -> Result<Self::Ok, Self::Error>

Serialize a unit variant like E::A in enum E { A, B }. Read more
source§

fn serialize_newtype_struct<T>( +) -> Result<Self::Ok, Self::Error>

Serialize a unit variant like E::A in enum E { A, B }. Read more
source§

fn serialize_newtype_struct<T>( self, name: &'static str, value: &T, ) -> Result<Self::Ok, Self::Error>
where - T: Serialize + ?Sized,

Serialize a newtype struct like struct Millimeters(u8). Read more
source§

fn serialize_newtype_variant<T>( + T: Serialize + ?Sized,

Serialize a newtype struct like struct Millimeters(u8). Read more
source§

fn serialize_newtype_variant<T>( self, _name: &'static str, _variant_index: u32, variant: &'static str, value: &T, ) -> Result<Self::Ok, Self::Error>
where - T: Serialize + ?Sized,

Serialize a newtype variant like E::N in enum E { N(u8) }. Read more
source§

fn serialize_seq( + T: Serialize + ?Sized,

Serialize a newtype variant like E::N in enum E { N(u8) }. Read more
source§

fn serialize_seq( self, _len: Option<usize>, ) -> Result<Self::SerializeSeq, Self::Error>

Begin to serialize a variably sized sequence. This call must be followed by zero or more calls to serialize_element, then a call to -end. Read more
source§

fn serialize_tuple( +end. Read more

source§

fn serialize_tuple( self, _len: usize, ) -> Result<Self::SerializeTuple, Self::Error>

Begin to serialize a statically sized sequence whose length will be known at deserialization time without looking at the serialized data. This call must be followed by zero or more calls to serialize_element, -then a call to end. Read more
source§

fn serialize_tuple_struct( +then a call to end. Read more

source§

fn serialize_tuple_struct( self, name: &'static str, _len: usize, ) -> Result<Self::SerializeTupleStruct, Self::Error>

Begin to serialize a tuple struct like struct Rgb(u8, u8, u8). This call must be followed by zero or more calls to serialize_field, then a -call to end. Read more
source§

fn serialize_tuple_variant( +call to end. Read more

source§

fn serialize_tuple_variant( self, _name: &'static str, _variant_index: u32, variant: &'static str, _len: usize, ) -> Result<Self::SerializeTupleVariant, Self::Error>

Begin to serialize a tuple variant like E::T in enum E { T(u8, u8) }. This call must be followed by zero or more calls to -serialize_field, then a call to end. Read more
source§

fn serialize_map( +serialize_field, then a call to end. Read more

source§

fn serialize_map( self, _len: Option<usize>, ) -> Result<Self::SerializeMap, Self::Error>

Begin to serialize a map. This call must be followed by zero or more -calls to serialize_key and serialize_value, then a call to end. Read more
source§

fn serialize_struct( +calls to serialize_key and serialize_value, then a call to end. Read more

source§

fn serialize_struct( self, name: &'static str, _len: usize, ) -> Result<Self::SerializeStruct, Self::Error>

Begin to serialize a struct like struct Rgb { r: u8, g: u8, b: u8 }. This call must be followed by zero or more calls to serialize_field, -then a call to end. Read more
source§

fn serialize_struct_variant( +then a call to end. Read more

source§

fn serialize_struct_variant( self, _name: &'static str, _variant_index: u32, diff --git a/main/rsn/tokenizer/enum.Balanced.html b/main/rsn/tokenizer/enum.Balanced.html index 009c42e..d6e6079 100644 --- a/main/rsn/tokenizer/enum.Balanced.html +++ b/main/rsn/tokenizer/enum.Balanced.html @@ -1,9 +1,14 @@ -Balanced in rsn::tokenizer - Rust
rsn::tokenizer

Enum Balanced

source
pub enum Balanced {
+Balanced in rsn::tokenizer - Rust
rsn::tokenizer

Enum Balanced

source
pub enum Balanced {
     Paren,
     Brace,
     Bracket,
-}

Variants§

§

Paren

§

Brace

§

Bracket

Trait Implementations§

source§

impl Clone for Balanced

source§

fn clone(&self) -> Balanced

Returns a copy 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 Balanced

source§

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

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

impl From<Balanced> for Nested

source§

fn from(kind: Balanced) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Balanced

source§

fn eq(&self, other: &Balanced) -> 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 Copy for Balanced

source§

impl Eq for Balanced

source§

impl StructuralPartialEq for Balanced

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A token kind that is expected to have a balanced number of open and closing +variants.

+

Variants§

§

Paren

Parentheses

+
§

Brace

Curly Braces

+
§

Bracket

Square Brackets

+

Trait Implementations§

source§

impl Clone for Balanced

source§

fn clone(&self) -> Balanced

Returns a copy 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 Balanced

source§

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

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

impl From<Balanced> for Nested

source§

fn from(kind: Balanced) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Balanced

source§

fn eq(&self, other: &Balanced) -> 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 Copy for Balanced

source§

impl Eq for Balanced

source§

impl StructuralPartialEq for Balanced

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 diff --git a/main/rsn/tokenizer/enum.ErrorKind.html b/main/rsn/tokenizer/enum.ErrorKind.html index 6f77531..f9b1168 100644 --- a/main/rsn/tokenizer/enum.ErrorKind.html +++ b/main/rsn/tokenizer/enum.ErrorKind.html @@ -1,4 +1,4 @@ -ErrorKind in rsn::tokenizer - Rust
rsn::tokenizer

Enum ErrorKind

source
pub enum ErrorKind {
+ErrorKind in rsn::tokenizer - Rust
rsn::tokenizer

Enum ErrorKind

source
#[non_exhaustive]
pub enum ErrorKind { UnexpectedEof, Unexpected(char), ExpectedDigit, @@ -7,8 +7,17 @@ InvalidAscii, InvalidFloat, IsolatedCarriageReturn, -}

Variants§

§

UnexpectedEof

§

Unexpected(char)

§

ExpectedDigit

§

IntegerTooLarge

§

InvalidUnicode

§

InvalidAscii

§

InvalidFloat

§

IsolatedCarriageReturn

Trait Implementations§

source§

impl Clone for ErrorKind

source§

fn clone(&self) -> ErrorKind

Returns a copy 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 ErrorKind

source§

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

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

impl Display for ErrorKind

source§

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

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

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ErrorKind

source§

fn eq(&self, other: &ErrorKind) -> 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 Eq for ErrorKind

source§

impl StructuralPartialEq for ErrorKind

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

The kind of an error returned from a tokenizer.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UnexpectedEof

The end of input was encountered when additional data was still expected.

+
§

Unexpected(char)

An unexpected character was found.

+
§

ExpectedDigit

A digit (0-9) was expected.

+
§

IntegerTooLarge

The integer literal is too large to represent.

+
§

InvalidUnicode

An invalid unicode code point was encountered.

+
§

InvalidAscii

An invalid ASCII character was encountered.

+
§

InvalidFloat

An invalid floating point number was found.

+
§

IsolatedCarriageReturn

A carriage return without a corresponding \n was encountered.

+

Trait Implementations§

source§

impl Clone for ErrorKind

source§

fn clone(&self) -> ErrorKind

Returns a copy 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 ErrorKind

source§

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

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

impl Display for ErrorKind

source§

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

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

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl From<ErrorKind> for ErrorKind

source§

fn from(kind: ErrorKind) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ErrorKind

source§

fn eq(&self, other: &ErrorKind) -> 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 Eq for ErrorKind

source§

impl StructuralPartialEq for ErrorKind

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 diff --git a/main/rsn/tokenizer/enum.Integer.html b/main/rsn/tokenizer/enum.Integer.html index 59c00a2..7061d7c 100644 --- a/main/rsn/tokenizer/enum.Integer.html +++ b/main/rsn/tokenizer/enum.Integer.html @@ -1,10 +1,65 @@ -Integer in rsn::tokenizer - Rust
rsn::tokenizer

Enum Integer

source
pub enum Integer {
+Integer in rsn::tokenizer - Rust
rsn::tokenizer

Enum Integer

source
pub enum Integer {
     Usize(usize),
     Isize(isize),
     UnsignedLarge(u128),
     SignedLarge(i128),
-}

Variants§

§

Usize(usize)

§

Isize(isize)

§

UnsignedLarge(u128)

§

SignedLarge(i128)

Implementations§

source§

impl Integer

source

pub fn as_u8(self) -> Option<u8>

source

pub fn as_u16(self) -> Option<u16>

source

pub fn as_u32(self) -> Option<u32>

source

pub fn as_u64(self) -> Option<u64>

source

pub fn as_u128(self) -> Option<u128>

source

pub fn as_usize(self) -> Option<usize>

source

pub fn as_i8(self) -> Option<i8>

source

pub fn as_i16(self) -> Option<i16>

source

pub fn as_i32(self) -> Option<i32>

source

pub fn as_i64(self) -> Option<i64>

source

pub fn as_i128(self) -> Option<i128>

source

pub fn as_isize(self) -> Option<isize>

source

pub const fn is_zero(self) -> bool

source

pub fn as_f64(self) -> f64

Trait Implementations§

source§

impl Clone for Integer

source§

fn clone(&self) -> Integer

Returns a copy 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 Integer

source§

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

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

impl From<i16> for Integer

source§

fn from(value: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Integer

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Integer

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Integer

source§

fn from(value: i8) -> Self

Converts to this type from the input type.
source§

impl From<isize> for Integer

source§

fn from(value: isize) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Integer

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Integer

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Integer

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Integer

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Integer

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Integer

source§

fn eq(&self, other: &Integer) -> 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 TryFrom<i128> for Integer

source§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u128> for Integer

source§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl Copy for Integer

source§

impl Eq for Integer

source§

impl StructuralPartialEq for Integer

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

An integer literal.

+

Variants§

§

Usize(usize)

An unsigned integer that fits within an usize.

+
§

Isize(isize)

A signed integer that fits within an isize.

+
§

UnsignedLarge(u128)

An unsigned integer that is too large to fit within an usize.

+
§

SignedLarge(i128)

A signed integer that is too large to fit within an isize.

+

Implementations§

source§

impl Integer

source

pub fn as_u8(self) -> Option<u8>

Returns this integer as a +u8 +if the value can fit in a +u8

+
source

pub fn as_u16(self) -> Option<u16>

Returns this integer as a +u16 +if the value can fit in a +u16

+
source

pub fn as_u32(self) -> Option<u32>

Returns this integer as a +u32 +if the value can fit in a +u32

+
source

pub fn as_u64(self) -> Option<u64>

Returns this integer as a +u64 +if the value can fit in a +u64

+
source

pub fn as_u128(self) -> Option<u128>

Returns this integer as a +u128 +if the value can fit in a +u128

+
source

pub fn as_usize(self) -> Option<usize>

Returns this integer as a +usize +if the value can fit in a +usize

+
source

pub fn as_i8(self) -> Option<i8>

Returns this integer as a +i8 +if the value can fit in a +i8

+
source

pub fn as_i16(self) -> Option<i16>

Returns this integer as a +i16 +if the value can fit in a +i16

+
source

pub fn as_i32(self) -> Option<i32>

Returns this integer as a +i32 +if the value can fit in a +i32

+
source

pub fn as_i64(self) -> Option<i64>

Returns this integer as a +i64 +if the value can fit in a +i64

+
source

pub fn as_i128(self) -> Option<i128>

Returns this integer as a +i128 +if the value can fit in a +i128

+
source

pub fn as_isize(self) -> Option<isize>

Returns this integer as a +isize +if the value can fit in a +isize

+
source

pub const fn is_zero(self) -> bool

Returns true if this number is equal to 0.

+
source

pub fn as_f64(self) -> f64

Returns this number cast to an f64.

+

Trait Implementations§

source§

impl Clone for Integer

source§

fn clone(&self) -> Integer

Returns a copy 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 Integer

source§

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

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

impl From<i16> for Integer

source§

fn from(value: i16) -> Self

Converts to this type from the input type.
source§

impl From<i32> for Integer

source§

fn from(value: i32) -> Self

Converts to this type from the input type.
source§

impl From<i64> for Integer

source§

fn from(value: i64) -> Self

Converts to this type from the input type.
source§

impl From<i8> for Integer

source§

fn from(value: i8) -> Self

Converts to this type from the input type.
source§

impl From<isize> for Integer

source§

fn from(value: isize) -> Self

Converts to this type from the input type.
source§

impl From<u16> for Integer

source§

fn from(value: u16) -> Self

Converts to this type from the input type.
source§

impl From<u32> for Integer

source§

fn from(value: u32) -> Self

Converts to this type from the input type.
source§

impl From<u64> for Integer

source§

fn from(value: u64) -> Self

Converts to this type from the input type.
source§

impl From<u8> for Integer

source§

fn from(value: u8) -> Self

Converts to this type from the input type.
source§

impl From<usize> for Integer

source§

fn from(value: usize) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Integer

source§

fn eq(&self, other: &Integer) -> 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 TryFrom<i128> for Integer

source§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl TryFrom<u128> for Integer

source§

type Error = TryFromIntError

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

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

Performs the conversion.
source§

impl Copy for Integer

source§

impl Eq for Integer

source§

impl StructuralPartialEq for Integer

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 diff --git a/main/rsn/tokenizer/enum.TokenKind.html b/main/rsn/tokenizer/enum.TokenKind.html index 47ec2b5..6d3166c 100644 --- a/main/rsn/tokenizer/enum.TokenKind.html +++ b/main/rsn/tokenizer/enum.TokenKind.html @@ -1,4 +1,4 @@ -TokenKind in rsn::tokenizer - Rust
rsn::tokenizer

Enum TokenKind

source
pub enum TokenKind<'a> {
+TokenKind in rsn::tokenizer - Rust
rsn::tokenizer

Enum TokenKind

source
pub enum TokenKind<'a> {
 
Show 14 variants Integer(Integer), Float(f64), Bool(bool), @@ -13,8 +13,23 @@ Close(Balanced), Comment(&'a str), Whitespace(&'a str), -
}

Variants§

§

Integer(Integer)

§

Float(f64)

§

Bool(bool)

§

Character(char)

§

Colon

§

Comma

§

Byte(u8)

§

String(Cow<'a, str>)

§

Bytes(Cow<'a, [u8]>)

§

Identifier(&'a str)

§

Open(Balanced)

§

Close(Balanced)

§

Comment(&'a str)

§

Whitespace(&'a str)

Trait Implementations§

source§

impl<'a> Clone for TokenKind<'a>

source§

fn clone(&self) -> TokenKind<'a>

Returns a copy 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<'a> Debug for TokenKind<'a>

source§

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

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

impl<'a> PartialEq for TokenKind<'a>

source§

fn eq(&self, other: &Self) -> 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<'a> Eq for TokenKind<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for TokenKind<'a>

§

impl<'a> RefUnwindSafe for TokenKind<'a>

§

impl<'a> Send for TokenKind<'a>

§

impl<'a> Sync for TokenKind<'a>

§

impl<'a> Unpin for TokenKind<'a>

§

impl<'a> UnwindSafe for TokenKind<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +

}
Expand description

A kind of a token in an Rsn document.

+

Variants§

§

Integer(Integer)

An integer literal.

+
§

Float(f64)

A floating point literal.

+
§

Bool(bool)

A boolean literal.

+
§

Character(char)

A character literal.

+
§

Colon

The : character.

+
§

Comma

The , character.

+
§

Byte(u8)

A byte literal.

+
§

String(Cow<'a, str>)

A string literal.

+
§

Bytes(Cow<'a, [u8]>)

A byte string literal.

+
§

Identifier(&'a str)

An identifier (name).

+
§

Open(Balanced)

The opening variant of a Balanced token.

+
§

Close(Balanced)

The closing variant of a Balanced token.

+
§

Comment(&'a str)

A comment

+
§

Whitespace(&'a str)

Whitespace between other tokens.

+

Trait Implementations§

source§

impl<'a> Clone for TokenKind<'a>

source§

fn clone(&self) -> TokenKind<'a>

Returns a copy 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<'a> Debug for TokenKind<'a>

source§

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

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

impl<'a> PartialEq for TokenKind<'a>

source§

fn eq(&self, other: &Self) -> 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<'a> Eq for TokenKind<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for TokenKind<'a>

§

impl<'a> RefUnwindSafe for TokenKind<'a>

§

impl<'a> Send for TokenKind<'a>

§

impl<'a> Sync for TokenKind<'a>

§

impl<'a> Unpin for TokenKind<'a>

§

impl<'a> UnwindSafe for TokenKind<'a>

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 diff --git a/main/rsn/tokenizer/index.html b/main/rsn/tokenizer/index.html index c3a8708..63db1c1 100644 --- a/main/rsn/tokenizer/index.html +++ b/main/rsn/tokenizer/index.html @@ -1 +1,3 @@ -rsn::tokenizer - Rust
\ No newline at end of file +rsn::tokenizer - Rust
rsn

Module tokenizer

source
Expand description

Parse data or a reader into a sequence of tokens.

+

Structs§

Enums§

  • A token kind that is expected to have a balanced number of open and closing +variants.
  • The kind of an error returned from a tokenizer.
  • An integer literal.
  • A kind of a token in an Rsn document.
\ No newline at end of file diff --git a/main/rsn/tokenizer/sidebar-items.js b/main/rsn/tokenizer/sidebar-items.js index 0adcce0..f4a139d 100644 --- a/main/rsn/tokenizer/sidebar-items.js +++ b/main/rsn/tokenizer/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":["Balanced","ErrorKind","Integer","TokenKind"],"struct":["Error","Token","Tokenizer"],"trait":["Integral"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["Balanced","ErrorKind","Integer","TokenKind"],"struct":["Error","Token","Tokenizer"]}; \ No newline at end of file diff --git a/main/rsn/tokenizer/struct.Error.html b/main/rsn/tokenizer/struct.Error.html index cb925ab..cbae02e 100644 --- a/main/rsn/tokenizer/struct.Error.html +++ b/main/rsn/tokenizer/struct.Error.html @@ -1,8 +1,11 @@ -Error in rsn::tokenizer - Rust
rsn::tokenizer

Struct Error

source
pub struct Error {
+Error in rsn::tokenizer - Rust
rsn::tokenizer

Struct Error

source
pub struct Error {
     pub location: Range<usize>,
     pub kind: ErrorKind,
-}

Fields§

§location: Range<usize>§kind: ErrorKind

Implementations§

source§

impl Error

source

pub const fn new(location: Range<usize>, kind: ErrorKind) -> Self

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy 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 Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Error

source§

fn eq(&self, other: &Error) -> 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 Eq for Error

source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

An error returned from a tokenizer.

+

Fields§

§location: Range<usize>

The byte range of the error.

+
§kind: ErrorKind

The kind of error that occurred.

+

Trait Implementations§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy 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 Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for Error

source§

fn from(err: Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Error

source§

fn eq(&self, other: &Error) -> 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 Eq for Error

source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

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 diff --git a/main/rsn/tokenizer/struct.Token.html b/main/rsn/tokenizer/struct.Token.html index 19eba6c..c88dee3 100644 --- a/main/rsn/tokenizer/struct.Token.html +++ b/main/rsn/tokenizer/struct.Token.html @@ -1,8 +1,11 @@ -Token in rsn::tokenizer - Rust
rsn::tokenizer

Struct Token

source
pub struct Token<'a> {
+Token in rsn::tokenizer - Rust
rsn::tokenizer

Struct Token

source
pub struct Token<'a> {
     pub location: Range<usize>,
     pub kind: TokenKind<'a>,
-}

Fields§

§location: Range<usize>§kind: TokenKind<'a>

Implementations§

source§

impl<'a> Token<'a>

source

pub const fn new(location: Range<usize>, kind: TokenKind<'a>) -> Self

Trait Implementations§

source§

impl<'a> Clone for Token<'a>

source§

fn clone(&self) -> Token<'a>

Returns a copy 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<'a> Debug for Token<'a>

source§

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

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

impl<'a> PartialEq for Token<'a>

source§

fn eq(&self, other: &Token<'a>) -> 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<'a> Eq for Token<'a>

source§

impl<'a> StructuralPartialEq for Token<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Token<'a>

§

impl<'a> RefUnwindSafe for Token<'a>

§

impl<'a> Send for Token<'a>

§

impl<'a> Sync for Token<'a>

§

impl<'a> Unpin for Token<'a>

§

impl<'a> UnwindSafe for Token<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A token in an Rsn document.

+

Fields§

§location: Range<usize>

The byte range of this token.

+
§kind: TokenKind<'a>

The kind of this token.

+

Trait Implementations§

source§

impl<'a> Clone for Token<'a>

source§

fn clone(&self) -> Token<'a>

Returns a copy 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<'a> Debug for Token<'a>

source§

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

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

impl<'a> PartialEq for Token<'a>

source§

fn eq(&self, other: &Token<'a>) -> 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<'a> Eq for Token<'a>

source§

impl<'a> StructuralPartialEq for Token<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Token<'a>

§

impl<'a> RefUnwindSafe for Token<'a>

§

impl<'a> Send for Token<'a>

§

impl<'a> Sync for Token<'a>

§

impl<'a> Unpin for Token<'a>

§

impl<'a> UnwindSafe for Token<'a>

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 diff --git a/main/rsn/tokenizer/struct.Tokenizer.html b/main/rsn/tokenizer/struct.Tokenizer.html index a546520..ad8e68e 100644 --- a/main/rsn/tokenizer/struct.Tokenizer.html +++ b/main/rsn/tokenizer/struct.Tokenizer.html @@ -1,4 +1,8 @@ -Tokenizer in rsn::tokenizer - Rust
rsn::tokenizer

Struct Tokenizer

source
pub struct Tokenizer<'a, const INCLUDE_ALL: bool> { /* private fields */ }

Implementations§

source§

impl<'a> Tokenizer<'a, false>

source

pub fn minified(source: &'a str) -> Self

source§

impl<'a> Tokenizer<'a, true>

source

pub fn full(source: &'a str) -> Self

source§

impl<'a, const INCLUDE_ALL: bool> Tokenizer<'a, INCLUDE_ALL>

source

pub const fn current_offset(&self) -> usize

Trait Implementations§

source§

impl<'a, const INCLUDE_ALL: bool> Clone for Tokenizer<'a, INCLUDE_ALL>

source§

fn clone(&self) -> Tokenizer<'a, INCLUDE_ALL>

Returns a copy 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<'a, const INCLUDE_ALL: bool> Debug for Tokenizer<'a, INCLUDE_ALL>

source§

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

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

impl<'a, const INCLUDE_ALL: bool> Iterator for Tokenizer<'a, INCLUDE_ALL>

source§

type Item = Result<Token<'a>, Error>

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( +Tokenizer in rsn::tokenizer - Rust
rsn::tokenizer

Struct Tokenizer

source
pub struct Tokenizer<'a, const INCLUDE_ALL: bool> { /* private fields */ }
Expand description

Parses Rsn into a sequence of Tokens.

+

Implementations§

source§

impl<'a> Tokenizer<'a, false>

source

pub fn minified(source: &'a str) -> Self

Returns a tokenizer that ignores whitespace and comments.

+
source§

impl<'a> Tokenizer<'a, true>

source

pub fn full(source: &'a str) -> Self

Returns a tokenizer that includes whitespace and comments.

+
source§

impl<'a, const INCLUDE_ALL: bool> Tokenizer<'a, INCLUDE_ALL>

source

pub const fn current_offset(&self) -> usize

Returns the current byte offset of the tokenizer.

+

Trait Implementations§

source§

impl<'a, const INCLUDE_ALL: bool> Clone for Tokenizer<'a, INCLUDE_ALL>

source§

fn clone(&self) -> Tokenizer<'a, INCLUDE_ALL>

Returns a copy 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<'a, const INCLUDE_ALL: bool> Debug for Tokenizer<'a, INCLUDE_ALL>

source§

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

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

impl<'a, const INCLUDE_ALL: bool> Iterator for Tokenizer<'a, INCLUDE_ALL>

source§

type Item = Result<Token<'a>, Error>

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<Self::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( &mut self, ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where diff --git a/main/rsn/tokenizer/trait.Integral.html b/main/rsn/tokenizer/trait.Integral.html deleted file mode 100644 index f585768..0000000 --- a/main/rsn/tokenizer/trait.Integral.html +++ /dev/null @@ -1,9 +0,0 @@ -Integral in rsn::tokenizer - Rust
rsn::tokenizer

Trait Integral

source
pub trait Integral: From<u8> + Copy {
-    type Larger: Integral;
-
-    // Required methods
-    fn into_larger(self) -> Self::Larger;
-    fn checked_mul(self, other: Self) -> Option<Self>;
-    fn checked_add(self, other: Self) -> Option<Self>;
-    fn checked_sub(self, other: Self) -> Option<Self>;
-}

Required Associated Types§

Required Methods§

source

fn into_larger(self) -> Self::Larger

source

fn checked_mul(self, other: Self) -> Option<Self>

source

fn checked_add(self, other: Self) -> Option<Self>

source

fn checked_sub(self, other: Self) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl Integral for i128

source§

type Larger = i128

source§

fn into_larger(self) -> Self::Larger

source§

fn checked_mul(self, other: Self) -> Option<Self>

source§

fn checked_add(self, other: Self) -> Option<Self>

source§

fn checked_sub(self, other: Self) -> Option<Self>

source§

impl Integral for isize

source§

type Larger = i128

source§

fn into_larger(self) -> Self::Larger

source§

fn checked_mul(self, other: Self) -> Option<Self>

source§

fn checked_add(self, other: Self) -> Option<Self>

source§

fn checked_sub(self, other: Self) -> Option<Self>

source§

impl Integral for u128

source§

type Larger = u128

source§

fn into_larger(self) -> Self::Larger

source§

fn checked_mul(self, other: Self) -> Option<Self>

source§

fn checked_add(self, other: Self) -> Option<Self>

source§

fn checked_sub(self, other: Self) -> Option<Self>

source§

impl Integral for usize

source§

type Larger = u128

source§

fn into_larger(self) -> Self::Larger

source§

fn checked_mul(self, other: Self) -> Option<Self>

source§

fn checked_add(self, other: Self) -> Option<Self>

source§

fn checked_sub(self, other: Self) -> Option<Self>

Implementors§

\ No newline at end of file diff --git a/main/rsn/value/enum.FromValueError.html b/main/rsn/value/enum.FromValueError.html index 0c29a63..f50243c 100644 --- a/main/rsn/value/enum.FromValueError.html +++ b/main/rsn/value/enum.FromValueError.html @@ -1,8 +1,12 @@ -FromValueError in rsn::value - Rust
rsn::value

Enum FromValueError

source
pub enum FromValueError {
+FromValueError in rsn::value - Rust
rsn::value

Enum FromValueError

source
pub enum FromValueError {
     Message(String),
     Expected(ExpectedKind),
     InvalidUtf8,
-}

Variants§

§

Message(String)

§

Expected(ExpectedKind)

§

InvalidUtf8

Trait Implementations§

source§

impl Debug for FromValueError

source§

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

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

impl Display for FromValueError

source§

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

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

impl Error for FromValueError

source§

fn custom<T>(msg: T) -> Self
where +}

Expand description

An error from deserializing from a Value.

+

Variants§

§

Message(String)

A custom serialization error.

+
§

Expected(ExpectedKind)

Expected a kind of data, but encountered another kind.

+
§

InvalidUtf8

Invalid UTF-8 was encountered.

+

Trait Implementations§

source§

impl Debug for FromValueError

source§

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

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

impl Display for FromValueError

source§

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

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

impl Error for FromValueError

source§

fn custom<T>(msg: T) -> Self
where T: Display,

Raised when there is general error when deserializing a type. Read more
source§

fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self

Raised when a Deserialize receives a type different from what it was expecting. Read more
source§

fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self

Raised when a Deserialize receives a value of the right type but that is wrong for some other reason. Read more
source§

fn invalid_length(len: usize, exp: &dyn Expected) -> Self

Raised when deserializing a sequence or map and the input data contains @@ -11,8 +15,8 @@ unrecognized name.
source§

fn missing_field(field: &'static str) -> Self

Raised when a Deserialize struct type expected to receive a required field with a particular name but that field was not present in the input.
source§

fn duplicate_field(field: &'static str) -> Self

Raised when a Deserialize struct type received more than one of the -same field.
source§

impl Error for FromValueError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Utf8Error> for FromValueError

source§

fn from(_value: Utf8Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for FromValueError

source§

fn eq(&self, other: &FromValueError) -> 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 StructuralPartialEq for FromValueError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +same field.

source§

impl Error for FromValueError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Utf8Error> for FromValueError

source§

fn from(_value: Utf8Error) -> Self

Converts to this type from the input type.
source§

impl PartialEq for FromValueError

source§

fn eq(&self, other: &FromValueError) -> 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 StructuralPartialEq for FromValueError

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/main/rsn/value/enum.StructContents.html b/main/rsn/value/enum.StructContents.html index 832ba8c..4872117 100644 --- a/main/rsn/value/enum.StructContents.html +++ b/main/rsn/value/enum.StructContents.html @@ -1,8 +1,12 @@ -StructContents in rsn::value - Rust
rsn::value

Enum StructContents

source
pub enum StructContents<'a> {
+StructContents in rsn::value - Rust
rsn::value

Enum StructContents

source
pub enum StructContents<'a> {
     Map(Map<'a>),
     Tuple(List<'a>),
-}

Variants§

§

Map(Map<'a>)

§

Tuple(List<'a>)

Implementations§

source§

impl<'a> StructContents<'a>

source

pub fn into_owned(self) -> StructContents<'static>

Trait Implementations§

source§

impl<'a> Clone for StructContents<'a>

source§

fn clone(&self) -> StructContents<'a>

Returns a copy 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<'a> Debug for StructContents<'a>

source§

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

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

impl<'a> PartialEq for StructContents<'a>

source§

fn eq(&self, other: &StructContents<'a>) -> 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<'a> StructuralPartialEq for StructContents<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for StructContents<'a>

§

impl<'a> RefUnwindSafe for StructContents<'a>

§

impl<'a> Send for StructContents<'a>

§

impl<'a> Sync for StructContents<'a>

§

impl<'a> Unpin for StructContents<'a>

§

impl<'a> UnwindSafe for StructContents<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

The contents of a structure.

+

Variants§

§

Map(Map<'a>)

Named fields, represented as a map.

+
§

Tuple(List<'a>)

A tuple of valuees.

+

Implementations§

source§

impl<'a> StructContents<'a>

source

pub fn into_owned(self) -> StructContents<'static>

Returns an owned representation, copying to the heap if needed.

+

Trait Implementations§

source§

impl<'a> Clone for StructContents<'a>

source§

fn clone(&self) -> StructContents<'a>

Returns a copy 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<'a> Debug for StructContents<'a>

source§

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

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

impl<'a> PartialEq for StructContents<'a>

source§

fn eq(&self, other: &StructContents<'a>) -> 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<'a> StructuralPartialEq for StructContents<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for StructContents<'a>

§

impl<'a> RefUnwindSafe for StructContents<'a>

§

impl<'a> Send for StructContents<'a>

§

impl<'a> Sync for StructContents<'a>

§

impl<'a> Unpin for StructContents<'a>

§

impl<'a> UnwindSafe for StructContents<'a>

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 diff --git a/main/rsn/value/enum.ToValueError.html b/main/rsn/value/enum.ToValueError.html index b4563a4..f8c2c41 100644 --- a/main/rsn/value/enum.ToValueError.html +++ b/main/rsn/value/enum.ToValueError.html @@ -1,10 +1,13 @@ -ToValueError in rsn::value - Rust
rsn::value

Enum ToValueError

source
pub enum ToValueError {
+ToValueError in rsn::value - Rust
rsn::value

Enum ToValueError

source
pub enum ToValueError {
     Message(String),
     IntegerTooLarge(TryFromIntError),
-}

Variants§

§

Message(String)

§

IntegerTooLarge(TryFromIntError)

Trait Implementations§

source§

impl Debug for ToValueError

source§

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

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

impl Display for ToValueError

source§

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

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

impl Error for ToValueError

source§

fn custom<T>(msg: T) -> Self
where +}

Expand description

An error from serializing to a Value.

+

Variants§

§

Message(String)

A custom serialization error.

+
§

IntegerTooLarge(TryFromIntError)

An integer was too larget to represent.

+

Trait Implementations§

source§

impl Debug for ToValueError

source§

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

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

impl Display for ToValueError

source§

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

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

impl Error for ToValueError

source§

fn custom<T>(msg: T) -> Self
where T: Display,

Used when a Serialize implementation encounters any error -while serializing a type. Read more
source§

impl Error for ToValueError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<TryFromIntError> for ToValueError

source§

fn from(value: TryFromIntError) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ToValueError

source§

fn eq(&self, other: &ToValueError) -> 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 StructuralPartialEq for ToValueError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +while serializing a type. Read more

source§

impl Error for ToValueError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<TryFromIntError> for ToValueError

source§

fn from(value: TryFromIntError) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ToValueError

source§

fn eq(&self, other: &ToValueError) -> 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 StructuralPartialEq for ToValueError

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/main/rsn/value/enum.Value.html b/main/rsn/value/enum.Value.html index d8d1bc0..8c3143e 100644 --- a/main/rsn/value/enum.Value.html +++ b/main/rsn/value/enum.Value.html @@ -1,4 +1,4 @@ -Value in rsn::value - Rust
rsn::value

Enum Value

source
pub enum Value<'a> {
+Value in rsn::value - Rust
rsn::value

Enum Value

source
pub enum Value<'a> {
     Integer(Integer),
     Float(f64),
     Bool(bool),
@@ -11,8 +11,91 @@
     Tuple(List<'a>),
     Array(List<'a>),
     Map(Map<'a>),
-}

Variants§

§

Integer(Integer)

§

Float(f64)

§

Bool(bool)

§

Char(char)

§

Byte(u8)

§

Identifier(Cow<'a, str>)

§

String(Cow<'a, str>)

§

Bytes(Cow<'a, [u8]>)

§

Named(Named<'a>)

§

Tuple(List<'a>)

§

Array(List<'a>)

§

Map(Map<'a>)

Implementations§

source§

impl<'a> Value<'a>

source

pub fn as_u8(&self) -> Option<u8>

source

pub fn as_u16(&self) -> Option<u16>

source

pub fn as_u32(&self) -> Option<u32>

source

pub fn as_u64(&self) -> Option<u64>

source

pub fn as_u128(&self) -> Option<u128>

source

pub fn as_usize(&self) -> Option<usize>

source

pub fn as_i8(&self) -> Option<i8>

source

pub fn as_i16(&self) -> Option<i16>

source

pub fn as_i32(&self) -> Option<i32>

source

pub fn as_i64(&self) -> Option<i64>

source

pub fn as_i128(&self) -> Option<i128>

source

pub fn as_isize(&self) -> Option<isize>

source

pub fn from_str(source: &'a str, config: Config) -> Result<Self, Error>

source

pub const fn unit() -> Self

source

pub fn from_serialize<S: Serialize>(value: &S) -> Self

source

pub fn to_deserialize<D: Deserialize<'a>>(&self) -> Result<D, FromValueError>

source

pub fn into_owned(self) -> Value<'static>

source

pub fn as_f64(&self) -> Option<f64>

source

pub fn as_str(&self) -> Option<&str>

source

pub fn as_bytes(&self) -> Option<&[u8]>

Trait Implementations§

source§

impl<'a> Clone for Value<'a>

source§

fn clone(&self) -> Value<'a>

Returns a copy 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<'a> Debug for Value<'a>

source§

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

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

impl<'a> Display for Value<'a>

source§

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

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

impl FromStr for Value<'static>

source§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl<'a> PartialEq for Value<'a>

source§

fn eq(&self, other: &Value<'a>) -> 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<'a> StructuralPartialEq for Value<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Value<'a>

§

impl<'a> RefUnwindSafe for Value<'a>

§

impl<'a> Send for Value<'a>

§

impl<'a> Sync for Value<'a>

§

impl<'a> Unpin for Value<'a>

§

impl<'a> UnwindSafe for Value<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A value representable by Rsn.

+

Variants§

§

Integer(Integer)

An integer.

+
§

Float(f64)

A floating point number.

+
§

Bool(bool)

A boolean.

+
§

Char(char)

A character.

+
§

Byte(u8)

A byte.

+
§

Identifier(Cow<'a, str>)

An identifier (name).

+
§

String(Cow<'a, str>)

A string.

+
§

Bytes(Cow<'a, [u8]>)

A byte string.

+
§

Named(Named<'a>)

A named structure.

+
§

Tuple(List<'a>)

A tuple of values.

+
§

Array(List<'a>)

An array of values.

+
§

Map(Map<'a>)

A collection of key-value pairs.

+

Implementations§

source§

impl<'a> Value<'a>

source

pub fn as_u8(&self) -> Option<u8>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_u16(&self) -> Option<u16>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_u32(&self) -> Option<u32>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_u64(&self) -> Option<u64>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_u128(&self) -> Option<u128>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_usize(&self) -> Option<usize>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_i8(&self) -> Option<i8>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_i16(&self) -> Option<i16>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_i32(&self) -> Option<i32>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_i64(&self) -> Option<i64>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_i128(&self) -> Option<i128>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn as_isize(&self) -> Option<isize>

Returns this value as a +$r#type +if the value is an integer that can fit in a +$r#type

+
source

pub fn from_str(source: &'a str, config: Config) -> Result<Self, Error>

Parses source as a Value.

+
§Errors
+

Returns any error encountered while parsing source.

+
source

pub const fn unit() -> Self

Returns a value representing the unit type.

+
source

pub fn from_serialize<S: Serialize>(value: &S) -> Result<Self, ToValueError>

Creates a value by serializing value using Serde.

+
§Errors
+

Returns an error if the value cannot be represented losslessly or if +any errors occur from Serializer implementations.

+
source

pub fn to_deserialize<D: Deserialize<'a>>(&self) -> Result<D, FromValueError>

Deserializes self as D using Serde.

+
§Errors
+

Returns an error if self cannot be deserialized as D.

+
source

pub fn into_owned(self) -> Value<'static>

Returns the owned version of self, copying any borrowed data to the +heap.

+
source

pub fn as_f64(&self) -> Option<f64>

Returns this value as a floating point number.

+

If this is an integer, this will cast the integer to an f64.

+
source

pub fn as_str(&self) -> Option<&str>

Returns this value as a str, if possible.

+

Identifier, String, and Bytes bytes all can be returned from this +function.

+
source

pub fn as_bytes(&self) -> Option<&[u8]>

Returns the underlying bytes for this value, if it can be represented as +a byte slice.

+

Identifier, String, and Bytes bytes all can be returned from this +function.

+

Trait Implementations§

source§

impl<'a> Clone for Value<'a>

source§

fn clone(&self) -> Value<'a>

Returns a copy 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<'a> Debug for Value<'a>

source§

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

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

impl<'a> Display for Value<'a>

source§

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

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

impl FromStr for Value<'static>

source§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl<'a> PartialEq for Value<'a>

source§

fn eq(&self, other: &Value<'a>) -> 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<'a> StructuralPartialEq for Value<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Value<'a>

§

impl<'a> RefUnwindSafe for Value<'a>

§

impl<'a> Send for Value<'a>

§

impl<'a> Sync for Value<'a>

§

impl<'a> Unpin for Value<'a>

§

impl<'a> UnwindSafe for Value<'a>

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 diff --git a/main/rsn/value/index.html b/main/rsn/value/index.html index df8e243..09c0d18 100644 --- a/main/rsn/value/index.html +++ b/main/rsn/value/index.html @@ -1 +1,2 @@ -rsn::value - Rust
\ No newline at end of file +rsn::value - Rust
rsn

Module value

source
Expand description

Types for generically representing the parsed value from an Rsn document.

+

Structs§

  • A list of values.
  • A list of key-value pairs.
  • A named structure.

Enums§

Type Aliases§

\ No newline at end of file diff --git a/main/rsn/value/struct.List.html b/main/rsn/value/struct.List.html index 46bbab8..5c81bb5 100644 --- a/main/rsn/value/struct.List.html +++ b/main/rsn/value/struct.List.html @@ -1,5 +1,8 @@ -List in rsn::value - Rust
rsn::value

Struct List

source
pub struct List<'a>(pub Vec<Value<'a>>);

Tuple Fields§

§0: Vec<Value<'a>>

Implementations§

source§

impl<'a> List<'a>

source

pub const fn new() -> Self

source

pub fn into_owned(self) -> List<'static>

Trait Implementations§

source§

impl<'a> Clone for List<'a>

source§

fn clone(&self) -> List<'a>

Returns a copy 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<'a> Debug for List<'a>

source§

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

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

impl<'a> Default for List<'a>

source§

fn default() -> List<'a>

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

impl<'a> PartialEq for List<'a>

source§

fn eq(&self, other: &List<'a>) -> 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<'a> StructuralPartialEq for List<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for List<'a>

§

impl<'a> RefUnwindSafe for List<'a>

§

impl<'a> Send for List<'a>

§

impl<'a> Sync for List<'a>

§

impl<'a> Unpin for List<'a>

§

impl<'a> UnwindSafe for List<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +List in rsn::value - Rust
rsn::value

Struct List

source
pub struct List<'a>(pub Vec<Value<'a>>);
Expand description

A list of values.

+

Tuple Fields§

§0: Vec<Value<'a>>

Implementations§

source§

impl<'a> List<'a>

source

pub const fn new() -> Self

Returns an empty list.

+
source

pub fn into_owned(self) -> List<'static>

Returns an owned representation, copying to the heap if needed.

+

Trait Implementations§

source§

impl<'a> Clone for List<'a>

source§

fn clone(&self) -> List<'a>

Returns a copy 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<'a> Debug for List<'a>

source§

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

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

impl<'a> Default for List<'a>

source§

fn default() -> List<'a>

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

impl<'a> PartialEq for List<'a>

source§

fn eq(&self, other: &List<'a>) -> 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<'a> StructuralPartialEq for List<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for List<'a>

§

impl<'a> RefUnwindSafe for List<'a>

§

impl<'a> Send for List<'a>

§

impl<'a> Sync for List<'a>

§

impl<'a> Unpin for List<'a>

§

impl<'a> UnwindSafe for List<'a>

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 diff --git a/main/rsn/value/struct.Map.html b/main/rsn/value/struct.Map.html index 13ae774..fe3f4ab 100644 --- a/main/rsn/value/struct.Map.html +++ b/main/rsn/value/struct.Map.html @@ -1,5 +1,7 @@ -Map in rsn::value - Rust
rsn::value

Struct Map

source
pub struct Map<'a>(pub Vec<(Value<'a>, Value<'a>)>);

Tuple Fields§

§0: Vec<(Value<'a>, Value<'a>)>

Implementations§

source§

impl<'a> Map<'a>

source

pub fn into_owned(self) -> Map<'static>

Trait Implementations§

source§

impl<'a> Clone for Map<'a>

source§

fn clone(&self) -> Map<'a>

Returns a copy 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<'a> Debug for Map<'a>

source§

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

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

impl<'a> Default for Map<'a>

source§

fn default() -> Map<'a>

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

impl<'a> PartialEq for Map<'a>

source§

fn eq(&self, other: &Map<'a>) -> 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<'a> StructuralPartialEq for Map<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Map<'a>

§

impl<'a> RefUnwindSafe for Map<'a>

§

impl<'a> Send for Map<'a>

§

impl<'a> Sync for Map<'a>

§

impl<'a> Unpin for Map<'a>

§

impl<'a> UnwindSafe for Map<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +Map in rsn::value - Rust
rsn::value

Struct Map

source
pub struct Map<'a>(pub Vec<(Value<'a>, Value<'a>)>);
Expand description

A list of key-value pairs.

+

Tuple Fields§

§0: Vec<(Value<'a>, Value<'a>)>

Implementations§

source§

impl<'a> Map<'a>

source

pub fn into_owned(self) -> Map<'static>

Returns an owned representation, copying to the heap if needed.

+

Trait Implementations§

source§

impl<'a> Clone for Map<'a>

source§

fn clone(&self) -> Map<'a>

Returns a copy 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<'a> Debug for Map<'a>

source§

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

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

impl<'a> Default for Map<'a>

source§

fn default() -> Map<'a>

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

impl<'a> PartialEq for Map<'a>

source§

fn eq(&self, other: &Map<'a>) -> 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<'a> StructuralPartialEq for Map<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Map<'a>

§

impl<'a> RefUnwindSafe for Map<'a>

§

impl<'a> Send for Map<'a>

§

impl<'a> Sync for Map<'a>

§

impl<'a> Unpin for Map<'a>

§

impl<'a> UnwindSafe for Map<'a>

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 diff --git a/main/rsn/value/struct.Named.html b/main/rsn/value/struct.Named.html index 45a8f66..901f74d 100644 --- a/main/rsn/value/struct.Named.html +++ b/main/rsn/value/struct.Named.html @@ -1,8 +1,13 @@ -Named in rsn::value - Rust
rsn::value

Struct Named

source
pub struct Named<'a> {
+Named in rsn::value - Rust
rsn::value

Struct Named

source
pub struct Named<'a> {
     pub name: Cow<'a, str>,
     pub contents: StructContents<'a>,
-}

Fields§

§name: Cow<'a, str>§contents: StructContents<'a>

Implementations§

source§

impl<'a> Named<'a>

source

pub fn into_owned(self) -> Named<'static>

Trait Implementations§

source§

impl<'a> Clone for Named<'a>

source§

fn clone(&self) -> Named<'a>

Returns a copy 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<'a> Debug for Named<'a>

source§

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

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

impl<'a> PartialEq for Named<'a>

source§

fn eq(&self, other: &Named<'a>) -> 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<'a> StructuralPartialEq for Named<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Named<'a>

§

impl<'a> RefUnwindSafe for Named<'a>

§

impl<'a> Send for Named<'a>

§

impl<'a> Sync for Named<'a>

§

impl<'a> Unpin for Named<'a>

§

impl<'a> UnwindSafe for Named<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A named structure.

+

Fields§

§name: Cow<'a, str>

The name of the structure.

+
§contents: StructContents<'a>

The contents of the structure.

+

Implementations§

source§

impl<'a> Named<'a>

source

pub fn into_owned(self) -> Named<'static>

Returns an owned representation of this name, copying to the stack if +needed.

+

Trait Implementations§

source§

impl<'a> Clone for Named<'a>

source§

fn clone(&self) -> Named<'a>

Returns a copy 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<'a> Debug for Named<'a>

source§

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

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

impl<'a> PartialEq for Named<'a>

source§

fn eq(&self, other: &Named<'a>) -> 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<'a> StructuralPartialEq for Named<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for Named<'a>

§

impl<'a> RefUnwindSafe for Named<'a>

§

impl<'a> Send for Named<'a>

§

impl<'a> Sync for Named<'a>

§

impl<'a> Unpin for Named<'a>

§

impl<'a> UnwindSafe for Named<'a>

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 diff --git a/main/rsn/value/type.OwnedValue.html b/main/rsn/value/type.OwnedValue.html index 2cf0a2e..7fa06da 100644 --- a/main/rsn/value/type.OwnedValue.html +++ b/main/rsn/value/type.OwnedValue.html @@ -1,4 +1,5 @@ -OwnedValue in rsn::value - Rust
rsn::value

Type Alias OwnedValue

source
pub type OwnedValue = Value<'static>;

Aliased Type§

enum OwnedValue {
+OwnedValue in rsn::value - Rust
rsn::value

Type Alias OwnedValue

source
pub type OwnedValue = Value<'static>;
Expand description

A value with a static lifetime.

+

Aliased Type§

enum OwnedValue {
     Integer(Integer),
     Float(f64),
     Bool(bool),
@@ -11,4 +12,16 @@
     Tuple(List<'static>),
     Array(List<'static>),
     Map(Map<'static>),
-}

Variants§

§

Integer(Integer)

§

Float(f64)

§

Bool(bool)

§

Char(char)

§

Byte(u8)

§

Identifier(Cow<'static, str>)

§

String(Cow<'static, str>)

§

Bytes(Cow<'static, [u8]>)

§

Named(Named<'static>)

§

Tuple(List<'static>)

§

Array(List<'static>)

§

Map(Map<'static>)

\ No newline at end of file +}

Variants§

§

Integer(Integer)

An integer.

+
§

Float(f64)

A floating point number.

+
§

Bool(bool)

A boolean.

+
§

Char(char)

A character.

+
§

Byte(u8)

A byte.

+
§

Identifier(Cow<'static, str>)

An identifier (name).

+
§

String(Cow<'static, str>)

A string.

+
§

Bytes(Cow<'static, [u8]>)

A byte string.

+
§

Named(Named<'static>)

A named structure.

+
§

Tuple(List<'static>)

A tuple of values.

+
§

Array(List<'static>)

An array of values.

+
§

Map(Map<'static>)

A collection of key-value pairs.

+
\ No newline at end of file diff --git a/main/rsn/writer/enum.Config.html b/main/rsn/writer/enum.Config.html index 7d81e06..898bff8 100644 --- a/main/rsn/writer/enum.Config.html +++ b/main/rsn/writer/enum.Config.html @@ -1,10 +1,15 @@ -Config in rsn::writer - Rust
rsn::writer

Enum Config

source
#[non_exhaustive]
pub enum Config { +Config in rsn::writer - Rust
rsn::writer

Enum Config

source
#[non_exhaustive]
pub enum Config { Compact, Pretty { indentation: Cow<'static, str>, newline: Cow<'static, str>, }, -}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Compact

§

Pretty

Fields

§indentation: Cow<'static, str>
§newline: Cow<'static, str>

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy 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 Config

source§

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

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

impl Default for Config

source§

fn default() -> Config

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

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where +}

Expand description

A writer configuration.

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Compact

Renders Rsn in its most compact representation.

+
§

Pretty

Renders Rsn with indentation and line endings.

+

Fields

§indentation: Cow<'static, str>

The indentation to include for each level of nested data type.

+
§newline: Cow<'static, str>

The newline character(s) to include when wrapping to a new line.

+

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy 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 Config

source§

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

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

impl Default for Config

source§

fn default() -> Config

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

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

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 diff --git a/main/rsn/writer/index.html b/main/rsn/writer/index.html index 71d7393..4fe880d 100644 --- a/main/rsn/writer/index.html +++ b/main/rsn/writer/index.html @@ -1 +1,2 @@ -rsn::writer - Rust
rsn

Module writer

source

Structs§

Enums§

Traits§

\ No newline at end of file +rsn::writer - Rust
rsn

Module writer

source
Expand description

Types for writing Rsn.

+

Structs§

  • A low-level writer for the Rsn format.

Enums§

Traits§

  • A type that can be written as a primitive.q
\ No newline at end of file diff --git a/main/rsn/writer/struct.Writer.html b/main/rsn/writer/struct.Writer.html index a7d6cf0..045cabf 100644 --- a/main/rsn/writer/struct.Writer.html +++ b/main/rsn/writer/struct.Writer.html @@ -1,6 +1,49 @@ -Writer in rsn::writer - Rust
rsn::writer

Struct Writer

source
pub struct Writer<'config, Output> { /* private fields */ }

Implementations§

source§

impl<'config, Output> Writer<'config, Output>
where - Output: Write,

source

pub fn new(output: Output, config: &'config Config) -> Self

source

pub fn finish(self) -> Output

source

pub fn begin_named_map(&mut self, name: &str) -> Result

source

pub fn begin_named_tuple(&mut self, name: &str) -> Result

source

pub fn begin_map(&mut self) -> Result

source

pub fn begin_tuple(&mut self) -> Result

source

pub fn begin_list(&mut self) -> Result

source

pub fn write_primitive<P>(&mut self, p: &P) -> Result
where - P: Primitive + ?Sized,

source

pub fn write_raw_value(&mut self, ident: &str) -> Result

source

pub fn insert_newline(&mut self) -> Result

source

pub fn finish_nested(&mut self) -> Result

source

pub fn write_value(&mut self, value: &Value<'_>) -> Result

Trait Implementations§

source§

impl<'config, Output: Debug> Debug for Writer<'config, Output>

source§

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

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

impl Default for Writer<'static, String>

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<'config, Output> Freeze for Writer<'config, Output>
where +Writer in rsn::writer - Rust
rsn::writer

Struct Writer

source
pub struct Writer<'config, Output> { /* private fields */ }
Expand description

A low-level writer for the Rsn format.

+

Implementations§

source§

impl<'config, Output> Writer<'config, Output>
where + Output: Write,

source

pub fn new(output: Output, config: &'config Config) -> Self

Returns a writer that outputs to output using config.

+
source

pub fn finish(self) -> Output

Finishes writing and returns the output.

+
§Panics
+

This function panics if a nested type was begun and a corresponding +finish_nested was not called.

+
source

pub fn begin_named_map(&mut self, name: &str) -> Result

Begins a named map. A corresponding call to finish_nested must be made +when the map contents are completed.

+
§Errors
+

Returns any errors that arise while writing to Output.

+
source

pub fn begin_named_tuple(&mut self, name: &str) -> Result

Begins a named tuple. A corresponding call to finish_nested must be +made when the tuple contents are completed.

+
§Errors
+

Returns any errors that arise while writing to Output.

+
source

pub fn begin_map(&mut self) -> Result

Begins a map. A corresponding call to finish_nested must be made when +the map contents are completed.

+
§Errors
+

Returns any errors that arise while writing to Output.

+
source

pub fn begin_tuple(&mut self) -> Result

Begins a tuple. A corresponding call to finish_nested must be made when +the tuple contents are completed.

+
§Errors
+

Returns any errors that arise while writing to Output.

+
source

pub fn begin_list(&mut self) -> Result

Begins a list/array. A corresponding call to finish_nested must be +made when the list contents are completed.

+
§Errors
+

Returns any errors that arise while writing to Output.

+
source

pub fn write_primitive<P>(&mut self, p: &P) -> Result
where + P: Primitive + ?Sized,

Writes a primitive value, formatting it as valid Rsn.

+
§Errors
+

Returns any errors that arise while writing to Output.

+
source

pub fn write_raw_value(&mut self, ident: &str) -> Result

Writes ident without any extra formatting.

+
§Errors
+

Returns any errors that arise while writing to Output.

+
source

pub fn insert_newline(&mut self) -> Result

Inserts the configured newline character, if needed.

+
§Errors
+

Returns any errors that arise while writing to Output.

+
source

pub fn finish_nested(&mut self) -> Result

Finishes the current nested value.

+
§Errors
+

Returns any errors that arise while writing to Output.

+
§Panics
+

This function panics if are no open nested types.

+
source

pub fn write_value(&mut self, value: &Value<'_>) -> Result

Writes a value.

+
§Errors
+

Returns any errors that arise while writing to Output.

+

Trait Implementations§

source§

impl<'config, Output: Debug> Debug for Writer<'config, Output>

source§

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

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

impl Default for Writer<'static, String>

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<'config, Output> Freeze for Writer<'config, Output>
where Output: Freeze,

§

impl<'config, Output> RefUnwindSafe for Writer<'config, Output>
where Output: RefUnwindSafe,

§

impl<'config, Output> Send for Writer<'config, Output>
where Output: Send,

§

impl<'config, Output> Sync for Writer<'config, Output>
where diff --git a/main/rsn/writer/trait.Primitive.html b/main/rsn/writer/trait.Primitive.html index 1c8b553..4e13a07 100644 --- a/main/rsn/writer/trait.Primitive.html +++ b/main/rsn/writer/trait.Primitive.html @@ -1,4 +1,8 @@ -Primitive in rsn::writer - Rust
rsn::writer

Trait Primitive

source
pub trait Primitive {
+Primitive in rsn::writer - Rust
rsn::writer

Trait Primitive

source
pub trait Primitive {
     // Required method
     fn render_to<W: Write>(&self, buffer: &mut W) -> Result;
-}

Required Methods§

source

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl Primitive for bool

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for char

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for f32

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for f64

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i8

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i16

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i32

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i64

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i128

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for isize

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for str

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u8

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u16

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u32

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u64

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u128

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for usize

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for [u8]

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

Implementors§

\ No newline at end of file +}
Expand description

A type that can be written as a primitive.q

+

Required Methods§

source

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

Renders this type to buffer.

+
§Errors
+

Returns any errors that arise while writing to buffer.

+

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl Primitive for bool

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for char

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for f32

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for f64

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i8

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i16

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i32

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i64

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for i128

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for isize

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for str

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u8

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u16

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u32

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u64

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for u128

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for usize

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

source§

impl Primitive for [u8]

source§

fn render_to<W: Write>(&self, buffer: &mut W) -> Result

Implementors§

\ No newline at end of file diff --git a/main/search-index.js b/main/search-index.js index 4ff86f8..8ef8dcc 100644 --- a/main/search-index.js +++ b/main/search-index.js @@ -1,4 +1,4 @@ -var searchIndex = new Map(JSON.parse('[["rsn",{"t":"CHHHCCHHHHCCCFFGFGPPPPPPPPPPPPPPPPPPFPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPPPPPFPFGFGPPPPPPPPPPPPPPPPGPPGFGGFGPPPPPPPNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOFFFNONNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOGPPPPPPPPPPFGPPPGPPKPPPPPRPPPPFGFPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNMMMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPPPPPPPPPPPPPGPPPPPPFFPPPPPFPPIPPGGPPPGNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPGPKFNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNNOO","n":["de","from_reader","from_slice","from_str","parser","ser","to_string","to_string_pretty","to_vec","to_writer","tokenizer","value","writer","Deserializer","DeserializerError","EnumVariantAccessor","Error","ErrorKind","ExpectedBool","ExpectedBytes","ExpectedChar","ExpectedEnum","ExpectedFloat","ExpectedInteger","ExpectedMap","ExpectedMapStruct","ExpectedOption","ExpectedSequence","ExpectedString","ExpectedTupleStruct","ExpectedUnit","InvalidUtf8","Message","NameMismatch","Nested","Parser","SequenceDeserializer","SomeCanOnlyContainOneValue","Unit","borrow","","","","","","borrow_mut","","","","","","clone","","","clone_into","","","clone_to_uninit","","","custom","deserialize_any","deserialize_bool","deserialize_byte_buf","deserialize_bytes","deserialize_char","deserialize_enum","deserialize_f32","deserialize_f64","deserialize_i128","deserialize_i16","deserialize_i32","deserialize_i64","deserialize_i8","deserialize_identifier","deserialize_ignored_any","deserialize_map","deserialize_newtype_struct","deserialize_option","deserialize_seq","deserialize_str","deserialize_string","deserialize_struct","deserialize_tuple","deserialize_tuple_struct","deserialize_u128","deserialize_u16","deserialize_u32","deserialize_u64","deserialize_u8","deserialize_unit","deserialize_unit_struct","drop","ensure_eof","eq","","","fmt","","","","","","from","","","","","","","","","","into","","","","","","kind","","location","","new","","","newtype_variant_seed","next_element_seed","next_key_seed","next_value_seed","struct_variant","to_owned","","","to_string","","","try_from","","","","","","try_into","","","","","","tuple_variant","type_id","","","","","","unit_variant","variant_seed","BeginNested","Bool","Bytes","Char","Comment","Config","EndNested","Error","ErrorKind","Event","EventKind","ExpectedColon","ExpectedCommaOrEnd","ExpectedKey","ExpectedMapOrTuple","ExpectedValue","ExpectingColon","ExpectingComma","","ExpectingKey","ExpectingValue","","Float","Identifier","Integer","List","","ListState","Map","","MapState","Name","Nested","NestedState","Parser","Primitive","","String","Tokenizer","TrailingData","Tuple","","UnexpectedEof","allow_implicit_map_at_root","","borrow","","","","","","","","","","","","borrow_mut","","","","","","","","","","","","clone","","","","","","","","","","","clone_into","","","","","","","","","","","clone_to_uninit","","","","","","","","","","","current_offset","current_range","default","deref","deserialize","deserialize_from_reader","deserialize_from_slice","eq","","","","","","","","","","","","fmt","","","","","","","","","","","","","","from","","","","","","","","","","","","","","","include_comments","","into","","","","","","","","","","","","into_iter","kind","","location","","","name","new","","","next","to_owned","","","","","","","","","","","to_string","","try_from","","","","","","","","","","","","try_into","","","","","","","","","","","","type_id","","","","","","","","","","","","validate","kind","name","Config","MapSerializer","Serializer","anonymous_structs","","borrow","","","borrow_mut","","","clone","clone_into","clone_to_uninit","default","","end","","","","","","","finish","fmt","","from","","","implicit_map_at_root","","into","","","new","","pretty","serialize","serialize_bool","serialize_bytes","serialize_char","serialize_element","","serialize_f32","serialize_f64","serialize_field","","","","serialize_i128","serialize_i16","serialize_i32","serialize_i64","serialize_i8","serialize_key","serialize_map","serialize_newtype_struct","serialize_newtype_variant","serialize_none","serialize_seq","serialize_some","serialize_str","serialize_struct","serialize_struct_variant","serialize_to_vec","serialize_to_writer","serialize_tuple","serialize_tuple_struct","serialize_tuple_variant","serialize_u128","serialize_u16","serialize_u32","serialize_u64","serialize_u8","serialize_unit","serialize_unit_struct","serialize_unit_variant","serialize_value","to_owned","try_from","","","try_into","","","type_id","","","writer","Balanced","Bool","Brace","Bracket","Byte","Bytes","Character","Close","Colon","Comma","Comment","Error","ErrorKind","ExpectedDigit","Float","Identifier","Integer","","IntegerTooLarge","Integral","InvalidAscii","InvalidFloat","InvalidUnicode","Isize","IsolatedCarriageReturn","Larger","Open","Paren","SignedLarge","String","Token","TokenKind","Tokenizer","Unexpected","UnexpectedEof","UnsignedLarge","Usize","Whitespace","as_f64","as_i128","as_i16","as_i32","as_i64","as_i8","as_isize","as_u128","as_u16","as_u32","as_u64","as_u8","as_usize","borrow","","","","","","","borrow_mut","","","","","","","checked_add","checked_mul","checked_sub","clone","","","","","","","clone_into","","","","","","","clone_to_uninit","","","","","","","current_offset","eq","","","","","","fmt","","","","","","","","","from","","","","","","","","","","","","","","","","","full","into","","","","","","","into_iter","into_larger","is_zero","kind","","location","","minified","new","","next","to_owned","","","","","","","to_string","","try_from","","","","","","","","","try_into","","","","","","","type_id","","","","","","","Array","","Bool","","Byte","","Bytes","","Char","","Expected","Float","","FromValueError","Identifier","","Integer","","IntegerTooLarge","InvalidUtf8","List","Map","","","","Message","","Named","","","OwnedValue","String","","StructContents","ToValueError","Tuple","","","Value","as_bytes","as_f64","as_i128","as_i16","as_i32","as_i64","as_i8","as_isize","as_str","as_u128","as_u16","as_u32","as_u64","as_u8","as_usize","borrow","","","","","","","borrow_mut","","","","","","","clone","","","","","clone_into","","","","","clone_to_uninit","","","","","contents","custom","","default","","eq","","","","","","","fmt","","","","","","","","","","from","","","","","","","","","from_serialize","from_str","","into","","","","","","","into_owned","","","","","name","new","to_deserialize","to_owned","","","","","to_string","","","try_from","","","","","","","try_into","","","","","","","type_id","","","","","","","unit","Compact","Config","Pretty","Primitive","Writer","begin_list","begin_map","begin_named_map","begin_named_tuple","begin_tuple","borrow","","borrow_mut","","clone","clone_into","clone_to_uninit","default","","finish","finish_nested","fmt","","from","","insert_newline","into","","new","render_to","to_owned","try_from","","try_into","","type_id","","write_primitive","write_raw_value","write_value","indentation","newline"],"q":[[0,"rsn"],[13,"rsn::de"],[158,"rsn::parser"],[383,"rsn::parser::EventKind"],[385,"rsn::ser"],[474,"rsn::tokenizer"],[647,"rsn::value"],[809,"rsn::writer"],[849,"rsn::writer::Config"],[851,"core::result"],[852,"std::io"],[853,"serde::de"],[854,"alloc::string"],[855,"serde::ser"],[856,"alloc::vec"],[857,"std::io::error"],[858,"core::fmt"],[859,"core::ops::range"],[860,"core::convert"],[861,"core::option"],[862,"core::any"],[863,"core::marker"],[864,"rsn::value::serde"],[865,"core::num::error"],[866,"core::str::error"]],"i":"``````````````````Bd000000000000000Dd1`10BjBn2bBb532410510510510503333333333333333333333333333333231051100553241100555324105101031042334105105324105324105432410543DnEj001`1````Cj0000EhEf1101333EbEd`10``````6544104Cl0El1Cf7Dl:E`6578:34291;06578:4291;06578:4291;06578:4291;06578:3340444291;0006578:3422991;06578:3422991;066578:4434291;06578:321210032134291;06578:2934291;06578:34291;06578:34291;06578:3Jl0```Fb0FfFd2102222021100000002102221020222000000010000000010000000002200000000000121021021022`I`F`01111111``Ch22`20`000Hf1Hl4314```221141111111111111Hn524IbEn52746105333274610527461052746105127460527461005527444444444446105127461051342020120127461050527444610527461052746105JnId10101010J`21`2121In1``32Ih12`43`43``430`3333333333333333If1IjIl4562310456231062310623102451062310456623104455623104455666623104562310206623106456231045623104562310456Jh`0``Jf00000101111010001010010Jj2121212111K`0","f":"`{c{{d{eb}}}fh}{{{n{{l{j}}}}}{{d{cb}}}A`}{{{n{Ab}}}{{d{cb}}}A`}``{{{n{c}}}AdAf}0{{{n{c}}}{{Ah{j}}}Af}{{{n{c}}e}{{Al{Aj}}}AfAn}`````````````````````````````{n{{n{c}}}{}}00000{{{n{B`}}}{{n{B`c}}}{}}00000{{{n{b}}}b}{{{n{Bb}}}Bb}{{{n{Bd}}}Bd}{{n{n{B`c}}}Bf{}}00{nBf}00{cBbBh}{{{n{B`Bj}}c}{{d{e}}}Bl{}}0000{{{n{B`Bj}}{n{Ab}}{n{{l{{n{Ab}}}}}}c}{{d{e}}}Bl{}}1111111111{{{n{B`Bj}}{n{Ab}}c}{{d{e}}}Bl{}}22221{{{n{B`Bj}}Ajc}{{d{e}}}Bl{}}{{{n{B`Bj}}{n{Ab}}Ajc}{{d{e}}}Bl{}}4444442{{{n{B`Bn}}}Bf}{Bj{{d{Bfb}}}}{{{n{b}}{n{b}}}C`}{{{n{Bb}}{n{Bb}}}C`}{{{n{Bd}}{n{Bd}}}C`}{{{n{b}}{n{B`Cb}}}Cd}0{{{n{Bb}}{n{B`Cb}}}Cd}0{{{n{Bd}}{n{B`Cb}}}Cd}0{cc{}}00{Cfb}11{CfBb}{ChBd}3{CjBd}{{}c{}}00000````{{{n{Ab}}Cl}Bj}{{{Cn{Aj}}c}b{{D`{Bd}}}}{{ce}Bb{{D`{{Db{{Cn{Aj}}}}}}}{{D`{Bd}}}}{{Ddc}{{d{e}}}Df{}}{{{n{B`Bn}}c}{{d{Dbe}}}Df{}}{{{n{B`Bj}}c}{{d{Dbe}}}Df{}}{{{n{B`Bj}}c}{{d{e}}}Df{}}{{Dd{n{{l{{n{Ab}}}}}}c}{{d{e}}}Bl{}}{nc{}}00{nAd}00{c{{d{e}}}{}{}}00000{{}{{d{c}}}{}}00000{{DdAjc}{{d{e}}}Bl{}}{nDh}00000{Dd{{d{Bfc}}}{}}{{{n{B`Bj}}c}{{d{{Dj{e}}g}}}Df{}{}}```````````````````````````````````````````{{ClC`}Cl}`{n{{n{c}}}{}}00000000000{{{n{B`}}}{{n{B`c}}}{}}00000000000{{{n{Cl}}}Cl}{{{n{Cf}}}Cf}{{{n{Cj}}}Cj}{{{n{Dl}}}Dl}{{{n{Dn}}}Dn}{{{n{E`}}}E`}{{{n{Eb}}}Eb}{{{n{Ed}}}Ed}{{{n{Ef}}}Ef}{{{n{Eh}}}Eh}{{{n{Ej}}}Ej}{{n{n{B`c}}}Bf{}}0000000000{nBf}0000000000{{{n{El}}}Aj}{{{n{El}}}{{Cn{Aj}}}}{{}Cl}{{{n{E`}}}{{n{c}}}{}}{{Cl{n{Ab}}}{{d{cb}}}A`}{{Clc}{{d{eb}}}fh}{{Cl{n{{l{j}}}}}{{d{cb}}}A`}{{{n{Cf}}{n{Cf}}}C`}{{{n{Cj}}{n{Cj}}}C`}{{{n{Dl}}{n{Dl}}}C`}{{{n{Dn}}{n{Dn}}}C`}{{{n{E`}}{n{E`}}}C`}{{{n{E`}}{n{Ab}}}C`}{{{n{E`}}{n{{n{Ab}}}}}C`}{{{n{Eb}}{n{Eb}}}C`}{{{n{Ed}}{n{Ed}}}C`}{{{n{Ef}}{n{Ef}}}C`}{{{n{Eh}}{n{Eh}}}C`}{{{n{Ej}}{n{Ej}}}C`}{{{n{El}}{n{B`Cb}}}Cd}{{{n{Cl}}{n{B`Cb}}}Cd}{{{n{Cf}}{n{B`Cb}}}Cd}0{{{n{Cj}}{n{B`Cb}}}Cd}0{{{n{Dl}}{n{B`Cb}}}Cd}{{{n{Dn}}{n{B`Cb}}}Cd}{{{n{E`}}{n{B`Cb}}}Cd}{{{n{Eb}}{n{B`Cb}}}Cd}{{{n{Ed}}{n{B`Cb}}}Cd}{{{n{Ef}}{n{B`Cb}}}Cd}{{{n{Eh}}{n{B`Cb}}}Cd}{{{n{Ej}}{n{B`Cb}}}Cd}{cc{}}0{EnCf}1{ChCj}2222{F`Eb}33333{{ClC`}Cl}`{{}c{}}000000000000``````{{{n{Ab}}Cl}El}{{{Cn{Aj}}Cj}Cf}{{{Cn{Aj}}Dn}Dl}{{{n{B`El}}}{{Db{c}}}{}}{nc{}}0000000000{nAd}0{c{{d{e}}}{}{}}00000000000{{}{{d{c}}}{}}00000000000{nDh}00000000000{{{n{Ab}}Cl}C`}`````{{FbC`}Fb}`{n{{n{c}}}{}}00{{{n{B`}}}{{n{B`c}}}{}}00{{{n{Fb}}}Fb}{{n{n{B`c}}}Bf{}}{nBf}{{}{{Fd{Ad}}}}{{}Fb}{{{Ff{c}}}{{d{eg}}}Fh{}{}}0{{{n{B`{Fd{c}}}}}{{d{eg}}}Fh{}{}}0000{{{Fd{c}}}cFh}{{{n{{Fd{c}}}}{n{B`Cb}}}CdFj}{{{n{Fb}}{n{B`Cb}}}Cd}{cc{}}00=`{{}c{}}00{{c{n{Fb}}}{{Fd{c}}}Fh}88{{{n{Fb}}{n{c}}}AdAf}{{{n{B`{Fd{c}}}}C`}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}{n{{l{j}}}}}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}Fl}{{d{eg}}}Fh{}{}}{{{n{B`{n{B`{Fd{c}}}}}}{n{e}}}{{d{Bfg}}}Fh{AfFn}{}}0{{{n{B`{Fd{c}}}}G`}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}Gb}{{d{eg}}}Fh{}{}}{{{n{B`{Ff{c}}}}{n{Ab}}{n{e}}}{{d{Bfg}}}Fh{AfFn}{}}3{{{n{B`{n{B`{Fd{c}}}}}}{n{Ab}}{n{e}}}{{d{Bfg}}}Fh{AfFn}{}}4{{{n{B`{Fd{c}}}}Gd}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}Gf}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}Gh}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}Gj}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}Gl}{{d{eg}}}Fh{}{}}{{{n{B`{Ff{c}}}}{n{e}}}{{d{Bfg}}}Fh{AfFn}{}}{{{n{B`{Fd{c}}}}{Db{Aj}}}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}{n{Ab}}{n{e}}}{{d{gi}}}Fh{AfFn}{}{}}{{{n{B`{Fd{c}}}}{n{Ab}}Gn{n{Ab}}{n{e}}}{{d{gi}}}Fh{AfFn}{}{}}{{{n{B`{Fd{c}}}}}{{d{eg}}}Fh{}{}}3{{{n{B`{Fd{c}}}}{n{e}}}{{d{gi}}}Fh{AfFn}{}{}}{{{n{B`{Fd{c}}}}{n{Ab}}}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}{n{Ab}}Aj}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}{n{Ab}}Gn{n{Ab}}Aj}{{d{eg}}}Fh{}{}}{{{n{Fb}}{n{c}}}{{Ah{j}}}Af}{{{n{Fb}}{n{c}}e}{{Al{Aj}}}AfAn}{{{n{B`{Fd{c}}}}Aj}{{d{eg}}}Fh{}{}}43{{{n{B`{Fd{c}}}}H`}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}Hb}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}Gn}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}Hd}{{d{eg}}}Fh{}{}}{{{n{B`{Fd{c}}}}j}{{d{eg}}}Fh{}{}}<:{{{n{B`{Fd{c}}}}{n{Ab}}Gn{n{Ab}}}{{d{eg}}}Fh{}{}}{{{n{B`{Ff{c}}}}{n{e}}}{{d{Bfg}}}Fh{AfFn}{}}{nc{}}{c{{d{e}}}{}{}}00{{}{{d{c}}}{}}00{nDh}00```````````````````````````````````````{HfGb}{Hf{{Db{Gd}}}}{Hf{{Db{Gf}}}}{Hf{{Db{Gh}}}}{Hf{{Db{Gj}}}}{Hf{{Db{Gl}}}}{Hf{{Db{Hh}}}}{Hf{{Db{H`}}}}{Hf{{Db{Hb}}}}{Hf{{Db{Gn}}}}{Hf{{Db{Hd}}}}{Hf{{Db{j}}}}{Hf{{Db{Aj}}}}{n{{n{c}}}{}}000000{{{n{B`}}}{{n{B`c}}}{}}000000{{{Hl{}{{Hj{c}}}}{Hl{}{{Hj{c}}}}}{{Db{{Hl{}{{Hj{c}}}}}}}Hl}00{{{n{Hn}}}Hn}{{{n{I`}}}I`}{{{n{Hf}}}Hf}{{{n{F`}}}F`}{{{n{Ib}}}Ib}{{{n{En}}}En}{{{n{Ch}}}Ch}{{n{n{B`c}}}Bf{}}000000{nBf}000000{{{n{Ib}}}Aj}{{{n{Hn}}{n{Hn}}}C`}{{{n{I`}}{n{I`}}}C`}{{{n{Hf}}{n{Hf}}}C`}{{{n{F`}}{n{F`}}}C`}{{{n{En}}{n{En}}}C`}{{{n{Ch}}{n{Ch}}}C`}{{{n{Hn}}{n{B`Cb}}}Cd}{{{n{I`}}{n{B`Cb}}}Cd}{{{n{Hf}}{n{B`Cb}}}Cd}{{{n{F`}}{n{B`Cb}}}Cd}{{{n{Ib}}{n{B`Cb}}}Cd}{{{n{En}}{n{B`Cb}}}Cd}0{{{n{Ch}}{n{B`Cb}}}Cd}0{cc{}}0{GlHf}{jHf}2{GjHf}{GhHf}{GnHf}{GfHf}{AjHf}{HdHf}{HbHf}{HhHf}::::{{{n{Ab}}}Ib}{{}c{}}0000000{{{Hl{}{{Hj{c}}}}}cHl}{HfC`}````3{{{Cn{Aj}}I`}Hn}{{{Cn{Aj}}Ch}En}{{{n{B`Ib}}}{{Db{c}}}{}}{nc{}}000000{nAd}0{c{{d{e}}}{}{}}00{Gd{{d{Hfc}}}{}}{H`{{d{Hfc}}}{}}2222{{}{{d{c}}}{}}000000{nDh}000000```````````````````````````````````````{{{n{Id}}}{{Db{{n{{l{j}}}}}}}}{{{n{Id}}}{{Db{Gb}}}}{{{n{Id}}}{{Db{Gd}}}}{{{n{Id}}}{{Db{Gf}}}}{{{n{Id}}}{{Db{Gh}}}}{{{n{Id}}}{{Db{Gj}}}}{{{n{Id}}}{{Db{Gl}}}}{{{n{Id}}}{{Db{Hh}}}}{{{n{Id}}}{{Db{{n{Ab}}}}}}{{{n{Id}}}{{Db{H`}}}}{{{n{Id}}}{{Db{Hb}}}}{{{n{Id}}}{{Db{Gn}}}}{{{n{Id}}}{{Db{Hd}}}}{{{n{Id}}}{{Db{j}}}}{{{n{Id}}}{{Db{Aj}}}}{n{{n{c}}}{}}000000{{{n{B`}}}{{n{B`c}}}{}}000000{{{n{Id}}}Id}{{{n{If}}}If}{{{n{Ih}}}Ih}{{{n{Ij}}}Ij}{{{n{Il}}}Il}{{n{n{B`c}}}Bf{}}0000{nBf}0000`{cInBh}{cJ`Bh}{{}Ij}{{}Il}{{{n{Id}}{n{Id}}}C`}{{{n{If}}{n{If}}}C`}{{{n{Ih}}{n{Ih}}}C`}{{{n{Ij}}{n{Ij}}}C`}{{{n{Il}}{n{Il}}}C`}{{{n{In}}{n{In}}}C`}{{{n{J`}}{n{J`}}}C`}{{{n{Id}}{n{B`Cb}}}Cd}0{{{n{If}}{n{B`Cb}}}Cd}{{{n{Ih}}{n{B`Cb}}}Cd}{{{n{Ij}}{n{B`Cb}}}Cd}{{{n{Il}}{n{B`Cb}}}Cd}{{{n{In}}{n{B`Cb}}}Cd}0{{{n{J`}}{n{B`Cb}}}Cd}0{cc{}}0000{JbIn}1{JdJ`}2{{{n{c}}}IdAf}{{{n{Ab}}}{{d{Idc}}}{}}{{{n{Ab}}Cl}{{d{IdCf}}}}{{}c{}}000000{IdId}{IfIf}{IhIh}{IjIj}{IlIl}`{{}Il}{{{n{Id}}}{{d{cJ`}}}A`}{nc{}}0000{nAd}00{c{{d{e}}}{}{}}000000{{}{{d{c}}}{}}000000{nDh}000000{{}Id}`````{{{n{B`{Jf{c}}}}}CdFh}0{{{n{B`{Jf{c}}}}{n{Ab}}}CdFh}01{n{{n{c}}}{}}0{{{n{B`}}}{{n{B`c}}}{}}0{{{n{Jh}}}Jh}{{n{n{B`c}}}Bf{}}{nBf}{{}{{Jf{Ad}}}}{{}Jh}{{{Jf{c}}}cFh}9{{{n{{Jf{c}}}}{n{B`Cb}}}CdFj}{{{n{Jh}}{n{B`Cb}}}Cd}{cc{}}0<{{}c{}}0{{c{n{Jh}}}{{Jf{c}}}Fh}{{{n{Jj}}{n{B`c}}}CdFh}{nc{}}{c{{d{e}}}{}{}}0{{}{{d{c}}}{}}0{nDh}0{{{n{B`{Jf{c}}}}{n{e}}}CdFh{JjFn}}{{{n{B`{Jf{c}}}}{n{Ab}}}CdFh}{{{n{B`{Jf{c}}}}{n{Id}}}CdFh}``","D":"Id","p":[[5,"Error",13],[6,"Result",851],[10,"Read",852],[10,"DeserializeOwned",853],[1,"u8"],[1,"slice"],[1,"reference"],[10,"Deserialize",853],[1,"str"],[5,"String",854],[10,"Serialize",855],[5,"Vec",856],[1,"usize"],[8,"Result",857],[10,"Write",852],[0,"mut"],[5,"DeserializerError",13],[6,"ErrorKind",13],[1,"unit"],[10,"Display",858],[5,"Deserializer",13],[10,"Visitor",853],[5,"SequenceDeserializer",13],[1,"bool"],[5,"Formatter",858],[8,"Result",858],[5,"Error",158],[6,"ErrorKind",474],[6,"ErrorKind",158],[5,"Config",158],[5,"Range",859],[10,"Into",860],[6,"Option",861],[6,"EnumVariantAccessor",13],[10,"DeserializeSeed",853],[5,"TypeId",862],[1,"tuple"],[5,"Event",158],[6,"EventKind",158],[5,"Name",158],[6,"Nested",158],[6,"NestedState",158],[6,"ListState",158],[6,"MapState",158],[6,"Primitive",158],[5,"Parser",158],[5,"Error",474],[6,"Balanced",474],[5,"Config",385],[5,"Serializer",385],[5,"MapSerializer",385],[10,"Write",858],[10,"Debug",858],[1,"char"],[10,"Sized",863],[1,"f32"],[1,"f64"],[1,"i128"],[1,"i16"],[1,"i32"],[1,"i64"],[1,"i8"],[1,"u32"],[1,"u128"],[1,"u16"],[1,"u64"],[6,"Integer",474],[1,"isize"],[17,"Larger"],[10,"Integral",474],[5,"Token",474],[6,"TokenKind",474],[5,"Tokenizer",474],[6,"Value",647],[5,"Named",647],[6,"StructContents",647],[5,"Map",647],[5,"List",647],[6,"ToValueError",647,864],[6,"FromValueError",647,864],[5,"TryFromIntError",865],[5,"Utf8Error",866],[5,"Writer",809],[6,"Config",809],[10,"Primitive",809],[15,"BeginNested",383],[8,"OwnedValue",647],[15,"Pretty",849]],"r":[[660,864],[681,864]],"b":[[97,"impl-Debug-for-Error"],[98,"impl-Display-for-Error"],[99,"impl-Debug-for-DeserializerError"],[100,"impl-Display-for-DeserializerError"],[101,"impl-Display-for-ErrorKind"],[102,"impl-Debug-for-ErrorKind"],[110,"impl-From%3CErrorKind%3E-for-ErrorKind"],[112,"impl-From%3CErrorKind%3E-for-ErrorKind"],[271,"impl-PartialEq-for-Name%3C\'s%3E"],[272,"impl-PartialEq%3Cstr%3E-for-Name%3C\'s%3E"],[273,"impl-PartialEq%3C%26str%3E-for-Name%3C\'s%3E"],[281,"impl-Display-for-Error"],[282,"impl-Debug-for-Error"],[283,"impl-Display-for-ErrorKind"],[284,"impl-Debug-for-ErrorKind"],[401,"impl-SerializeMap-for-MapSerializer%3C\'a,+\'config,+Output%3E"],[402,"impl-SerializeStruct-for-MapSerializer%3C\'a,+\'config,+Output%3E"],[403,"impl-SerializeStructVariant-for-%26mut+Serializer%3C\'config,+Output%3E"],[404,"impl-SerializeTupleStruct-for-%26mut+Serializer%3C\'config,+Output%3E"],[405,"impl-SerializeTupleVariant-for-%26mut+Serializer%3C\'config,+Output%3E"],[406,"impl-SerializeSeq-for-%26mut+Serializer%3C\'config,+Output%3E"],[407,"impl-SerializeTuple-for-%26mut+Serializer%3C\'config,+Output%3E"],[426,"impl-SerializeTuple-for-%26mut+Serializer%3C\'config,+Output%3E"],[427,"impl-SerializeSeq-for-%26mut+Serializer%3C\'config,+Output%3E"],[431,"impl-SerializeTupleVariant-for-%26mut+Serializer%3C\'config,+Output%3E"],[432,"impl-SerializeStructVariant-for-%26mut+Serializer%3C\'config,+Output%3E"],[433,"impl-SerializeTupleStruct-for-%26mut+Serializer%3C\'config,+Output%3E"],[575,"impl-Debug-for-Error"],[576,"impl-Display-for-Error"],[577,"impl-Display-for-ErrorKind"],[578,"impl-Debug-for-ErrorKind"],[581,"impl-From%3Ci8%3E-for-Integer"],[582,"impl-From%3Cu8%3E-for-Integer"],[584,"impl-From%3Ci64%3E-for-Integer"],[585,"impl-From%3Ci32%3E-for-Integer"],[586,"impl-From%3Cu32%3E-for-Integer"],[587,"impl-From%3Ci16%3E-for-Integer"],[588,"impl-From%3Cusize%3E-for-Integer"],[589,"impl-From%3Cu64%3E-for-Integer"],[590,"impl-From%3Cu16%3E-for-Integer"],[591,"impl-From%3Cisize%3E-for-Integer"],[627,"impl-TryFrom%3Ci128%3E-for-Integer"],[628,"impl-TryFrom%3Cu128%3E-for-Integer"],[742,"impl-Debug-for-Value%3C\'a%3E"],[743,"impl-Display-for-Value%3C\'a%3E"],[748,"impl-Debug-for-ToValueError"],[749,"impl-Display-for-ToValueError"],[750,"impl-Debug-for-FromValueError"],[751,"impl-Display-for-FromValueError"],[762,"impl-FromStr-for-Value%3C\'static%3E"],[763,"impl-Value%3C\'a%3E"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAAkDFgAAAGcAawAAAG4AAQBxAAAAeACtACgBAAAqAQAALwEAADUBAQBDAVgAnwEBAKQBnwBGAgEASQIHAFUCAABdApMA9gIAAPgCAAD6AgIABAM8AEMDAABGAw0A"}]]')); +var searchIndex = new Map(JSON.parse('[["rsn",{"t":"CHHHCCHHHHCCCFFFGPPPPPPPPPPPPPPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONNNNNNNNNNNNNNNNNNNNNNPPPPPFPFGFGPPPPPPPPPPFGFGPPPPPPNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOFFNONNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOGPPPPPPPPPPFGPPPGPPPPPPPPPPPFGFPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPPPPPPPPPPPPPGPPPPPPFFPPPPPFPPIPPGGPPPGNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPGPKFNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNNOO","n":["de","from_reader","from_slice","from_str","parser","ser","to_string","to_string_pretty","to_vec","to_writer","tokenizer","value","writer","Deserializer","DeserializerError","Error","ErrorKind","ExpectedBool","ExpectedBytes","ExpectedChar","ExpectedEnum","ExpectedFloat","ExpectedInteger","ExpectedMap","ExpectedMapStruct","ExpectedOption","ExpectedSequence","ExpectedString","ExpectedTupleStruct","ExpectedUnit","InvalidUtf8","Message","NameMismatch","Parser","SomeCanOnlyContainOneValue","borrow","","","","borrow_mut","","","","clone","","","clone_into","","","clone_to_uninit","","","custom","deserialize_any","deserialize_bool","deserialize_byte_buf","deserialize_bytes","deserialize_char","deserialize_enum","deserialize_f32","deserialize_f64","deserialize_i128","deserialize_i16","deserialize_i32","deserialize_i64","deserialize_i8","deserialize_identifier","deserialize_ignored_any","deserialize_map","deserialize_newtype_struct","deserialize_option","deserialize_seq","deserialize_str","deserialize_string","deserialize_struct","deserialize_tuple","deserialize_tuple_struct","deserialize_u128","deserialize_u16","deserialize_u32","deserialize_u64","deserialize_u8","deserialize_unit","deserialize_unit_struct","ensure_eof","eq","","","fmt","","","","","","from","","","","","","","","into","","","","kind","","location","","new","next_key_seed","next_value_seed","to_owned","","","to_string","","","try_from","","","","try_into","","","","type_id","","","","variant_seed","BeginNested","Bool","Bytes","Char","Comment","Config","EndNested","Error","ErrorKind","Event","EventKind","ExpectedColon","ExpectedCommaOrEnd","ExpectedKey","ExpectedMapOrTuple","ExpectedValue","Float","Identifier","Integer","List","Map","Name","Nested","Parser","Primitive","","String","Tokenizer","TrailingData","Tuple","UnexpectedEof","allow_implicit_map_at_root","","borrow","","","","","","","","","borrow_mut","","","","","","","","","clone","","","","","","","","clone_into","","","","","","","","clone_to_uninit","","","","","","","","current_offset","current_range","default","deref","deserialize","deserialize_from_reader","deserialize_from_slice","eq","","","","","","","","","fmt","","","","","","","","","","","from","","","","","","","","","","","","include_comments","","into","","","","","","","","","into_iter","kind","","location","","","name","new","next","to_owned","","","","","","","","to_string","","try_from","","","","","","","","","try_into","","","","","","","","","type_id","","","","","","","","","validate","kind","name","Config","Serializer","anonymous_structs","","borrow","","borrow_mut","","clone","clone_into","clone_to_uninit","default","","end","","","","","finish","fmt","","from","","implicit_map_at_root","","into","","new","","pretty","serialize","serialize_bool","serialize_bytes","serialize_char","serialize_element","","serialize_f32","serialize_f64","serialize_field","","","serialize_i128","serialize_i16","serialize_i32","serialize_i64","serialize_i8","serialize_map","serialize_newtype_struct","serialize_newtype_variant","serialize_none","serialize_seq","serialize_some","serialize_str","serialize_struct","serialize_struct_variant","serialize_to_vec","serialize_to_writer","serialize_tuple","serialize_tuple_struct","serialize_tuple_variant","serialize_u128","serialize_u16","serialize_u32","serialize_u64","serialize_u8","serialize_unit","serialize_unit_struct","serialize_unit_variant","to_owned","try_from","","try_into","","type_id","","writer","Balanced","Bool","Brace","Bracket","Byte","Bytes","Character","Close","Colon","Comma","Comment","Error","ErrorKind","ExpectedDigit","Float","Identifier","Integer","","IntegerTooLarge","InvalidAscii","InvalidFloat","InvalidUnicode","Isize","IsolatedCarriageReturn","Open","Paren","SignedLarge","String","Token","TokenKind","Tokenizer","Unexpected","UnexpectedEof","UnsignedLarge","Usize","Whitespace","as_f64","as_i128","as_i16","as_i32","as_i64","as_i8","as_isize","as_u128","as_u16","as_u32","as_u64","as_u8","as_usize","borrow","","","","","","","borrow_mut","","","","","","","clone","","","","","","","clone_into","","","","","","","clone_to_uninit","","","","","","","current_offset","eq","","","","","","fmt","","","","","","","","","from","","","","","","","","","","","","","","","","","full","into","","","","","","","into_iter","is_zero","kind","","location","","minified","next","to_owned","","","","","","","to_string","","try_from","","","","","","","","","try_into","","","","","","","type_id","","","","","","","Array","","Bool","","Byte","","Bytes","","Char","","Expected","Float","","FromValueError","Identifier","","Integer","","IntegerTooLarge","InvalidUtf8","List","Map","","","","Message","","Named","","","OwnedValue","String","","StructContents","ToValueError","Tuple","","","Value","as_bytes","as_f64","as_i128","as_i16","as_i32","as_i64","as_i8","as_isize","as_str","as_u128","as_u16","as_u32","as_u64","as_u8","as_usize","borrow","","","","","","","borrow_mut","","","","","","","clone","","","","","clone_into","","","","","clone_to_uninit","","","","","contents","custom","","default","","eq","","","","","","","fmt","","","","","","","","","","from","","","","","","","","","from_serialize","from_str","","into","","","","","","","into_owned","","","","","name","new","to_deserialize","to_owned","","","","","to_string","","","try_from","","","","","","","try_into","","","","","","","type_id","","","","","","","unit","Compact","Config","Pretty","Primitive","Writer","begin_list","begin_map","begin_named_map","begin_named_tuple","begin_tuple","borrow","","borrow_mut","","clone","clone_into","clone_to_uninit","default","","finish","finish_nested","fmt","","from","","insert_newline","into","","new","render_to","to_owned","try_from","","try_into","","type_id","","write_primitive","write_raw_value","write_value","indentation","newline"],"q":[[0,"rsn"],[13,"rsn::de"],[132,"rsn::parser"],[304,"rsn::parser::EventKind"],[306,"rsn::ser"],[382,"rsn::tokenizer"],[547,"rsn::value"],[709,"rsn::writer"],[749,"rsn::writer::Config"],[751,"core::result"],[752,"std::io"],[753,"serde::de"],[754,"alloc::string"],[755,"core::fmt"],[756,"serde::ser"],[757,"alloc::vec"],[758,"std::io::error"],[759,"core::option"],[760,"core::any"],[761,"core::ops::range"],[762,"core::marker"],[763,"rsn::value::serde"],[764,"core::num::error"],[765,"core::str::error"]],"i":"`````````````````Bf00000000000000000BlbBd3210310310310302222222222222222222222222222222210311003321100333210310102221031032103210321032DhDn001`1````Cj0000111Dl0````321101Cl0E`1Cf4Df7Dj573426180574261805742618057426180573340444261800057342266180573422661805574434261805732121003342618057263426180573426180573426180573Il0``Eh0Ej10111101000000010111010111000000000000000000000000110000000000010101011`H`Ef01111111``Ch22`20000Gj13203```110030000000000000Gn413HbEd42635104263510426351042635104126350426351004426333333333335104126351041320201126351040426333510426351042635104InHd10101010I`21`2121Hn1``32Hh12`43`43``430`3333333333333333Hf1HjHl4562310456231062310623102451062310456623104455623104455666623104562310206623106456231045623104562310456Ih`0``If00000101111010001010010Ij2121212111J`0","f":"`{c{{d{eb}}}fh}{{{n{{l{j}}}}}{{d{cb}}}A`}{{{n{Ab}}}{{d{cb}}}A`}``{{{n{c}}}{{d{AdAf}}}Ah}0{{{n{c}}}{{d{{Aj{j}}Af}}}Ah}{{{n{c}}e}{{An{Al}}}AhB`}`````````````````````````{n{{n{c}}}{}}000{{{n{Bb}}}{{n{Bbc}}}{}}000{{{n{b}}}b}{{{n{Bd}}}Bd}{{{n{Bf}}}Bf}{{n{n{Bbc}}}Bh{}}00{nBh}00{cBdBj}{{{n{BbBl}}c}{{d{e}}}Bn{}}0000{{{n{BbBl}}{n{Ab}}{n{{l{{n{Ab}}}}}}c}{{d{e}}}Bn{}}1111111111{{{n{BbBl}}{n{Ab}}c}{{d{e}}}Bn{}}22221{{{n{BbBl}}Alc}{{d{e}}}Bn{}}{{{n{BbBl}}{n{Ab}}Alc}{{d{e}}}Bn{}}4444442{Bl{{d{Bhb}}}}{{{n{b}}{n{b}}}C`}{{{n{Bd}}{n{Bd}}}C`}{{{n{Bf}}{n{Bf}}}C`}{{{n{b}}{n{BbCb}}}Cd}0{{{n{Bd}}{n{BbCb}}}Cd}0{{{n{Bf}}{n{BbCb}}}Cd}0{cc{}}{Cfb}1{CfBd}22{ChBf}{CjBf}{{}c{}}000````{{{n{Ab}}Cl}Bl}{{{n{BbBl}}c}{{d{Cne}}}D`{}}{{{n{BbBl}}c}{{d{e}}}D`{}}{nc{}}00{nAd}00{c{{d{e}}}{}{}}000{{}{{d{c}}}{}}000{nDb}000{{{n{BbBl}}c}{{d{{Dd{e}}g}}}D`{}{}}```````````````````````````````{{ClC`}Cl}`{n{{n{c}}}{}}00000000{{{n{Bb}}}{{n{Bbc}}}{}}00000000{{{n{Cl}}}Cl}{{{n{Cf}}}Cf}{{{n{Cj}}}Cj}{{{n{Df}}}Df}{{{n{Dh}}}Dh}{{{n{Dj}}}Dj}{{{n{Dl}}}Dl}{{{n{Dn}}}Dn}{{n{n{Bbc}}}Bh{}}0000000{nBh}0000000{{{n{E`}}}Al}{{{n{E`}}}{{Eb{Al}}}}{{}Cl}{{{n{Dj}}}{{n{c}}}{}}{{Cl{n{Ab}}}{{d{cb}}}A`}{{Clc}{{d{eb}}}fh}{{Cl{n{{l{j}}}}}{{d{cb}}}A`}{{{n{Cf}}{n{Cf}}}C`}{{{n{Cj}}{n{Cj}}}C`}{{{n{Df}}{n{Df}}}C`}{{{n{Dh}}{n{Dh}}}C`}{{{n{Dj}}{n{{n{Ab}}}}}C`}{{{n{Dj}}{n{Ab}}}C`}{{{n{Dj}}{n{Dj}}}C`}{{{n{Dl}}{n{Dl}}}C`}{{{n{Dn}}{n{Dn}}}C`}{{{n{E`}}{n{BbCb}}}Cd}{{{n{Cl}}{n{BbCb}}}Cd}{{{n{Cf}}{n{BbCb}}}Cd}0{{{n{Cj}}{n{BbCb}}}Cd}0{{{n{Df}}{n{BbCb}}}Cd}{{{n{Dh}}{n{BbCb}}}Cd}{{{n{Dj}}{n{BbCb}}}Cd}{{{n{Dl}}{n{BbCb}}}Cd}{{{n{Dn}}{n{BbCb}}}Cd}{cc{}}00{EdCf}{ChCj}2222{EfDl}33{{ClC`}Cl}`{{}c{}}000000000``````{{{n{Ab}}Cl}E`}{{{n{BbE`}}}{{Cn{c}}}{}}{nc{}}0000000{nAd}0{c{{d{e}}}{}{}}00000000{{}{{d{c}}}{}}00000000{nDb}00000000{{{n{Ab}}Cl}C`}````{{EhC`}Eh}`{n{{n{c}}}{}}0{{{n{Bb}}}{{n{Bbc}}}{}}0{{{n{Eh}}}Eh}{{n{n{Bbc}}}Bh{}}{nBh}{{}{{Ej{Ad}}}}{{}Eh}{{{n{Bb{Ej{c}}}}}{{d{eg}}}El{}{}}0000{{{Ej{c}}}cEl}{{{n{{Ej{c}}}}{n{BbCb}}}CdEn}{{{n{Eh}}{n{BbCb}}}Cd}{cc{}}0<`{{}c{}}0{{c{n{Eh}}}{{Ej{c}}}El}77{{{n{Eh}}{n{c}}}{{d{AdAf}}}Ah}{{{n{Bb{Ej{c}}}}C`}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}{n{{l{j}}}}}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}F`}{{d{eg}}}El{}{}}{{{n{Bb{n{Bb{Ej{c}}}}}}{n{e}}}{{d{Bhg}}}El{AhFb}{}}0{{{n{Bb{Ej{c}}}}Fd}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}Ff}{{d{eg}}}El{}{}}2{{{n{Bb{n{Bb{Ej{c}}}}}}{n{Ab}}{n{e}}}{{d{Bhg}}}El{AhFb}{}}3{{{n{Bb{Ej{c}}}}Fh}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}Fj}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}Fl}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}Fn}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}G`}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}{Cn{Al}}}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}{n{Ab}}{n{e}}}{{d{gi}}}El{AhFb}{}{}}{{{n{Bb{Ej{c}}}}{n{Ab}}Gb{n{Ab}}{n{e}}}{{d{gi}}}El{AhFb}{}{}}{{{n{Bb{Ej{c}}}}}{{d{eg}}}El{}{}}3{{{n{Bb{Ej{c}}}}{n{e}}}{{d{gi}}}El{AhFb}{}{}}{{{n{Bb{Ej{c}}}}{n{Ab}}}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}{n{Ab}}Al}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}{n{Ab}}Gb{n{Ab}}Al}{{d{eg}}}El{}{}}{{{n{Eh}}{n{c}}}{{d{{Aj{j}}Af}}}Ah}{{{n{Eh}}{n{c}}e}{{An{Al}}}AhB`}{{{n{Bb{Ej{c}}}}Al}{{d{eg}}}El{}{}}43{{{n{Bb{Ej{c}}}}Gd}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}Gf}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}Gb}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}Gh}{{d{eg}}}El{}{}}{{{n{Bb{Ej{c}}}}j}{{d{eg}}}El{}{}}<:{{{n{Bb{Ej{c}}}}{n{Ab}}Gb{n{Ab}}}{{d{eg}}}El{}{}}{nc{}}{c{{d{e}}}{}{}}0{{}{{d{c}}}{}}0{nDb}0`````````````````````````````````````{GjFf}{Gj{{Cn{Fh}}}}{Gj{{Cn{Fj}}}}{Gj{{Cn{Fl}}}}{Gj{{Cn{Fn}}}}{Gj{{Cn{G`}}}}{Gj{{Cn{Gl}}}}{Gj{{Cn{Gd}}}}{Gj{{Cn{Gf}}}}{Gj{{Cn{Gb}}}}{Gj{{Cn{Gh}}}}{Gj{{Cn{j}}}}{Gj{{Cn{Al}}}}{n{{n{c}}}{}}000000{{{n{Bb}}}{{n{Bbc}}}{}}000000{{{n{Gn}}}Gn}{{{n{H`}}}H`}{{{n{Gj}}}Gj}{{{n{Ef}}}Ef}{{{n{Hb}}}Hb}{{{n{Ed}}}Ed}{{{n{Ch}}}Ch}{{n{n{Bbc}}}Bh{}}000000{nBh}000000{{{n{Hb}}}Al}{{{n{Gn}}{n{Gn}}}C`}{{{n{H`}}{n{H`}}}C`}{{{n{Gj}}{n{Gj}}}C`}{{{n{Ef}}{n{Ef}}}C`}{{{n{Ed}}{n{Ed}}}C`}{{{n{Ch}}{n{Ch}}}C`}{{{n{Gn}}{n{BbCb}}}Cd}{{{n{H`}}{n{BbCb}}}Cd}{{{n{Gj}}{n{BbCb}}}Cd}{{{n{Ef}}{n{BbCb}}}Cd}{{{n{Hb}}{n{BbCb}}}Cd}{{{n{Ed}}{n{BbCb}}}Cd}0{{{n{Ch}}{n{BbCb}}}Cd}0{cc{}}0{GhGj}{AlGj}{FnGj}{GlGj}{jGj}{GfGj}{FjGj}{GbGj}8{FlGj}{G`Gj}::::{{{n{Ab}}}Hb}{{}c{}}0000000{GjC`}````2{{{n{BbHb}}}{{Cn{c}}}{}}{nc{}}000000{nAd}0{c{{d{e}}}{}{}}0{Gd{{d{Gjc}}}{}}1{Fh{{d{Gjc}}}{}}2222{{}{{d{c}}}{}}000000{nDb}000000```````````````````````````````````````{{{n{Hd}}}{{Cn{{n{{l{j}}}}}}}}{{{n{Hd}}}{{Cn{Ff}}}}{{{n{Hd}}}{{Cn{Fh}}}}{{{n{Hd}}}{{Cn{Fj}}}}{{{n{Hd}}}{{Cn{Fl}}}}{{{n{Hd}}}{{Cn{Fn}}}}{{{n{Hd}}}{{Cn{G`}}}}{{{n{Hd}}}{{Cn{Gl}}}}{{{n{Hd}}}{{Cn{{n{Ab}}}}}}{{{n{Hd}}}{{Cn{Gd}}}}{{{n{Hd}}}{{Cn{Gf}}}}{{{n{Hd}}}{{Cn{Gb}}}}{{{n{Hd}}}{{Cn{Gh}}}}{{{n{Hd}}}{{Cn{j}}}}{{{n{Hd}}}{{Cn{Al}}}}{n{{n{c}}}{}}000000{{{n{Bb}}}{{n{Bbc}}}{}}000000{{{n{Hd}}}Hd}{{{n{Hf}}}Hf}{{{n{Hh}}}Hh}{{{n{Hj}}}Hj}{{{n{Hl}}}Hl}{{n{n{Bbc}}}Bh{}}0000{nBh}0000`{cHnBj}{cI`Bj}{{}Hj}{{}Hl}{{{n{Hd}}{n{Hd}}}C`}{{{n{Hf}}{n{Hf}}}C`}{{{n{Hh}}{n{Hh}}}C`}{{{n{Hj}}{n{Hj}}}C`}{{{n{Hl}}{n{Hl}}}C`}{{{n{Hn}}{n{Hn}}}C`}{{{n{I`}}{n{I`}}}C`}{{{n{Hd}}{n{BbCb}}}Cd}0{{{n{Hf}}{n{BbCb}}}Cd}{{{n{Hh}}{n{BbCb}}}Cd}{{{n{Hj}}{n{BbCb}}}Cd}{{{n{Hl}}{n{BbCb}}}Cd}{{{n{Hn}}{n{BbCb}}}Cd}0{{{n{I`}}{n{BbCb}}}Cd}0{cc{}}0000{IbHn}11{IdI`}{{{n{c}}}{{d{HdHn}}}Ah}{{{n{Ab}}}{{d{Hdc}}}{}}{{{n{Ab}}Cl}{{d{HdCf}}}}{{}c{}}000000{HdHd}{HfHf}{HhHh}{HjHj}{HlHl}`{{}Hl}{{{n{Hd}}}{{d{cI`}}}A`}{nc{}}0000{nAd}00{c{{d{e}}}{}{}}000000{{}{{d{c}}}{}}000000{nDb}000000{{}Hd}`````{{{n{Bb{If{c}}}}}CdEl}0{{{n{Bb{If{c}}}}{n{Ab}}}CdEl}01{n{{n{c}}}{}}0{{{n{Bb}}}{{n{Bbc}}}{}}0{{{n{Ih}}}Ih}{{n{n{Bbc}}}Bh{}}{nBh}{{}{{If{Ad}}}}{{}Ih}{{{If{c}}}cEl}9{{{n{{If{c}}}}{n{BbCb}}}CdEn}{{{n{Ih}}{n{BbCb}}}Cd}{cc{}}0<{{}c{}}0{{c{n{Ih}}}{{If{c}}}El}{{{n{Ij}}{n{Bbc}}}CdEl}{nc{}}{c{{d{e}}}{}{}}0{{}{{d{c}}}{}}0{nDb}0{{{n{Bb{If{c}}}}{n{e}}}CdEl{IjFb}}{{{n{Bb{If{c}}}}{n{Ab}}}CdEl}{{{n{Bb{If{c}}}}{n{Hd}}}CdEl}``","D":"BFn","p":[[5,"Error",13],[6,"Result",751],[10,"Read",752],[10,"DeserializeOwned",753],[1,"u8"],[1,"slice"],[1,"reference"],[10,"Deserialize",753],[1,"str"],[5,"String",754],[5,"Error",755],[10,"Serialize",756],[5,"Vec",757],[1,"usize"],[8,"Result",758],[10,"Write",752],[0,"mut"],[5,"DeserializerError",13],[6,"ErrorKind",13],[1,"unit"],[10,"Display",755],[5,"Deserializer",13],[10,"Visitor",753],[1,"bool"],[5,"Formatter",755],[8,"Result",755],[5,"Error",132],[6,"ErrorKind",382],[6,"ErrorKind",132],[5,"Config",132],[6,"Option",759],[10,"DeserializeSeed",753],[5,"TypeId",760],[1,"tuple"],[5,"Event",132],[6,"EventKind",132],[5,"Name",132],[6,"Nested",132],[6,"Primitive",132],[5,"Parser",132],[5,"Range",761],[5,"Error",382],[6,"Balanced",382],[5,"Config",306],[5,"Serializer",306],[10,"Write",755],[10,"Debug",755],[1,"char"],[10,"Sized",762],[1,"f32"],[1,"f64"],[1,"i128"],[1,"i16"],[1,"i32"],[1,"i64"],[1,"i8"],[1,"u32"],[1,"u128"],[1,"u16"],[1,"u64"],[6,"Integer",382],[1,"isize"],[5,"Token",382],[6,"TokenKind",382],[5,"Tokenizer",382],[6,"Value",547],[5,"Named",547],[6,"StructContents",547],[5,"Map",547],[5,"List",547],[6,"ToValueError",547,763],[6,"FromValueError",547,763],[5,"TryFromIntError",764],[5,"Utf8Error",765],[5,"Writer",709],[6,"Config",709],[10,"Primitive",709],[15,"BeginNested",304],[8,"OwnedValue",547],[15,"Pretty",749]],"r":[[560,763],[581,763]],"b":[[88,"impl-Display-for-Error"],[89,"impl-Debug-for-Error"],[90,"impl-Debug-for-DeserializerError"],[91,"impl-Display-for-DeserializerError"],[92,"impl-Display-for-ErrorKind"],[93,"impl-Debug-for-ErrorKind"],[100,"impl-From%3CErrorKind%3E-for-ErrorKind"],[101,"impl-From%3CErrorKind%3E-for-ErrorKind"],[218,"impl-PartialEq%3C%26str%3E-for-Name%3C\'s%3E"],[219,"impl-PartialEq%3Cstr%3E-for-Name%3C\'s%3E"],[220,"impl-PartialEq-for-Name%3C\'s%3E"],[225,"impl-Display-for-Error"],[226,"impl-Debug-for-Error"],[227,"impl-Display-for-ErrorKind"],[228,"impl-Debug-for-ErrorKind"],[319,"impl-SerializeTupleStruct-for-%26mut+Serializer%3C\'config,+Output%3E"],[320,"impl-SerializeSeq-for-%26mut+Serializer%3C\'config,+Output%3E"],[321,"impl-SerializeTupleVariant-for-%26mut+Serializer%3C\'config,+Output%3E"],[322,"impl-SerializeTuple-for-%26mut+Serializer%3C\'config,+Output%3E"],[323,"impl-SerializeStructVariant-for-%26mut+Serializer%3C\'config,+Output%3E"],[340,"impl-SerializeSeq-for-%26mut+Serializer%3C\'config,+Output%3E"],[341,"impl-SerializeTuple-for-%26mut+Serializer%3C\'config,+Output%3E"],[344,"impl-SerializeTupleStruct-for-%26mut+Serializer%3C\'config,+Output%3E"],[345,"impl-SerializeStructVariant-for-%26mut+Serializer%3C\'config,+Output%3E"],[346,"impl-SerializeTupleVariant-for-%26mut+Serializer%3C\'config,+Output%3E"],[478,"impl-Debug-for-Error"],[479,"impl-Display-for-Error"],[480,"impl-Display-for-ErrorKind"],[481,"impl-Debug-for-ErrorKind"],[484,"impl-From%3Cu64%3E-for-Integer"],[485,"impl-From%3Cusize%3E-for-Integer"],[486,"impl-From%3Ci64%3E-for-Integer"],[487,"impl-From%3Cisize%3E-for-Integer"],[488,"impl-From%3Cu8%3E-for-Integer"],[489,"impl-From%3Cu16%3E-for-Integer"],[490,"impl-From%3Ci16%3E-for-Integer"],[491,"impl-From%3Cu32%3E-for-Integer"],[493,"impl-From%3Ci32%3E-for-Integer"],[494,"impl-From%3Ci8%3E-for-Integer"],[526,"impl-TryFrom%3Cu128%3E-for-Integer"],[528,"impl-TryFrom%3Ci128%3E-for-Integer"],[642,"impl-Debug-for-Value%3C\'a%3E"],[643,"impl-Display-for-Value%3C\'a%3E"],[648,"impl-Debug-for-ToValueError"],[649,"impl-Display-for-ToValueError"],[650,"impl-Display-for-FromValueError"],[651,"impl-Debug-for-FromValueError"],[662,"impl-FromStr-for-Value%3C\'static%3E"],[663,"impl-Value%3C\'a%3E"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAALgBIAAkADAAVgAIAGAAAABiAAAAZQABAHAAFACmACkA0gABANcAEwDuAAEA9AAAAAIBAAAKASUANwENAEYBAQBSARcAbAERALABIgDUAQ4A5QEHAO4BAQD8AQAAAwIgAFoCHAB4AhQAkgIAAJUCAACXAgAAqAIcANACCADbAgEA5AIGAA=="}]]')); if (typeof exports !== 'undefined') exports.searchIndex = searchIndex; else if (window.initSearch) window.initSearch(searchIndex); -//{"start":39,"fragment_lengths":[19248]} \ No newline at end of file +//{"start":39,"fragment_lengths":[17431]} \ No newline at end of file diff --git a/main/search.desc/rsn/rsn-desc-0-.js b/main/search.desc/rsn/rsn-desc-0-.js index b47f6d6..d4cb265 100644 --- a/main/search.desc/rsn/rsn-desc-0-.js +++ b/main/search.desc/rsn/rsn-desc-0-.js @@ -1 +1 @@ -searchState.loadedDescShard("rsn", 0, "Returns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).") \ No newline at end of file +searchState.loadedDescShard("rsn", 0, "Rsn - Rusty Notation\nSerde deserialization support.\nDeserializes D from reader using the default Rsn Config.\nDeserializes D from slice using the default Rsn Config.\nDeserializes D from source using the default Rsn Config.\nParse data or a reader into a sequence of Rsn events.\nSerde serialization support.\nSerializes value into a String using the default Rsn Config…\nSerializes value into a String using Config::pretty().\nSerializes value into a Vec<u8> using the default Rsn …\nSerializes value into a writer using the default Rsn Config…\nParse data or a reader into a sequence of tokens.\nTypes for generically representing the parsed value from …\nTypes for writing Rsn.\nDeserializes Rsn using Serde.\nAn error that arose while deserializing Rsn.\nA deserialization error.\nThe kind of a deserialization error.\nA boolean literal was expected.\nA byte string literal was expected.\nA character literal was expected.\nAn enumerated value was expected.\nA floating point number was expected.\nAn integer was expected.\nA map was expected.\nA structure containing named fields was expected.\nAn option was expected.\nA sequence (list) was expected.\nA string literal was expected.\nA structure containing a tuple was expected.\nA unit type was expected.\nInvalid UTF-8 was encountered in the input or while …\nAn error from deserializing Serde.\nThe name of a type did not match what was expected.\nAn Rsn parsing error.\nSome(_) can only contain one value but more than one value …\nChecks that this deserializer has consumed all of the …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nThe kind of error that occurred.\nThe kind of error that occurred.\nThe offset of bytes in the source when the error occurred.\nThe location of the error, if available.\nReturns a deserializer for source with the given …\nA nested sequence of events has started.\nA boolean literal.\nA byte string literal.\nA character literal.\nA comment.\nThe configuration of a Parser.\nA nested sequence of events has concluded.\nAn error that arose while parsing Rsn events.\nA kind of error that arose while parsing Rsn events.\nA Rsn event from parsing Rsn.\nA kind of an event encountered when parsing Rsn.\nA : was expected.\nExpected a , or the end-variant of the specified Nested.\nA key in a map was expected.\nExpected either a map or a tuple.\nA value was expected.\nA floating point literal.\nAn identifier.\nAn integer literal.\nA sequence of values enclosed by square brackets.\nA sequence of key-value pairs enclosed by curly braces.\nA name/identifier.\nA kind of nestable types.\nParses input as a sequence of Events.\nA primitive literal.\nA primitive literal.\nA string literal.\nAn error occurred tokenizing the input.\nAdditional data was found after a complete value was …\nA sequence of values enclosed by parentheses.\nAn end-of-file error was encountered when data was still …\nSets Config::allow_implicit_map_at_root to allow and …\nAllows parsing an implicit map at the root of the Rsn …\nReturns the current byte offset of the parser.\nReturns the range between the start of the containing …\nDeserializes T from source using this configuration.\nDeserializes T from reader using this configuration.\nDeserializes T from source using this configuration.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSets Config::include_comments to include and returns self.\nWhen true, the parser will include EventKind::Comment …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nThe kind of error that occurred.\nThe kind of this event.\nThe byte range of this error.\nThe byte offset of the source that produced this event.\nThe byte range of the name in the source.\nThe name/identifier.\nReturns a parser that parses source using configuration.\nValidates that source would parse successfully using …\nThe type of nesting.\nThe name of this nested context, if encountered.\nThe configuration for a Serializer.\nA Serde serializer that generates Rsn.\nSets Config::anonymous_structs and returns self.\nWhether to include the names of structures in.\nFinishes writing to the output and returns the output.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSets Config::implicit_map_at_root and returns self.\nWhether a map-like type at the root of the document should …\nCalls U::from(self).\nCalls U::from(self).\nReturns a new serializer that writes to output using …\nReturns the default configuration.\nReturns the default configuration with nested indentation …\nReturns value serialized as Rsn with this configuration.\nReturns value serialized as Rsn with this configuration.\nSerializes value into writer using this configuration.\nThe writer configuration.\nA token kind that is expected to have a balanced number of …\nA boolean literal.\nCurly Braces\nSquare Brackets\nA byte literal.\nA byte string literal.\nA character literal.\nThe closing variant of a Balanced token.\nThe : character.\nThe , character.\nA comment\nAn error returned from a tokenizer.\nThe kind of an error returned from a tokenizer.\nA digit (0-9) was expected.\nA floating point literal.\nAn identifier (name).\nAn integer literal.\nAn integer literal.\nThe integer literal is too large to represent.\nAn invalid ASCII character was encountered.\nAn invalid floating point number was found.\nAn invalid unicode code point was encountered.\nA signed integer that fits within an isize.\nA carriage return without a corresponding \\n was …\nThe opening variant of a Balanced token.\nParentheses\nA signed integer that is too large to fit within an isize.\nA string literal.\nA token in an Rsn document.\nA kind of a token in an Rsn document.\nParses Rsn into a sequence of Tokens.\nAn unexpected character was found.\nThe end of input was encountered when additional data was …\nAn unsigned integer that is too large to fit within an …\nAn unsigned integer that fits within an usize.\nWhitespace between other tokens.\nReturns this number cast to an f64.\nReturns this integer as a i128 if the value can fit in a …\nReturns this integer as a i16 if the value can fit in a i16\nReturns this integer as a i32 if the value can fit in a i32\nReturns this integer as a i64 if the value can fit in a i64\nReturns this integer as a i8 if the value can fit in a i8\nReturns this integer as a isize if the value can fit in a …\nReturns this integer as a u128 if the value can fit in a …\nReturns this integer as a u16 if the value can fit in a u16\nReturns this integer as a u32 if the value can fit in a u32\nReturns this integer as a u64 if the value can fit in a u64\nReturns this integer as a u8 if the value can fit in a u8\nReturns this integer as a usize if the value can fit in a …\nReturns the current byte offset of the tokenizer.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns a tokenizer that includes whitespace and comments.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns true if this number is equal to 0.\nThe kind of this token.\nThe kind of error that occurred.\nThe byte range of this token.\nThe byte range of the error.\nReturns a tokenizer that ignores whitespace and comments.\nAn array of values.\nAn array of values.\nA boolean.\nA boolean.\nA byte.\nA byte.\nA byte string.\nA byte string.\nA character.\nA character.\nExpected a kind of data, but encountered another kind.\nA floating point number.\nA floating point number.\nAn error from deserializing from a Value.\nAn identifier (name).\nAn identifier (name).\nAn integer.\nAn integer.\nAn integer was too larget to represent.\nInvalid UTF-8 was encountered.\nA list of values.\nA list of key-value pairs.\nA collection of key-value pairs.\nA collection of key-value pairs.\nNamed fields, represented as a map.\nA custom serialization error.\nA custom serialization error.\nA named structure.\nA named structure.\nA named structure.\nA value with a static lifetime.\nA string.\nA string.\nThe contents of a structure.\nAn error from serializing to a Value.\nA tuple of values.\nA tuple of values.\nA tuple of valuees.\nA value representable by Rsn.\nReturns the underlying bytes for this value, if it can be …\nReturns this value as a floating point number.\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a str, if possible.\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nReturns this value as a $r#type if the value is an integer …\nThe contents of the structure.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a value by serializing value using Serde.\nParses source as a Value.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the owned version of self, copying any borrowed …\nReturns an owned representation of this name, copying to …\nReturns an owned representation, copying to the heap if …\nReturns an owned representation, copying to the heap if …\nReturns an owned representation, copying to the heap if …\nThe name of the structure.\nReturns an empty list.\nDeserializes self as D using Serde.\nReturns a value representing the unit type.\nRenders Rsn in its most compact representation.\nA writer configuration.\nRenders Rsn with indentation and line endings.\nA type that can be written as a primitive.q\nA low-level writer for the Rsn format.\nBegins a list/array. A corresponding call to finish_nested …\nBegins a map. A corresponding call to finish_nested must …\nBegins a named map. A corresponding call to finish_nested …\nBegins a named tuple. A corresponding call to finish_nested…\nBegins a tuple. A corresponding call to finish_nested must …\nFinishes writing and returns the output.\nFinishes the current nested value.\nReturns the argument unchanged.\nReturns the argument unchanged.\nInserts the configured newline character, if needed.\nCalls U::from(self).\nCalls U::from(self).\nReturns a writer that outputs to output using config.\nRenders this type to buffer.\nWrites a primitive value, formatting it as valid Rsn.\nWrites ident without any extra formatting.\nWrites a value.\nThe indentation to include for each level of nested data …\nThe newline character(s) to include when wrapping to a new …") \ No newline at end of file diff --git a/main/src/rsn/de.rs.html b/main/src/rsn/de.rs.html index af54928..295e219 100644 --- a/main/src/rsn/de.rs.html +++ b/main/src/rsn/de.rs.html @@ -1536,7 +1536,73 @@ 1535 1536 1537 -1538
use alloc::borrow::Cow;
+1538
+1539
+1540
+1541
+1542
+1543
+1544
+1545
+1546
+1547
+1548
+1549
+1550
+1551
+1552
+1553
+1554
+1555
+1556
+1557
+1558
+1559
+1560
+1561
+1562
+1563
+1564
+1565
+1566
+1567
+1568
+1569
+1570
+1571
+1572
+1573
+1574
+1575
+1576
+1577
+1578
+1579
+1580
+1581
+1582
+1583
+1584
+1585
+1586
+1587
+1588
+1589
+1590
+1591
+1592
+1593
+1594
+1595
+1596
+1597
+1598
+1599
+1600
+1601
+1602
+1603
+1604

use alloc::borrow::Cow;
 use alloc::string::{String, ToString};
 use core::fmt::Display;
 use core::ops::Range;
@@ -1547,7 +1613,8 @@
 use crate::parser::{self, Config, Event, EventKind, Name, Nested, Parser, Primitive};
 use crate::tokenizer::{self, Integer};
 
-pub struct Deserializer<'de> {
+/// Deserializes Rsn using Serde.
+pub struct Deserializer<'de> {
     parser: BetterPeekable<Parser<'de>>,
     newtype_state: Option<NewtypeState>,
 }
@@ -1559,19 +1626,29 @@
 }
 
 impl<'de> Deserializer<'de> {
-    #[must_use]
-    pub fn new(source: &'de str, config: Config) -> Self {
+    /// Returns a deserializer for `source` with the given `configuration`.
+    ///
+    /// `Config::include_comments` will always be disabled, regardless of the
+    /// value set in `configuration`.
+    #[must_use]
+    pub fn new(source: &'de str, configuration: Config) -> Self {
         Self {
-            parser: BetterPeekable::new(Parser::new(source, config.include_comments(false))),
+            parser: BetterPeekable::new(Parser::new(source, configuration.include_comments(false))),
             newtype_state: None,
         }
     }
 
-    pub fn ensure_eof(mut self) -> Result<(), Error> {
+    /// Checks that this deserializer has consumed all of the input.
+    ///
+    /// # Errors
+    ///
+    /// Returns [`parser::ErrorKind::TrailingData`] if there is any data left
+    /// unparsed.
+    pub fn ensure_eof(mut self) -> Result<(), Error> {
         match self.parser.next() {
             None => Ok(()),
             Some(Ok(event)) => Err(Error::new(event.location, parser::ErrorKind::TrailingData)),
-            Some(Err(err)) => Err(err.into()),
+            Some(Err(err)) => Err(Error::new(err.location, parser::ErrorKind::TrailingData)),
         }
     }
 
@@ -1735,7 +1812,7 @@
                             de.parser.next();
                             visitor.visit_unit()
                         } else {
-                            visitor.visit_seq(SequenceDeserializer::new(de))
+                            visitor.visit_seq(sealed::SequenceDeserializer::new(de))
                         }
                     }
                     Nested::Map => visitor.visit_map(de),
@@ -2038,7 +2115,7 @@
                     ));
                 }
 
-                de.with_error_context(|de| visitor.visit_seq(SequenceDeserializer::new(de)))
+                de.with_error_context(|de| visitor.visit_seq(sealed::SequenceDeserializer::new(de)))
             }
             Some(other) => Err(DeserializerError::new(
                 other.location,
@@ -2086,7 +2163,7 @@
                     // parsing the `)` easily, we need to "take over" by erasing the
                     // current newtype state.
                     de.parser.next();
-                    return visitor.visit_seq(SequenceDeserializer::new(de));
+                    return visitor.visit_seq(sealed::SequenceDeserializer::new(de));
                 }
             } else {
                 match de.parser.next().transpose()? {
@@ -2123,7 +2200,7 @@
                 }
             }
 
-            visitor.visit_seq(SequenceDeserializer::new(de))
+            visitor.visit_seq(sealed::SequenceDeserializer::new(de))
         })
     }
 
@@ -2298,450 +2375,462 @@
     }
 }
 
-pub struct SequenceDeserializer<'a, 'de> {
-    de: &'a mut Deserializer<'de>,
-    ended: bool,
-}
-impl<'a, 'de> SequenceDeserializer<'a, 'de> {
-    fn new(de: &'a mut Deserializer<'de>) -> Self {
-        Self { de, ended: false }
+mod sealed {
+    use super::{
+        parser, Deserializer, DeserializerError, EnumAccess, ErrorKind, Event, EventKind, Nested,
+        NewtypeState, Primitive, SeqAccess, VariantAccess,
+    };
+
+    pub struct SequenceDeserializer<'a, 'de> {
+        de: &'a mut Deserializer<'de>,
+        ended: bool,
+    }
+    impl<'a, 'de> SequenceDeserializer<'a, 'de> {
+        pub(crate) fn new(de: &'a mut Deserializer<'de>) -> Self {
+            Self { de, ended: false }
+        }
     }
-}
 
-impl<'a, 'de> SeqAccess<'de> for SequenceDeserializer<'a, 'de> {
-    type Error = DeserializerError;
+    impl<'a, 'de> SeqAccess<'de> for SequenceDeserializer<'a, 'de> {
+        type Error = DeserializerError;
 
-    fn next_element_seed<T>(&mut self, seed: T) -> Result<Option<T::Value>, Self::Error>
-    where
-        T: serde::de::DeserializeSeed<'de>,
-    {
-        self.de.with_error_context(|de| match de.parser.peek() {
-            Some(Ok(Event {
-                kind: EventKind::EndNested,
-                ..
-            })) => {
-                de.parser.next();
-                self.ended = true;
-                Ok(None)
-            }
-            Some(Ok(evt)) => {
-                let error_start = evt.location.start;
-                de.with_error_start(error_start, |de| seed.deserialize(de).map(Some))
-            }
-            Some(_) => seed.deserialize(de).map(Some),
-            None => Err(DeserializerError::new(
-                None,
-                parser::ErrorKind::UnexpectedEof,
-            )),
-        })
+        fn next_element_seed<T>(&mut self, seed: T) -> Result<Option<T::Value>, Self::Error>
+        where
+            T: serde::de::DeserializeSeed<'de>,
+        {
+            self.de.with_error_context(|de| match de.parser.peek() {
+                Some(Ok(Event {
+                    kind: EventKind::EndNested,
+                    ..
+                })) => {
+                    de.parser.next();
+                    self.ended = true;
+                    Ok(None)
+                }
+                Some(Ok(evt)) => {
+                    let error_start = evt.location.start;
+                    de.with_error_start(error_start, |de| seed.deserialize(de).map(Some))
+                }
+                Some(_) => seed.deserialize(de).map(Some),
+                None => Err(DeserializerError::new(
+                    None,
+                    parser::ErrorKind::UnexpectedEof,
+                )),
+            })
+        }
     }
-}
 
-impl<'a, 'de> Drop for SequenceDeserializer<'a, 'de> {
-    fn drop(&mut self) {
-        if !self.ended {
-            let mut levels = 1;
-            loop {
-                if matches!(self.de.parser.peek(), None | Some(Err(_))) {
-                    break;
-                }
+    impl<'a, 'de> Drop for SequenceDeserializer<'a, 'de> {
+        fn drop(&mut self) {
+            if !self.ended {
+                let mut levels = 1;
+                loop {
+                    if matches!(self.de.parser.peek(), None | Some(Err(_))) {
+                        break;
+                    }
 
-                match self.de.parser.next().expect("just peeked") {
-                    Ok(Event {
-                        kind: EventKind::EndNested,
-                        ..
-                    }) => {
-                        levels -= 1;
-                        if levels == 0 {
-                            break;
+                    match self.de.parser.next().expect("just peeked") {
+                        Ok(Event {
+                            kind: EventKind::EndNested,
+                            ..
+                        }) => {
+                            levels -= 1;
+                            if levels == 0 {
+                                break;
+                            }
                         }
+                        Ok(Event {
+                            kind: EventKind::BeginNested { .. },
+                            ..
+                        }) => {
+                            levels += 1;
+                        }
+                        _ => {}
                     }
-                    Ok(Event {
-                        kind: EventKind::BeginNested { .. },
-                        ..
-                    }) => {
-                        levels += 1;
-                    }
-                    _ => {}
                 }
             }
         }
     }
-}
 
-impl<'a, 'de> EnumAccess<'de> for &'a mut Deserializer<'de> {
-    type Error = DeserializerError;
-    type Variant = EnumVariantAccessor<'a, 'de>;
+    impl<'a, 'de> EnumAccess<'de> for &'a mut Deserializer<'de> {
+        type Error = DeserializerError;
+        type Variant = EnumVariantAccessor<'a, 'de>;
 
-    fn variant_seed<V>(self, seed: V) -> Result<(V::Value, Self::Variant), Self::Error>
-    where
-        V: serde::de::DeserializeSeed<'de>,
-    {
-        match self.parser.peek() {
-            Some(Ok(Event {
-                kind: EventKind::Primitive(Primitive::Identifier(_) | Primitive::String(_)),
-                ..
-            })) => Ok((seed.deserialize(&mut *self)?, EnumVariantAccessor::Unit)),
-            Some(Ok(Event {
-                kind:
-                    EventKind::BeginNested {
-                        name: Some(name), ..
-                    },
-                ..
-            })) => {
-                let variant = seed.deserialize(&mut VariantDeserializer(name))?;
-                Ok((variant, EnumVariantAccessor::Nested(self)))
+        fn variant_seed<V>(self, seed: V) -> Result<(V::Value, Self::Variant), Self::Error>
+        where
+            V: serde::de::DeserializeSeed<'de>,
+        {
+            match self.parser.peek() {
+                Some(Ok(Event {
+                    kind: EventKind::Primitive(Primitive::Identifier(_) | Primitive::String(_)),
+                    ..
+                })) => Ok((seed.deserialize(&mut *self)?, EnumVariantAccessor::Unit)),
+                Some(Ok(Event {
+                    kind:
+                        EventKind::BeginNested {
+                            name: Some(name), ..
+                        },
+                    ..
+                })) => {
+                    let variant = seed.deserialize(&mut VariantDeserializer(name))?;
+                    Ok((variant, EnumVariantAccessor::Nested(self)))
+                }
+                _ => Err(DeserializerError::new(None, ErrorKind::ExpectedEnum)),
             }
-            _ => Err(DeserializerError::new(None, ErrorKind::ExpectedEnum)),
-        }
-        // match &self.0 {
-        //     Value::Identifier(_) | Value::String(_) => {}
-        //     Value::Named(named) => {
-        //         let variant =
-        //             seed.deserialize(ValueDeserializer(&Value::String(named.name.clone())))?;
-
-        //         let accessor = match &named.contents {
-        //             StructContents::Map(map) => EnumVariantAccessor::Map(map),
-        //             StructContents::Tuple(list) => EnumVariantAccessor::Tuple(list),
-        //         };
-
-        //         Ok((variant, accessor))
-        //     }
-        //     _ => Err(FromValueError::Expected(ExpectedKind::Enum)),
-        // }
-    }
-}
+            // match &self.0 {
+            //     Value::Identifier(_) | Value::String(_) => {}
+            //     Value::Named(named) => {
+            //         let variant =
+            //             seed.deserialize(ValueDeserializer(&Value::String(named.name.clone())))?;
 
-struct VariantDeserializer<'a>(&'a str);
+            //         let accessor = match &named.contents {
+            //             StructContents::Map(map) => EnumVariantAccessor::Map(map),
+            //             StructContents::Tuple(list) => EnumVariantAccessor::Tuple(list),
+            //         };
 
-impl<'a, 'de> serde::Deserializer<'de> for &'a mut VariantDeserializer<'a> {
-    type Error = DeserializerError;
-
-    fn deserialize_any<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+            //         Ok((variant, accessor))
+            //     }
+            //     _ => Err(FromValueError::Expected(ExpectedKind::Enum)),
+            // }
+        }
     }
 
-    fn deserialize_bool<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+    struct VariantDeserializer<'a>(&'a str);
 
-    fn deserialize_i8<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+    impl<'a, 'de> serde::Deserializer<'de> for &'a mut VariantDeserializer<'a> {
+        type Error = DeserializerError;
 
-    fn deserialize_i16<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_any<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_i32<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_bool<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_i64<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_i8<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_u8<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_i16<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_u16<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_i32<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_u32<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_i64<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_u64<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_u8<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_f32<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_u16<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_f64<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_u32<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_char<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_u64<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_str<V>(self, visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        visitor.visit_str(self.0)
-    }
+        fn deserialize_f32<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_string<V>(self, visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        visitor.visit_str(self.0)
-    }
+        fn deserialize_f64<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_bytes<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_char<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_byte_buf<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_str<V>(self, visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            visitor.visit_str(self.0)
+        }
 
-    fn deserialize_option<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_string<V>(self, visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            visitor.visit_str(self.0)
+        }
 
-    fn deserialize_unit<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_bytes<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_unit_struct<V>(
-        self,
-        _name: &'static str,
-        _visitor: V,
-    ) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_byte_buf<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_newtype_struct<V>(
-        self,
-        _name: &'static str,
-        _visitor: V,
-    ) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_option<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_seq<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_unit<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_tuple<V>(self, _len: usize, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_unit_struct<V>(
+            self,
+            _name: &'static str,
+            _visitor: V,
+        ) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_tuple_struct<V>(
-        self,
-        _name: &'static str,
-        _len: usize,
-        _visitor: V,
-    ) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_newtype_struct<V>(
+            self,
+            _name: &'static str,
+            _visitor: V,
+        ) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_map<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_seq<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_struct<V>(
-        self,
-        _name: &'static str,
-        _fields: &'static [&'static str],
-        _visitor: V,
-    ) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_tuple<V>(self, _len: usize, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_enum<V>(
-        self,
-        _name: &'static str,
-        _variants: &'static [&'static str],
-        _visitor: V,
-    ) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
+        fn deserialize_tuple_struct<V>(
+            self,
+            _name: &'static str,
+            _len: usize,
+            _visitor: V,
+        ) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_identifier<V>(self, visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        visitor.visit_str(self.0)
-    }
+        fn deserialize_map<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-    fn deserialize_ignored_any<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
-    }
-}
+        fn deserialize_struct<V>(
+            self,
+            _name: &'static str,
+            _fields: &'static [&'static str],
+            _visitor: V,
+        ) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-pub enum EnumVariantAccessor<'a, 'de> {
-    Unit,
-    Nested(&'a mut Deserializer<'de>),
-}
+        fn deserialize_enum<V>(
+            self,
+            _name: &'static str,
+            _variants: &'static [&'static str],
+            _visitor: V,
+        ) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
 
-impl<'a, 'de> VariantAccess<'de> for EnumVariantAccessor<'a, 'de> {
-    type Error = DeserializerError;
+        fn deserialize_identifier<V>(self, visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            visitor.visit_str(self.0)
+        }
 
-    fn unit_variant(self) -> Result<(), Self::Error> {
-        Ok(())
+        fn deserialize_ignored_any<V>(self, _visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            Err(DeserializerError::new(None, ErrorKind::ExpectedEnum))
+        }
     }
 
-    fn newtype_variant_seed<T>(self, seed: T) -> Result<T::Value, Self::Error>
-    where
-        T: serde::de::DeserializeSeed<'de>,
-    {
-        if let EnumVariantAccessor::Nested(deserializer) = self {
-            let modification = match deserializer.parser.peek() {
-                Some(Ok(Event {
-                    kind:
-                        EventKind::BeginNested {
-                            kind: Nested::Tuple,
-                            ..
-                        },
-                    ..
-                })) => {
-                    let _begin = deserializer.parser.next();
-                    Some(deserializer.set_newtype_state(NewtypeState::TupleVariant))
-                }
-                Some(Ok(Event {
-                    kind:
-                        EventKind::BeginNested {
-                            kind: Nested::Map, ..
-                        },
-                    ..
-                })) => Some(deserializer.set_newtype_state(NewtypeState::StructVariant)),
-                _ => None,
-            };
-            let result = deserializer.with_error_context(|de| seed.deserialize(&mut *de))?;
-            if let Some(modification) = modification {
-                if deserializer.finish_newtype(modification) == Some(NewtypeState::TupleVariant) {
-                    // SequenceDeserializer has a loop in its drop to eat the
-                    // remaining events until the end
-                    drop(SequenceDeserializer::new(&mut *deserializer));
+    pub enum EnumVariantAccessor<'a, 'de> {
+        Unit,
+        Nested(&'a mut Deserializer<'de>),
+    }
+
+    impl<'a, 'de> VariantAccess<'de> for EnumVariantAccessor<'a, 'de> {
+        type Error = DeserializerError;
+
+        fn unit_variant(self) -> Result<(), Self::Error> {
+            Ok(())
+        }
+
+        fn newtype_variant_seed<T>(self, seed: T) -> Result<T::Value, Self::Error>
+        where
+            T: serde::de::DeserializeSeed<'de>,
+        {
+            if let EnumVariantAccessor::Nested(deserializer) = self {
+                let modification = match deserializer.parser.peek() {
+                    Some(Ok(Event {
+                        kind:
+                            EventKind::BeginNested {
+                                kind: Nested::Tuple,
+                                ..
+                            },
+                        ..
+                    })) => {
+                        let _begin = deserializer.parser.next();
+                        Some(deserializer.set_newtype_state(NewtypeState::TupleVariant))
+                    }
+                    Some(Ok(Event {
+                        kind:
+                            EventKind::BeginNested {
+                                kind: Nested::Map, ..
+                            },
+                        ..
+                    })) => Some(deserializer.set_newtype_state(NewtypeState::StructVariant)),
+                    _ => None,
+                };
+                let result = deserializer.with_error_context(|de| seed.deserialize(&mut *de))?;
+                if let Some(modification) = modification {
+                    if deserializer.finish_newtype(modification) == Some(NewtypeState::TupleVariant)
+                    {
+                        // SequenceDeserializer has a loop in its drop to eat the
+                        // remaining events until the end
+                        drop(SequenceDeserializer::new(&mut *deserializer));
+                    }
                 }
-            }
 
-            Ok(result)
-        } else {
-            Err(DeserializerError::new(None, ErrorKind::ExpectedTupleStruct))
+                Ok(result)
+            } else {
+                Err(DeserializerError::new(None, ErrorKind::ExpectedTupleStruct))
+            }
         }
-    }
 
-    fn tuple_variant<V>(self, _len: usize, visitor: V) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        if let EnumVariantAccessor::Nested(deserializer) = self {
-            let nested_event = deserializer
-                .parser
-                .next()
-                .expect("variant access matched Nested")?;
-            deserializer.with_error_start(nested_event.location.start, |de| {
-                visitor.visit_seq(SequenceDeserializer::new(de))
-            })
-        } else {
-            Err(DeserializerError::new(None, ErrorKind::ExpectedTupleStruct))
+        fn tuple_variant<V>(self, _len: usize, visitor: V) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            if let EnumVariantAccessor::Nested(deserializer) = self {
+                let nested_event = deserializer
+                    .parser
+                    .next()
+                    .expect("variant access matched Nested")?;
+                deserializer.with_error_start(nested_event.location.start, |de| {
+                    visitor.visit_seq(SequenceDeserializer::new(de))
+                })
+            } else {
+                Err(DeserializerError::new(None, ErrorKind::ExpectedTupleStruct))
+            }
         }
-    }
 
-    fn struct_variant<V>(
-        self,
-        _fields: &'static [&'static str],
-        visitor: V,
-    ) -> Result<V::Value, Self::Error>
-    where
-        V: serde::de::Visitor<'de>,
-    {
-        if let EnumVariantAccessor::Nested(deserializer) = self {
-            let nested_event = deserializer
-                .parser
-                .next()
-                .expect("variant access matched Nested")?;
-            deserializer.with_error_start(nested_event.location.start, |de| visitor.visit_map(de))
-        } else {
-            Err(DeserializerError::new(None, ErrorKind::ExpectedTupleStruct))
+        fn struct_variant<V>(
+            self,
+            _fields: &'static [&'static str],
+            visitor: V,
+        ) -> Result<V::Value, Self::Error>
+        where
+            V: serde::de::Visitor<'de>,
+        {
+            if let EnumVariantAccessor::Nested(deserializer) = self {
+                let nested_event = deserializer
+                    .parser
+                    .next()
+                    .expect("variant access matched Nested")?;
+                deserializer
+                    .with_error_start(nested_event.location.start, |de| visitor.visit_map(de))
+            } else {
+                Err(DeserializerError::new(None, ErrorKind::ExpectedTupleStruct))
+            }
         }
     }
 }
 
-#[derive(Debug, Clone, PartialEq)]
+/// A deserialization error.
+#[derive(Debug, Clone, PartialEq)]
 pub struct Error {
-    pub location: Range<usize>,
-    pub kind: ErrorKind,
+    /// The offset of bytes in the source when the error occurred.
+    pub location: Range<usize>,
+    /// The kind of error that occurred.
+    pub kind: ErrorKind,
 }
 
 impl Error {
-    pub fn new(location: Range<usize>, kind: impl Into<ErrorKind>) -> Self {
+    fn new(location: Range<usize>, kind: impl Into<ErrorKind>) -> Self {
         Self {
             location,
             kind: kind.into(),
@@ -2769,14 +2858,17 @@
     }
 }
 
-#[derive(Debug, Clone, PartialEq)]
+/// An error that arose while deserializing Rsn.
+#[derive(Debug, Clone, PartialEq)]
 pub struct DeserializerError {
-    pub location: Option<Range<usize>>,
-    pub kind: ErrorKind,
+    /// The location of the error, if available.
+    pub location: Option<Range<usize>>,
+    /// The kind of error that occurred.
+    pub kind: ErrorKind,
 }
 
 impl DeserializerError {
-    pub fn new(location: impl Into<Option<Range<usize>>>, kind: impl Into<ErrorKind>) -> Self {
+    fn new(location: impl Into<Option<Range<usize>>>, kind: impl Into<ErrorKind>) -> Self {
         Self {
             location: location.into(),
             kind: kind.into(),
@@ -2817,26 +2909,50 @@
     }
 }
 
-#[derive(Debug, Clone, PartialEq)]
+/// The kind of a deserialization error.
+#[derive(Debug, Clone, PartialEq)]
+#[non_exhaustive]
 pub enum ErrorKind {
-    ExpectedInteger,
-    ExpectedFloat,
-    ExpectedUnit,
-    ExpectedBool,
-    ExpectedOption,
-    ExpectedChar,
-    ExpectedString,
-    ExpectedBytes,
-    ExpectedSequence,
-    ExpectedMap,
-    ExpectedTupleStruct,
-    ExpectedMapStruct,
-    ExpectedEnum,
-    InvalidUtf8,
-    NameMismatch(&'static str),
-    SomeCanOnlyContainOneValue,
-    Parser(parser::ErrorKind),
-    Message(String),
+    /// An integer was expected.
+    ExpectedInteger,
+    /// A floating point number was expected.
+    ExpectedFloat,
+    /// A unit type was expected.
+    ExpectedUnit,
+    /// A boolean literal was expected.
+    ExpectedBool,
+    /// An option was expected.
+    ExpectedOption,
+    /// A character literal was expected.
+    ExpectedChar,
+    /// A string literal was expected.
+    ExpectedString,
+    /// A byte string literal was expected.
+    ExpectedBytes,
+    /// A sequence (list) was expected.
+    ExpectedSequence,
+    /// A map was expected.
+    ExpectedMap,
+    /// A structure containing a tuple was expected.
+    ExpectedTupleStruct,
+    /// A structure containing named fields was expected.
+    ExpectedMapStruct,
+    /// An enumerated value was expected.
+    ExpectedEnum,
+    /// Invalid UTF-8 was encountered in the input or while decoding escaped
+    /// characters.
+    InvalidUtf8,
+    /// The name of a type did not match what was expected.
+    ///
+    /// The `&str` parameter is the name that was expected.
+    NameMismatch(&'static str),
+    /// `Some(_)` can only contain one value but more than one value was
+    /// encountered.
+    SomeCanOnlyContainOneValue,
+    /// An Rsn parsing error.
+    Parser(parser::ErrorKind),
+    /// An error from deserializing Serde.
+    Message(String),
 }
 
 impl From<parser::ErrorKind> for ErrorKind {
@@ -2879,7 +2995,12 @@
 }
 
 impl Config {
-    pub fn deserialize<'de, T: Deserialize<'de>>(self, source: &'de str) -> Result<T, Error> {
+    /// Deserializes `T` from `source` using this configuration.
+    ///
+    /// # Errors
+    ///
+    /// Returns an error if `source` cannot be deserialized as `T`.
+    pub fn deserialize<'de, T: Deserialize<'de>>(self, source: &'de str) -> Result<T, Error> {
         let mut deserializer = Deserializer::new(source, self);
         let result = match T::deserialize(&mut deserializer) {
             Ok(result) => result,
@@ -2894,7 +3015,12 @@
         Ok(result)
     }
 
-    pub fn deserialize_from_slice<'de, T: Deserialize<'de>>(
+    /// Deserializes `T` from `source` using this configuration.
+    ///
+    /// # Errors
+    ///
+    /// Returns an error if `source` cannot be deserialized as `T`.
+    pub fn deserialize_from_slice<'de, T: Deserialize<'de>>(
         self,
         source: &'de [u8],
     ) -> Result<T, Error> {
@@ -2913,7 +3039,13 @@
         self.deserialize(source)
     }
 
-    #[cfg(feature = "std")]
+    /// Deserializes `T` from `reader` using this configuration.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors encountered while reading from `reader` or if
+    /// `reader` cannot be deserialized as `T`.
+    #[cfg(feature = "std")]
     pub fn deserialize_from_reader<T: DeserializeOwned, R: std::io::Read>(
         self,
         mut reader: R,
diff --git a/main/src/rsn/lib.rs.html b/main/src/rsn/lib.rs.html
index aa0f31d..530257d 100644
--- a/main/src/rsn/lib.rs.html
+++ b/main/src/rsn/lib.rs.html
@@ -60,10 +60,72 @@
 59
 60
 61
-62
#![no_std]
+62
+63
+64
+65
+66
+67
+68
+69
+70
+71
+72
+73
+74
+75
+76
+77
+78
+79
+80
+81
+82
+83
+84
+85
+86
+87
+88
+89
+90
+91
+92
+93
+94
+95
+96
+97
+98
+99
+100
+101
+102
+103
+104
+105
+106
+107
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118
+119
+120
+121
+122
+123
+124
#![no_std]
+#![doc = include_str!("../README.md")]
 #![warn(clippy::pedantic)]
-#![allow(missing_docs)]
-#![allow(clippy::missing_errors_doc, clippy::missing_panics_doc)]
+#![warn(missing_docs)]
 #![allow(clippy::module_name_repetitions)]
 
 extern crate alloc;
@@ -71,43 +133,95 @@
 #[cfg(feature = "std")]
 extern crate std;
 
-#[cfg(feature = "serde")]
+/// Serde deserialization support.
+#[cfg(feature = "serde")]
 pub mod de;
-pub mod parser;
-#[cfg(feature = "serde")]
+/// Parse data or a reader into a sequence of Rsn events.
+pub mod parser;
+/// Serde serialization support.
+#[cfg(feature = "serde")]
 pub mod ser;
-pub mod tokenizer;
-pub mod value;
-pub mod writer;
+/// Parse data or a reader into a sequence of tokens.
+pub mod tokenizer;
+/// Types for generically representing the parsed value from an Rsn document.
+pub mod value;
+/// Types for writing Rsn.
+pub mod writer;
 
-#[cfg(feature = "serde")]
+/// Deserializes `D` from `source` using the default Rsn
+/// [`Config`](parser::Config).
+///
+/// # Errors
+///
+/// Returns an error if `source` isn't valid Rsn or cannot be deserialized as
+/// `D`.
+#[cfg(feature = "serde")]
 pub fn from_str<'de, D: serde::Deserialize<'de>>(source: &'de str) -> Result<D, de::Error> {
     parser::Config::default().deserialize(source)
 }
 
-#[cfg(feature = "serde")]
+/// Deserializes `D` from `slice` using the default Rsn
+/// [`Config`](parser::Config).
+///
+/// # Errors
+///
+/// Returns an error if `slice` isn't valid Rsn or cannot be deserialized as
+/// `D`.
+#[cfg(feature = "serde")]
 pub fn from_slice<'de, D: serde::Deserialize<'de>>(source: &'de [u8]) -> Result<D, de::Error> {
     parser::Config::default().deserialize_from_slice(source)
 }
 
-#[cfg(all(feature = "serde", feature = "std"))]
+/// Deserializes `D` from `reader` using the default Rsn
+/// [`Config`](parser::Config).
+///
+/// # Errors
+///
+/// Returns an error if `reader` returns an error while reading, doesn't contain
+/// valid Rsn, or cannot be deserialized as `D`.
+#[cfg(all(feature = "serde", feature = "std"))]
 pub fn from_reader<D: serde::de::DeserializeOwned, R: std::io::Read>(
     reader: R,
 ) -> Result<D, de::Error> {
     parser::Config::default().deserialize_from_reader(reader)
 }
 
-#[cfg(feature = "serde")]
-pub fn to_string<S: serde::Serialize>(value: &S) -> alloc::string::String {
+/// Serializes `value` into a `String` using the default Rsn
+/// [`Config`](ser::Config).
+///
+/// # Errors
+///
+/// Rsn itself does not produce any errors while serializing values. This
+/// function will return errors that arise within `Serialize` implementations
+/// encountered while serializing `value`.
+#[cfg(feature = "serde")]
+pub fn to_string<S: serde::Serialize>(
+    value: &S,
+) -> Result<alloc::string::String, core::fmt::Error> {
     ser::Config::default().serialize(value)
 }
 
-#[cfg(feature = "serde")]
-pub fn to_vec<S: serde::Serialize>(value: &S) -> alloc::vec::Vec<u8> {
+/// Serializes `value` into a `Vec<u8>` using the default Rsn
+/// [`Config`](ser::Config).
+///
+/// # Errors
+///
+/// Rsn itself does not produce any errors while serializing values. This
+/// function will return errors that arise within `Serialize` implementations
+/// encountered while serializing `value`.
+#[cfg(feature = "serde")]
+pub fn to_vec<S: serde::Serialize>(value: &S) -> Result<alloc::vec::Vec<u8>, core::fmt::Error> {
     ser::Config::default().serialize_to_vec(value)
 }
 
-#[cfg(all(feature = "serde", feature = "std"))]
+/// Serializes `value` into a writer using the default Rsn
+/// [`Config`](ser::Config).
+///
+/// # Errors
+///
+/// Returns any errors occurring while serializing `value` or while writing to
+/// `writer`.
+#[cfg(all(feature = "serde", feature = "std"))]
 pub fn to_writer<S: serde::Serialize, W: std::io::Write>(
     value: &S,
     writer: W,
@@ -115,8 +229,18 @@
     ser::Config::default().serialize_to_writer(value, writer)
 }
 
-#[cfg(feature = "serde")]
-pub fn to_string_pretty<S: serde::Serialize>(value: &S) -> alloc::string::String {
+/// Serializes `value` into a `String` using
+/// [`Config::pretty()`](ser::Config::pretty()).
+///
+/// # Errors
+///
+/// Rsn itself does not produce any errors while serializing values. This
+/// function will return errors that arise within `Serialize` implementations
+/// encountered while serializing `value`.
+#[cfg(feature = "serde")]
+pub fn to_string_pretty<S: serde::Serialize>(
+    value: &S,
+) -> Result<alloc::string::String, core::fmt::Error> {
     ser::Config::pretty().serialize(value)
 }
 
diff --git a/main/src/rsn/parser.rs.html b/main/src/rsn/parser.rs.html
index dcb59f1..1e66d28 100644
--- a/main/src/rsn/parser.rs.html
+++ b/main/src/rsn/parser.rs.html
@@ -970,7 +970,91 @@
 969
 970
 971
-972

use alloc::borrow::Cow;
+972
+973
+974
+975
+976
+977
+978
+979
+980
+981
+982
+983
+984
+985
+986
+987
+988
+989
+990
+991
+992
+993
+994
+995
+996
+997
+998
+999
+1000
+1001
+1002
+1003
+1004
+1005
+1006
+1007
+1008
+1009
+1010
+1011
+1012
+1013
+1014
+1015
+1016
+1017
+1018
+1019
+1020
+1021
+1022
+1023
+1024
+1025
+1026
+1027
+1028
+1029
+1030
+1031
+1032
+1033
+1034
+1035
+1036
+1037
+1038
+1039
+1040
+1041
+1042
+1043
+1044
+1045
+1046
+1047
+1048
+1049
+1050
+1051
+1052
+1053
+1054
+1055
+1056
use alloc::borrow::Cow;
 use alloc::vec::Vec;
 use core::fmt::{Display, Formatter};
 use core::mem;
@@ -978,7 +1062,8 @@
 
 use crate::tokenizer::{self, Balanced, Integer, Token, TokenKind, Tokenizer};
 
-#[derive(Debug)]
+/// Parses input as a sequence of [`Event`]s.
+#[derive(Debug)]
 pub struct Parser<'s> {
     tokens: Tokenizer<'s, false>,
     peeked: Option<Result<Token<'s>, tokenizer::Error>>,
@@ -988,28 +1073,33 @@
 }
 
 impl<'s> Parser<'s> {
-    #[must_use]
-    pub fn new(source: &'s str, config: Config) -> Self {
+    /// Returns a parser that parses `source` using `configuration`.
+    #[must_use]
+    pub fn new(source: &'s str, configuration: Config) -> Self {
         Self {
             tokens: Tokenizer::minified(source),
             peeked: None,
             nested: Vec::new(),
             root_state: State::AtStart,
-            config,
+            config: configuration,
         }
     }
 
-    #[must_use]
-    pub fn validate(source: &'s str, config: Config) -> bool {
-        Self::new(source, config).all(|result| result.is_ok())
+    /// Validates that `source` would parse successfully using `configuration`.
+    #[must_use]
+    pub fn validate(source: &'s str, configuration: Config) -> bool {
+        Self::new(source, configuration).all(|result| result.is_ok())
     }
 
-    #[must_use]
+    /// Returns the current byte offset of the parser.
+    #[must_use]
     pub const fn current_offset(&self) -> usize {
         self.tokens.current_offset()
     }
 
-    #[must_use]
+    /// Returns the range between the start of the containing nested event and
+    /// the current byte offset of the parser.
+    #[must_use]
     pub fn current_range(&self) -> Range<usize> {
         let start = self.nested.last().map_or(0, |(offset, _)| *offset);
         start..self.tokens.current_offset()
@@ -1088,7 +1178,7 @@
             TokenKind::Open(Balanced::Paren) => {
                 self.nested.push((
                     token.location.start,
-                    NestedState::Tuple(ListState::ExpectingValue),
+                    NestedState::Tuple(ListStateExpecting::Value),
                 ));
                 Ok(Event::new(
                     token.location,
@@ -1101,7 +1191,7 @@
             TokenKind::Open(Balanced::Bracket) => {
                 self.nested.push((
                     token.location.start,
-                    NestedState::List(ListState::ExpectingValue),
+                    NestedState::List(ListStateExpecting::Value),
                 ));
                 Ok(Event::new(
                     token.location,
@@ -1114,7 +1204,7 @@
             TokenKind::Open(Balanced::Brace) => {
                 self.nested.push((
                     token.location.start,
-                    NestedState::Map(MapState::ExpectingKey),
+                    NestedState::Map(MapStateExpecting::Key),
                 ));
                 Ok(Event::new(
                     token.location,
@@ -1158,14 +1248,14 @@
                 Balanced::Paren => {
                     self.nested.push((
                         open_location.start,
-                        NestedState::Tuple(ListState::ExpectingValue),
+                        NestedState::Tuple(ListStateExpecting::Value),
                     ));
                     Nested::Tuple
                 }
                 Balanced::Brace => {
                     self.nested.push((
                         open_location.start,
-                        NestedState::Map(MapState::ExpectingKey),
+                        NestedState::Map(MapStateExpecting::Key),
                     ));
                     Nested::Map
                 }
@@ -1201,27 +1291,31 @@
         }
     }
 
-    fn parse_sequence(&mut self, state: ListState, end: Balanced) -> Result<Event<'s>, Error> {
+    fn parse_sequence(
+        &mut self,
+        state: ListStateExpecting,
+        end: Balanced,
+    ) -> Result<Event<'s>, Error> {
         match state {
-            ListState::ExpectingValue => {
+            ListStateExpecting::Value => {
                 let token = self.next_or_eof()?;
                 if let TokenKind::Comment(comment) = &token.kind {
                     Ok(Event::new(token.location, EventKind::Comment(comment)))
                 } else {
                     self.nested.last_mut().expect("required for this fn").1 =
-                        NestedState::list(end, ListState::ExpectingComma);
+                        NestedState::list(end, ListStateExpecting::Comma);
                     self.parse_token(token, Some(end))
                 }
             }
-            ListState::ExpectingComma => match self.next_token_parts()? {
+            ListStateExpecting::Comma => match self.next_token_parts()? {
                 (location, Some(TokenKind::Close(closed))) if closed == end => {
                     self.nested.pop();
                     Ok(Event::new(location, EventKind::EndNested))
                 }
                 (_, Some(TokenKind::Comma)) => {
                     self.nested.last_mut().expect("required for this fn").1 =
-                        NestedState::list(end, ListState::ExpectingValue);
-                    self.parse_sequence(ListState::ExpectingValue, end)
+                        NestedState::list(end, ListStateExpecting::Value);
+                    self.parse_sequence(ListStateExpecting::Value, end)
                 }
                 (location, Some(TokenKind::Comment(comment))) => {
                     Ok(Event::new(location, EventKind::Comment(comment)))
@@ -1234,22 +1328,22 @@
         }
     }
 
-    fn map_state_mut(&mut self) -> &mut MapState {
+    fn map_state_mut(&mut self) -> &mut MapStateExpecting {
         let Some((_, NestedState::Map(map_state))) = self.nested.last_mut() else {
             unreachable!("not a map state")
         };
         map_state
     }
 
-    fn parse_map(&mut self, state: MapState) -> Result<Event<'s>, Error> {
+    fn parse_map(&mut self, state: MapStateExpecting) -> Result<Event<'s>, Error> {
         match state {
-            MapState::ExpectingKey => match self.next_token().transpose()? {
+            MapStateExpecting::Key => match self.next_token().transpose()? {
                 Some(Token {
                     kind: TokenKind::Comment(comment),
                     location,
                 }) => Ok(Event::new(location, EventKind::Comment(comment))),
                 Some(token) => {
-                    *self.map_state_mut() = MapState::ExpectingColon;
+                    *self.map_state_mut() = MapStateExpecting::Colon;
                     self.parse_token(token, Some(Balanced::Brace))
                 }
                 None => Err(Error::new(
@@ -1257,23 +1351,23 @@
                     ErrorKind::ExpectedKey,
                 )),
             },
-            MapState::ExpectingColon => match self.next_token_parts()? {
+            MapStateExpecting::Colon => match self.next_token_parts()? {
                 (_, Some(TokenKind::Colon)) => {
-                    *self.map_state_mut() = MapState::ExpectingValue;
-                    self.parse_map(MapState::ExpectingValue)
+                    *self.map_state_mut() = MapStateExpecting::Value;
+                    self.parse_map(MapStateExpecting::Value)
                 }
                 (location, Some(TokenKind::Comment(comment))) => {
                     Ok(Event::new(location, EventKind::Comment(comment)))
                 }
                 (location, _) => Err(Error::new(location, ErrorKind::ExpectedColon)),
             },
-            MapState::ExpectingValue => match self.next_token().transpose()? {
+            MapStateExpecting::Value => match self.next_token().transpose()? {
                 Some(Token {
                     kind: TokenKind::Comment(comment),
                     location,
                 }) => Ok(Event::new(location, EventKind::Comment(comment))),
                 Some(token) => {
-                    *self.map_state_mut() = MapState::ExpectingComma;
+                    *self.map_state_mut() = MapStateExpecting::Comma;
                     self.parse_token(token, None)
                 }
                 None => Err(Error::new(
@@ -1281,14 +1375,14 @@
                     ErrorKind::ExpectedValue,
                 )),
             },
-            MapState::ExpectingComma => match self.next_token_parts()? {
+            MapStateExpecting::Comma => match self.next_token_parts()? {
                 (location, Some(TokenKind::Close(Balanced::Brace))) => {
                     self.nested.pop();
                     Ok(Event::new(location, EventKind::EndNested))
                 }
                 (_, Some(TokenKind::Comma)) => {
-                    *self.map_state_mut() = MapState::ExpectingKey;
-                    self.parse_map(MapState::ExpectingKey)
+                    *self.map_state_mut() = MapStateExpecting::Key;
+                    self.parse_map(MapStateExpecting::Key)
                 }
                 (location, Some(TokenKind::Comment(comment))) => {
                     Ok(Event::new(location, EventKind::Comment(comment)))
@@ -1301,9 +1395,9 @@
         }
     }
 
-    fn parse_implicit_map(&mut self, state: MapState) -> Result<Event<'s>, Error> {
+    fn parse_implicit_map(&mut self, state: MapStateExpecting) -> Result<Event<'s>, Error> {
         match state {
-            MapState::ExpectingKey => match self.next_token().transpose()? {
+            MapStateExpecting::Key => match self.next_token().transpose()? {
                 Some(Token {
                     location,
                     kind: TokenKind::Comment(comment),
@@ -1313,7 +1407,7 @@
                         kind: EventKind::Primitive(primitive),
                         location,
                     } => {
-                        self.root_state = State::ImplicitMap(MapState::ExpectingColon);
+                        self.root_state = State::ImplicitMap(MapStateExpecting::Colon);
                         Ok(Event::new(location, EventKind::Primitive(primitive)))
                     }
                     Event { location, .. } => Err(Error::new(location, ErrorKind::ExpectedKey)),
@@ -1323,23 +1417,23 @@
                     Ok(Event::new(self.current_range(), EventKind::EndNested))
                 }
             },
-            MapState::ExpectingColon => match self.next_token_parts()? {
+            MapStateExpecting::Colon => match self.next_token_parts()? {
                 (_, Some(TokenKind::Colon)) => {
-                    self.root_state = State::ImplicitMap(MapState::ExpectingValue);
-                    self.parse_implicit_map(MapState::ExpectingValue)
+                    self.root_state = State::ImplicitMap(MapStateExpecting::Value);
+                    self.parse_implicit_map(MapStateExpecting::Value)
                 }
                 (location, Some(TokenKind::Comment(comment))) => {
                     Ok(Event::new(location, EventKind::Comment(comment)))
                 }
                 (location, _) => Err(Error::new(location, ErrorKind::ExpectedColon)),
             },
-            MapState::ExpectingValue => match self.next_token().transpose()? {
+            MapStateExpecting::Value => match self.next_token().transpose()? {
                 Some(Token {
                     kind: TokenKind::Comment(comment),
                     location,
                 }) => Ok(Event::new(location, EventKind::Comment(comment))),
                 Some(token) => {
-                    self.root_state = State::ImplicitMap(MapState::ExpectingComma);
+                    self.root_state = State::ImplicitMap(MapStateExpecting::Comma);
                     self.parse_token(token, None)
                 }
                 None => Err(Error::new(
@@ -1347,7 +1441,7 @@
                     ErrorKind::ExpectedValue,
                 )),
             },
-            MapState::ExpectingComma => match self.next_token().transpose()? {
+            MapStateExpecting::Comma => match self.next_token().transpose()? {
                 Some(Token {
                     location,
                     kind: TokenKind::Comment(comment),
@@ -1363,11 +1457,11 @@
                     kind: TokenKind::Comma,
                     ..
                 }) => {
-                    self.root_state = State::ImplicitMap(MapState::ExpectingKey);
-                    self.parse_implicit_map(MapState::ExpectingKey)
+                    self.root_state = State::ImplicitMap(MapStateExpecting::Key);
+                    self.parse_implicit_map(MapStateExpecting::Key)
                 }
                 Some(token) => {
-                    self.root_state = State::ImplicitMap(MapState::ExpectingColon);
+                    self.root_state = State::ImplicitMap(MapStateExpecting::Colon);
                     match self.parse_token(token, None)? {
                         Event {
                             location,
@@ -1428,7 +1522,7 @@
                 State::StartingImplicitMap(_) => {
                     let State::StartingImplicitMap(event) = mem::replace(
                         &mut self.root_state,
-                        State::ImplicitMap(MapState::ExpectingColon),
+                        State::ImplicitMap(MapStateExpecting::Colon),
                     ) else {
                         unreachable!("just matched")
                     };
@@ -1477,21 +1571,47 @@
     }
 }
 
-#[derive(Default, Debug, Clone, Copy)]
+/// The configuration of a [`Parser`].
+#[derive(Default, Debug, Clone, Copy)]
 #[non_exhaustive]
 pub struct Config {
-    pub allow_implicit_map_at_root: bool,
-    pub include_comments: bool,
+    /// Allows parsing an implicit map at the root of the Rsn document.
+    ///
+    /// Rsn allows root-level syntax that may be desirable when using it as a
+    /// configuration-like file format.
+    ///
+    /// Implicit map:
+    /// ```rsn
+    /// name: "John Doe"
+    /// age: 40
+    /// ```
+    ///
+    /// Normal map:
+    /// ```rsn
+    /// {
+    ///     name: "John Doe",
+    ///     age: 40,
+    /// }
+    /// ```
+    ///
+    /// When set to true, the parser will allow both implicit and explicit
+    /// syntaxes at the root of the document. When set to false, the parser will
+    /// only allow explicit maps.
+    pub allow_implicit_map_at_root: bool,
+    /// When true, the parser will include [`EventKind::Comment`] events.
+    pub include_comments: bool,
 }
 
 impl Config {
-    #[must_use]
+    /// Sets [`Config::allow_implicit_map_at_root`] to `allow` and returns self.
+    #[must_use]
     pub const fn allow_implicit_map_at_root(mut self, allow: bool) -> Self {
         self.allow_implicit_map_at_root = allow;
         self
     }
 
-    #[must_use]
+    /// Sets [`Config::include_comments`] to `include` and returns self.
+    #[must_use]
     pub const fn include_comments(mut self, include: bool) -> Self {
         self.include_comments = include;
         self
@@ -1502,19 +1622,22 @@
 enum State<'s> {
     AtStart,
     StartingImplicitMap(Event<'s>),
-    ImplicitMap(MapState),
+    ImplicitMap(MapStateExpecting),
     Finished,
 }
 
-#[derive(Debug, Clone, Eq, PartialEq)]
+/// An error that arose while parsing Rsn events.
+#[derive(Debug, Clone, Eq, PartialEq)]
 pub struct Error {
-    pub location: Range<usize>,
-    pub kind: ErrorKind,
+    /// The byte range of this error.
+    pub location: Range<usize>,
+    /// The kind of error that occurred.
+    pub kind: ErrorKind,
 }
 
 impl Error {
     #[must_use]
-    pub fn new(location: Range<usize>, kind: ErrorKind) -> Self {
+    pub(crate) fn new(location: Range<usize>, kind: ErrorKind) -> Self {
         Self { location, kind }
     }
 }
@@ -1537,16 +1660,29 @@
     }
 }
 
-#[derive(Debug, Clone, Eq, PartialEq)]
+/// A kind of error that arose while parsing Rsn events.
+#[derive(Debug, Clone, Eq, PartialEq)]
+#[non_exhaustive]
 pub enum ErrorKind {
-    Tokenizer(tokenizer::ErrorKind),
-    UnexpectedEof,
-    ExpectedKey,
-    ExpectedColon,
-    ExpectedValue,
-    ExpectedCommaOrEnd(Nested),
-    ExpectedMapOrTuple,
-    TrailingData,
+    /// An error occurred tokenizing the input.
+    Tokenizer(tokenizer::ErrorKind),
+    /// An end-of-file error was encountered when data was still expected.
+    UnexpectedEof,
+    /// A key in a map was expected.
+    ExpectedKey,
+    /// A `:` was expected.
+    ExpectedColon,
+    /// A value was expected.
+    ///
+    /// This may be encountered in both sequence (list/tuple) parsing and map
+    /// parsing.
+    ExpectedValue,
+    /// Expected a `,` or the end-variant of the specified [`Nested`].
+    ExpectedCommaOrEnd(Nested),
+    /// Expected either a map or a tuple.
+    ExpectedMapOrTuple,
+    /// Additional data was found after a complete value was parsed.
+    TrailingData,
 }
 
 impl From<tokenizer::ErrorKind> for ErrorKind {
@@ -1576,34 +1712,54 @@
     }
 }
 
-#[derive(Debug, Clone, PartialEq)]
+/// A Rsn event from parsing Rsn.
+#[derive(Debug, Clone, PartialEq)]
 pub struct Event<'s> {
-    pub location: Range<usize>,
-    pub kind: EventKind<'s>,
+    /// The byte offset of the source that produced this event.
+    pub location: Range<usize>,
+    /// The kind of this event.
+    pub kind: EventKind<'s>,
 }
 
 impl<'s> Event<'s> {
     #[must_use]
-    pub fn new(location: Range<usize>, kind: EventKind<'s>) -> Self {
+    fn new(location: Range<usize>, kind: EventKind<'s>) -> Self {
         Self { location, kind }
     }
 }
 
-#[derive(Debug, PartialEq, Clone)]
+/// A kind of an event encountered when parsing Rsn.
+#[derive(Debug, PartialEq, Clone)]
 pub enum EventKind<'s> {
-    BeginNested {
-        name: Option<Name<'s>>,
-        kind: Nested,
+    /// A nested sequence of events has started.
+    ///
+    /// The next events "belong" to this nesting until a matching
+    /// [`EventKind::EndNested`] is encountered.
+    BeginNested {
+        /// The name of this nested context, if encountered.
+        name: Option<Name<'s>>,
+        /// The type of nesting.
+        kind: Nested,
     },
-    EndNested,
-    Primitive(Primitive<'s>),
-    Comment(&'s str),
+    /// A nested sequence of events has concluded.
+    ///
+    /// This event can only be encountered after a [`EventKind::BeginNested`]
+    /// has been encountered. Only valid nesting equences can be encountered. If
+    /// nesting cannot be matched, an error will be returned.
+    EndNested,
+    /// A primitive literal.
+    Primitive(Primitive<'s>),
+    /// A comment.
+    Comment(&'s str),
 }
 
-#[derive(Debug, PartialEq, Clone)]
+/// A name/identifier.
+#[derive(Debug, PartialEq, Clone)]
 pub struct Name<'s> {
-    pub location: Range<usize>,
-    pub name: &'s str,
+    /// The byte range of the name in the source.
+    pub location: Range<usize>,
+    /// The name/identifier.
+    pub name: &'s str,
 }
 
 impl<'s> Deref for Name<'s> {
@@ -1626,11 +1782,15 @@
     }
 }
 
-#[derive(Debug, Clone, Copy, Eq, PartialEq)]
+/// A kind of nestable types.
+#[derive(Debug, Clone, Copy, Eq, PartialEq)]
 pub enum Nested {
-    Tuple,
-    Map,
-    List,
+    /// A sequence of values enclosed by parentheses.
+    Tuple,
+    /// A sequence of key-value pairs enclosed by curly braces.
+    Map,
+    /// A sequence of values enclosed by square brackets.
+    List,
 }
 
 impl Nested {
@@ -1654,14 +1814,14 @@
 }
 
 #[derive(Debug, Clone, Copy, Eq, PartialEq)]
-pub enum NestedState {
-    Tuple(ListState),
-    List(ListState),
-    Map(MapState),
+enum NestedState {
+    Tuple(ListStateExpecting),
+    List(ListStateExpecting),
+    Map(MapStateExpecting),
 }
 
 impl NestedState {
-    fn list(kind: Balanced, state: ListState) -> Self {
+    fn list(kind: Balanced, state: ListStateExpecting) -> Self {
         match kind {
             Balanced::Paren => Self::Tuple(state),
             Balanced::Bracket => Self::List(state),
@@ -1671,28 +1831,36 @@
 }
 
 #[derive(Debug, Clone, Copy, Eq, PartialEq)]
-pub enum ListState {
-    ExpectingValue,
-    ExpectingComma,
+enum ListStateExpecting {
+    Value,
+    Comma,
 }
 
 #[derive(Debug, Clone, Copy, Eq, PartialEq)]
-pub enum MapState {
-    ExpectingKey,
-    ExpectingColon,
-    ExpectingValue,
-    ExpectingComma,
+enum MapStateExpecting {
+    Key,
+    Colon,
+    Value,
+    Comma,
 }
 
-#[derive(Debug, PartialEq, Clone)]
+/// A primitive literal.
+#[derive(Debug, PartialEq, Clone)]
 pub enum Primitive<'s> {
-    Bool(bool),
-    Integer(Integer),
-    Float(f64),
-    Char(char),
-    String(Cow<'s, str>),
-    Identifier(&'s str),
-    Bytes(Cow<'s, [u8]>),
+    /// A boolean literal.
+    Bool(bool),
+    /// An integer literal.
+    Integer(Integer),
+    /// A floating point literal.
+    Float(f64),
+    /// A character literal.
+    Char(char),
+    /// A string literal.
+    String(Cow<'s, str>),
+    /// An identifier.
+    Identifier(&'s str),
+    /// A byte string literal.
+    Bytes(Cow<'s, [u8]>),
 }
 
 #[cfg(test)]
diff --git a/main/src/rsn/ser.rs.html b/main/src/rsn/ser.rs.html
index f68dab0..f83a8c9 100644
--- a/main/src/rsn/ser.rs.html
+++ b/main/src/rsn/ser.rs.html
@@ -566,7 +566,52 @@
 565
 566
 567
-568
use alloc::borrow::Cow;
+568
+569
+570
+571
+572
+573
+574
+575
+576
+577
+578
+579
+580
+581
+582
+583
+584
+585
+586
+587
+588
+589
+590
+591
+592
+593
+594
+595
+596
+597
+598
+599
+600
+601
+602
+603
+604
+605
+606
+607
+608
+609
+610
+611
+612
+613

use alloc::borrow::Cow;
 use alloc::string::String;
 use core::fmt::Write;
 
@@ -578,7 +623,8 @@
 
 use crate::writer::{self, Writer};
 
-#[derive(Debug)]
+/// A Serde serializer that generates Rsn.
+#[derive(Debug)]
 pub struct Serializer<'config, Output> {
     writer: Writer<'config, Output>,
     implicit_map_at_root: bool,
@@ -599,15 +645,17 @@
 where
     Output: Write,
 {
-    pub fn new(output: Output, config: &'config Config) -> Self {
+    /// Returns a new serializer that writes to `output` using `configuration`.
+    pub fn new(output: Output, configuration: &'config Config) -> Self {
         Self {
-            writer: Writer::new(output, &config.writer),
-            implicit_map_at_root: config.implicit_map_at_root,
-            anonymous_structs: config.anonymous_structs,
+            writer: Writer::new(output, &configuration.writer),
+            implicit_map_at_root: configuration.implicit_map_at_root,
+            anonymous_structs: configuration.anonymous_structs,
         }
     }
 
-    pub fn finish(self) -> Output {
+    /// Finishes writing to the output and returns the output.
+    pub fn finish(self) -> Output {
         self.writer.finish()
     }
 
@@ -622,9 +670,9 @@
 {
     type Error = core::fmt::Error;
     type Ok = ();
-    type SerializeMap = MapSerializer<'a, 'config, Output>;
+    type SerializeMap = sealed::MapSerializer<'a, 'config, Output>;
     type SerializeSeq = Self;
-    type SerializeStruct = MapSerializer<'a, 'config, Output>;
+    type SerializeStruct = sealed::MapSerializer<'a, 'config, Output>;
     type SerializeStructVariant = Self;
     type SerializeTuple = Self;
     type SerializeTupleStruct = Self;
@@ -816,7 +864,7 @@
         if !is_implicit_map {
             self.writer.begin_map()?;
         }
-        Ok(MapSerializer {
+        Ok(sealed::MapSerializer {
             serializer: self,
             is_implicit_map,
         })
@@ -838,7 +886,7 @@
             }
         }
 
-        Ok(MapSerializer {
+        Ok(sealed::MapSerializer {
             serializer: self,
             is_implicit_map,
         })
@@ -932,107 +980,123 @@
     }
 }
 
-pub struct MapSerializer<'a, 'config, Output> {
-    serializer: &'a mut Serializer<'config, Output>,
-    is_implicit_map: bool,
-}
+mod sealed {
+    use super::{SerializeMap, SerializeStruct, SerializeStructVariant, Serializer, Write};
 
-impl<'a, 'config, Output> SerializeStruct for MapSerializer<'a, 'config, Output>
-where
-    Output: Write,
-{
-    type Error = core::fmt::Error;
-    type Ok = ();
+    pub struct MapSerializer<'a, 'config, Output> {
+        pub serializer: &'a mut Serializer<'config, Output>,
+        pub is_implicit_map: bool,
+    }
 
-    fn serialize_field<T>(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error>
+    impl<'a, 'config, Output> SerializeStruct for MapSerializer<'a, 'config, Output>
     where
-        T: serde::Serialize + ?Sized,
+        Output: Write,
     {
-        if self.is_implicit_map {
-            self.serializer.writer.write_raw_value(key)?;
-            self.serializer.writer.write_raw_value(": ")?;
-            value.serialize(&mut *self.serializer)?;
-            self.serializer.writer.insert_newline()?;
-        } else {
-            self.serializer.writer.write_raw_value(key)?;
-            value.serialize(&mut *self.serializer)?;
+        type Error = core::fmt::Error;
+        type Ok = ();
+
+        fn serialize_field<T>(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error>
+        where
+            T: serde::Serialize + ?Sized,
+        {
+            if self.is_implicit_map {
+                self.serializer.writer.write_raw_value(key)?;
+                self.serializer.writer.write_raw_value(": ")?;
+                value.serialize(&mut *self.serializer)?;
+                self.serializer.writer.insert_newline()?;
+            } else {
+                self.serializer.writer.write_raw_value(key)?;
+                value.serialize(&mut *self.serializer)?;
+            }
+            Ok(())
         }
-        Ok(())
-    }
 
-    fn end(self) -> Result<Self::Ok, Self::Error> {
-        if !self.is_implicit_map {
-            self.serializer.writer.finish_nested()?;
+        fn end(self) -> Result<Self::Ok, Self::Error> {
+            if !self.is_implicit_map {
+                self.serializer.writer.finish_nested()?;
+            }
+            Ok(())
         }
-        Ok(())
     }
-}
-
-impl<'a, 'config, Output> SerializeStructVariant for &'a mut Serializer<'config, Output>
-where
-    Output: Write,
-{
-    type Error = core::fmt::Error;
-    type Ok = ();
 
-    fn serialize_field<T>(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error>
+    impl<'a, 'config, Output> SerializeStructVariant for &'a mut Serializer<'config, Output>
     where
-        T: serde::Serialize + ?Sized,
+        Output: Write,
     {
-        self.writer.write_raw_value(key)?;
-        value.serialize(&mut **self)
-    }
+        type Error = core::fmt::Error;
+        type Ok = ();
+
+        fn serialize_field<T>(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error>
+        where
+            T: serde::Serialize + ?Sized,
+        {
+            self.writer.write_raw_value(key)?;
+            value.serialize(&mut **self)
+        }
 
-    fn end(self) -> Result<Self::Ok, Self::Error> {
-        self.writer.finish_nested()
+        fn end(self) -> Result<Self::Ok, Self::Error> {
+            self.writer.finish_nested()
+        }
     }
-}
-
-impl<'a, 'config, Output> SerializeMap for MapSerializer<'a, 'config, Output>
-where
-    Output: Write,
-{
-    type Error = core::fmt::Error;
-    type Ok = ();
 
-    fn serialize_key<T>(&mut self, key: &T) -> Result<(), Self::Error>
+    impl<'a, 'config, Output> SerializeMap for MapSerializer<'a, 'config, Output>
     where
-        T: serde::Serialize + ?Sized,
+        Output: Write,
     {
-        key.serialize(&mut *self.serializer)
-    }
+        type Error = core::fmt::Error;
+        type Ok = ();
+
+        fn serialize_key<T>(&mut self, key: &T) -> Result<(), Self::Error>
+        where
+            T: serde::Serialize + ?Sized,
+        {
+            key.serialize(&mut *self.serializer)
+        }
 
-    fn serialize_value<T>(&mut self, value: &T) -> Result<(), Self::Error>
-    where
-        T: serde::Serialize + ?Sized,
-    {
-        if self.is_implicit_map {
-            self.serializer.writer.write_raw_value(": ")?;
-            value.serialize(&mut *self.serializer)?;
-            self.serializer.writer.insert_newline()
-        } else {
-            value.serialize(&mut *self.serializer)
+        fn serialize_value<T>(&mut self, value: &T) -> Result<(), Self::Error>
+        where
+            T: serde::Serialize + ?Sized,
+        {
+            if self.is_implicit_map {
+                self.serializer.writer.write_raw_value(": ")?;
+                value.serialize(&mut *self.serializer)?;
+                self.serializer.writer.insert_newline()
+            } else {
+                value.serialize(&mut *self.serializer)
+            }
         }
-    }
 
-    fn end(self) -> Result<Self::Ok, Self::Error> {
-        if !self.is_implicit_map {
-            self.serializer.writer.finish_nested()?;
+        fn end(self) -> Result<Self::Ok, Self::Error> {
+            if !self.is_implicit_map {
+                self.serializer.writer.finish_nested()?;
+            }
+            Ok(())
         }
-        Ok(())
     }
 }
 
-#[derive(Default, Debug, Clone)]
+/// The configuration for a [`Serializer`].
+#[derive(Default, Debug, Clone)]
 #[non_exhaustive]
 pub struct Config {
-    pub writer: writer::Config,
-    pub implicit_map_at_root: bool,
-    pub anonymous_structs: bool,
+    /// The writer configuration.
+    pub writer: writer::Config,
+    /// Whether a map-like type at the root of the document should use the
+    /// implicit map syntax.
+    pub implicit_map_at_root: bool,
+    /// Whether to include the names of structures in.
+    pub anonymous_structs: bool,
 }
 
 impl Config {
-    #[must_use]
+    /// Returns the default configuration.
+    ///
+    /// The default configuration uses:
+    ///
+    /// - `writer`: [`writer::Config::Compact`]
+    /// - `implicit_map_at_root`: `false`
+    /// - `anonymous_structs`: `false`
+    #[must_use]
     pub const fn new() -> Self {
         Self {
             writer: writer::Config::Compact,
@@ -1041,7 +1105,8 @@
         }
     }
 
-    #[must_use]
+    /// Returns the default configuration with nested indentation and newlines.
+    #[must_use]
     pub fn pretty() -> Self {
         Self {
             writer: writer::Config::Pretty {
@@ -1052,27 +1117,45 @@
         }
     }
 
-    #[must_use]
+    /// Sets [`Config::implicit_map_at_root`] and returns self.
+    #[must_use]
     pub const fn implicit_map_at_root(mut self, implicit_map_at_root: bool) -> Self {
         self.implicit_map_at_root = implicit_map_at_root;
         self
     }
 
-    #[must_use]
+    /// Sets [`Config::anonymous_structs`] and returns self.
+    #[must_use]
     pub const fn anonymous_structs(mut self, anonymous_structs: bool) -> Self {
         self.anonymous_structs = anonymous_structs;
         self
     }
 
-    #[must_use]
-    pub fn serialize<S: Serialize>(&self, value: &S) -> String {
+    /// Returns `value` serialized as Rsn with this configuration.
+    ///
+    /// # Errors
+    ///
+    /// Rsn itself does not produce any errors while serializing values. This
+    /// function will return errors that arise within `Serialize` implementations
+    /// encountered while serializing `value`.
+    pub fn serialize<S: Serialize>(&self, value: &S) -> Result<String, core::fmt::Error> {
         let mut serializer = Serializer::new(String::new(), self);
-        value.serialize(&mut serializer).expect("core::fmt::Error");
-        serializer.finish()
+        value.serialize(&mut serializer)?;
+        Ok(serializer.finish())
     }
 
-    pub fn serialize_to_vec<S: Serialize>(&self, value: &S) -> alloc::vec::Vec<u8> {
-        self.serialize(value).into_bytes()
+    /// Returns `value` serialized as Rsn with this configuration.
+    ///
+    /// # Errors
+    ///
+    /// Rsn itself does not produce any errors while serializing values. This
+    /// function will return errors that arise within `Serialize` implementations
+    /// encountered while serializing `value`.
+    pub fn serialize_to_vec<S: Serialize>(
+        &self,
+        value: &S,
+    ) -> Result<alloc::vec::Vec<u8>, core::fmt::Error> {
+        self.serialize(value).map(String::into_bytes)
     }
 }
 
@@ -1104,7 +1187,14 @@
         }
     }
     impl Config {
-        pub fn serialize_to_writer<S: Serialize, W: std::io::Write>(
+        /// Serializes `value` into `writer` using this configuration.
+        ///
+        /// # Errors
+        ///
+        /// Returns any errors occurring while serializing `value` or while
+        /// writing to `writer`.
+        #[allow(clippy::missing_panics_doc)]
+        pub fn serialize_to_writer<S: Serialize, W: std::io::Write>(
             &self,
             value: &S,
             writer: W,
@@ -1131,7 +1221,7 @@
         b: i32,
     }
 
-    let rendered = crate::to_string(&BasicNamed { a: 1, b: -1 });
+    let rendered = crate::to_string(&BasicNamed { a: 1, b: -1 }).expect("no errors");
     assert_eq!(rendered, "BasicNamed{a:1,b:-1}");
 }
 

\ No newline at end of file diff --git a/main/src/rsn/tokenizer.rs.html b/main/src/rsn/tokenizer.rs.html index 944f55d..ee01910 100644 --- a/main/src/rsn/tokenizer.rs.html +++ b/main/src/rsn/tokenizer.rs.html @@ -2202,7 +2202,58 @@ 2201 2202 2203 -2204
use alloc::borrow::Cow;
+2204
+2205
+2206
+2207
+2208
+2209
+2210
+2211
+2212
+2213
+2214
+2215
+2216
+2217
+2218
+2219
+2220
+2221
+2222
+2223
+2224
+2225
+2226
+2227
+2228
+2229
+2230
+2231
+2232
+2233
+2234
+2235
+2236
+2237
+2238
+2239
+2240
+2241
+2242
+2243
+2244
+2245
+2246
+2247
+2248
+2249
+2250
+2251
+2252
+2253
+2254
+2255

use alloc::borrow::Cow;
 use alloc::string::String;
 use core::fmt::Display;
 use core::mem;
@@ -2214,35 +2265,53 @@
 
 mod char_iterator;
 
-#[derive(Clone, Eq, PartialEq, Debug)]
+/// A token in an Rsn document.
+#[derive(Clone, Eq, PartialEq, Debug)]
 pub struct Token<'a> {
-    pub location: Range<usize>,
-    pub kind: TokenKind<'a>,
+    /// The byte range of this token.
+    pub location: Range<usize>,
+    /// The kind of this token.
+    pub kind: TokenKind<'a>,
 }
 
 impl<'a> Token<'a> {
     #[must_use]
-    pub const fn new(location: Range<usize>, kind: TokenKind<'a>) -> Self {
+    const fn new(location: Range<usize>, kind: TokenKind<'a>) -> Self {
         Self { location, kind }
     }
 }
 
-#[derive(Clone, Debug)]
+/// A kind of a token in an Rsn document.
+#[derive(Clone, Debug)]
 pub enum TokenKind<'a> {
-    Integer(Integer),
-    Float(f64),
-    Bool(bool),
-    Character(char),
-    Colon,
-    Comma,
-    Byte(u8),
-    String(Cow<'a, str>),
-    Bytes(Cow<'a, [u8]>),
-    Identifier(&'a str),
-    Open(Balanced),
-    Close(Balanced),
-    Comment(&'a str),
-    Whitespace(&'a str),
+    /// An integer literal.
+    Integer(Integer),
+    /// A floating point literal.
+    Float(f64),
+    /// A boolean literal.
+    Bool(bool),
+    /// A character literal.
+    Character(char),
+    /// The `:` character.
+    Colon,
+    /// The `,` character.
+    Comma,
+    /// A byte literal.
+    Byte(u8),
+    /// A string literal.
+    String(Cow<'a, str>),
+    /// A byte string literal.
+    Bytes(Cow<'a, [u8]>),
+    /// An identifier (name).
+    Identifier(&'a str),
+    /// The opening variant of a [`Balanced`] token.
+    Open(Balanced),
+    /// The closing variant of a [`Balanced`] token.
+    Close(Balanced),
+    /// A comment
+    Comment(&'a str),
+    /// Whitespace between other tokens.
+    Whitespace(&'a str),
 }
 
 impl<'a> Eq for TokenKind<'a> {}
@@ -2265,17 +2334,26 @@
     }
 }
 
-#[derive(Clone, Copy, Eq, PartialEq, Debug)]
+/// An integer literal.
+#[derive(Clone, Copy, Eq, PartialEq, Debug)]
 pub enum Integer {
-    Usize(usize),
-    Isize(isize),
-    UnsignedLarge(UnsignedLarge),
-    SignedLarge(SignedLarge),
+    /// An unsigned integer that fits within an `usize`.
+    Usize(usize),
+    /// A signed integer that fits within an `isize`.
+    Isize(isize),
+    /// An unsigned integer that is too large to fit within an `usize`.
+    UnsignedLarge(UnsignedLarge),
+    /// A signed integer that is too large to fit within an `isize`.
+    SignedLarge(SignedLarge),
 }
 
 macro_rules! fn_integer_into {
     ($name:ident, $type:ty) => {
-        #[inline]
+        /// Returns this integer as a
+        #[doc = stringify!($type)]
+        /// if the value can fit in a
+        #[doc = stringify!($type)]
+        #[inline]
         #[must_use]
         pub fn $name(self) -> Option<$type> {
             match self {
@@ -2313,7 +2391,8 @@
 
     fn_integer_into!(as_isize, isize);
 
-    #[inline]
+    /// Returns true if this number is equal to 0.
+    #[inline]
     #[must_use]
     pub const fn is_zero(self) -> bool {
         match self {
@@ -2324,7 +2403,8 @@
         }
     }
 
-    #[must_use]
+    /// Returns this number cast to an `f64`.
+    #[must_use]
     #[allow(clippy::cast_precision_loss)]
     pub fn as_f64(self) -> f64 {
         match self {
@@ -2409,28 +2489,36 @@
 impl_try_from_primitive!(Usize, usize, UnsignedLarge, u128);
 impl_try_from_primitive!(Isize, isize, SignedLarge, i128);
 
-#[derive(Clone, Copy, Eq, PartialEq, Debug)]
+/// A token kind that is expected to have a balanced number of open and closing
+/// variants.
+#[derive(Clone, Copy, Eq, PartialEq, Debug)]
 pub enum Balanced {
-    Paren,
-    Brace,
-    Bracket,
+    /// Parentheses
+    Paren,
+    /// Curly Braces
+    Brace,
+    /// Square Brackets
+    Bracket,
 }
 
-#[derive(Debug, Clone)]
+/// Parses Rsn into a sequence of [`Token`]s.
+#[derive(Debug, Clone)]
 pub struct Tokenizer<'a, const INCLUDE_ALL: bool> {
     chars: CharIterator<'a>,
     scratch: String,
 }
 
 impl<'a> Tokenizer<'a, false> {
-    #[must_use]
+    /// Returns a tokenizer that ignores whitespace and comments.
+    #[must_use]
     pub fn minified(source: &'a str) -> Self {
         Self::new(source)
     }
 }
 
 impl<'a> Tokenizer<'a, true> {
-    #[must_use]
+    /// Returns a tokenizer that includes whitespace and comments.
+    #[must_use]
     pub fn full(source: &'a str) -> Self {
         Self::new(source)
     }
@@ -2444,7 +2532,8 @@
         }
     }
 
-    #[must_use]
+    /// Returns the current byte offset of the tokenizer.
+    #[must_use]
     pub const fn current_offset(&self) -> usize {
         self.chars.current_offset()
     }
@@ -3446,15 +3535,18 @@
     )
 }
 
-#[derive(Debug, Clone, Eq, PartialEq)]
+/// An error returned from a tokenizer.
+#[derive(Debug, Clone, Eq, PartialEq)]
 pub struct Error {
-    pub location: Range<usize>,
-    pub kind: ErrorKind,
+    /// The byte range of the error.
+    pub location: Range<usize>,
+    /// The kind of error that occurred.
+    pub kind: ErrorKind,
 }
 
 impl Error {
     #[must_use]
-    pub const fn new(location: Range<usize>, kind: ErrorKind) -> Self {
+    const fn new(location: Range<usize>, kind: ErrorKind) -> Self {
         Self { location, kind }
     }
 }
@@ -3468,16 +3560,26 @@
 #[cfg(feature = "std")]
 impl std::error::Error for Error {}
 
-#[derive(Debug, Clone, Eq, PartialEq)]
+/// The kind of an error returned from a tokenizer.
+#[derive(Debug, Clone, Eq, PartialEq)]
+#[non_exhaustive]
 pub enum ErrorKind {
-    UnexpectedEof,
-    Unexpected(char),
-    ExpectedDigit,
-    IntegerTooLarge,
-    InvalidUnicode,
-    InvalidAscii,
-    InvalidFloat,
-    IsolatedCarriageReturn,
+    /// The end of input was encountered when additional data was still expected.
+    UnexpectedEof,
+    /// An unexpected character was found.
+    Unexpected(char),
+    /// A digit (0-9) was expected.
+    ExpectedDigit,
+    /// The integer literal is too large to represent.
+    IntegerTooLarge,
+    /// An invalid unicode code point was encountered.
+    InvalidUnicode,
+    /// An invalid ASCII character was encountered.
+    InvalidAscii,
+    /// An invalid floating point number was found.
+    InvalidFloat,
+    /// A carriage return without a corresponding `\n` was encountered.
+    IsolatedCarriageReturn,
 }
 
 impl Display for ErrorKind {
@@ -3495,7 +3597,7 @@
     }
 }
 
-pub trait Integral: From<u8> + Copy {
+trait Integral: From<u8> + Copy {
     type Larger: Integral;
     fn into_larger(self) -> Self::Larger;
     fn checked_mul(self, other: Self) -> Option<Self>;
diff --git a/main/src/rsn/value.rs.html b/main/src/rsn/value.rs.html
index 47eb461..a5189ae 100644
--- a/main/src/rsn/value.rs.html
+++ b/main/src/rsn/value.rs.html
@@ -1338,7 +1338,76 @@
 1337
 1338
 1339
-1340
use alloc::borrow::Cow;
+1340
+1341
+1342
+1343
+1344
+1345
+1346
+1347
+1348
+1349
+1350
+1351
+1352
+1353
+1354
+1355
+1356
+1357
+1358
+1359
+1360
+1361
+1362
+1363
+1364
+1365
+1366
+1367
+1368
+1369
+1370
+1371
+1372
+1373
+1374
+1375
+1376
+1377
+1378
+1379
+1380
+1381
+1382
+1383
+1384
+1385
+1386
+1387
+1388
+1389
+1390
+1391
+1392
+1393
+1394
+1395
+1396
+1397
+1398
+1399
+1400
+1401
+1402
+1403
+1404
+1405
+1406
+1407
+1408
+1409
use alloc::borrow::Cow;
 use alloc::vec::Vec;
 use core::fmt::Display;
 use core::str::{self, FromStr};
@@ -1346,27 +1415,46 @@
 use crate::parser::{Config, Error, ErrorKind, Event, EventKind, Name, Nested, Parser, Primitive};
 use crate::tokenizer::Integer;
 use crate::writer::{self, Writer};
-pub type OwnedValue = Value<'static>;
 
-#[derive(Debug, Clone, PartialEq)]
+/// A value with a static lifetime.
+pub type OwnedValue = Value<'static>;
+
+/// A value representable by Rsn.
+#[derive(Debug, Clone, PartialEq)]
 pub enum Value<'a> {
-    Integer(Integer),
-    Float(f64),
-    Bool(bool),
-    Char(char),
-    Byte(u8),
-    Identifier(Cow<'a, str>),
-    String(Cow<'a, str>),
-    Bytes(Cow<'a, [u8]>),
-    Named(Named<'a>),
-    Tuple(List<'a>),
-    Array(List<'a>),
-    Map(Map<'a>),
+    /// An integer.
+    Integer(Integer),
+    /// A floating point number.
+    Float(f64),
+    /// A boolean.
+    Bool(bool),
+    /// A character.
+    Char(char),
+    /// A byte.
+    Byte(u8),
+    /// An identifier (name).
+    Identifier(Cow<'a, str>),
+    /// A string.
+    String(Cow<'a, str>),
+    /// A byte string.
+    Bytes(Cow<'a, [u8]>),
+    /// A named structure.
+    Named(Named<'a>),
+    /// A tuple of values.
+    Tuple(List<'a>),
+    /// An array of values.
+    Array(List<'a>),
+    /// A collection of key-value pairs.
+    Map(Map<'a>),
 }
 
 macro_rules! as_integer {
     ($name:ident, $ty:ty) => {
-        #[must_use]
+        /// Returns this value as a
+        #[doc = stringify!($type)]
+        /// if the value is an integer that can fit in a
+        #[doc = stringify!($type)]
+        #[must_use]
         pub fn $name(&self) -> Option<$ty> {
             let Self::Integer(value) = self else {
                 return None;
@@ -1402,12 +1490,18 @@
 
     as_integer!(as_isize, isize);
 
-    pub fn from_str(source: &'a str, config: Config) -> Result<Self, Error> {
+    /// Parses `source` as a [`Value`].
+    ///
+    /// # Errors
+    ///
+    /// Returns any error encountered while parsing `source`.
+    pub fn from_str(source: &'a str, config: Config) -> Result<Self, Error> {
         let mut parser = Parser::new(source, config.include_comments(false));
         Self::parse(&mut parser)
     }
 
-    #[must_use]
+    /// Returns a value representing the unit type.
+    #[must_use]
     pub const fn unit() -> Self {
         Self::Tuple(List::new())
     }
@@ -1498,19 +1592,30 @@
         }
     }
 
-    #[cfg(feature = "serde")]
-    pub fn from_serialize<S: ::serde::Serialize>(value: &S) -> Self {
-        value
-            .serialize(serde::ValueSerializer)
-            .expect("core::fmt::Error")
+    /// Creates a value by serializing `value` using Serde.
+    ///
+    /// # Errors
+    ///
+    /// Returns an error if the `value` cannot be represented losslessly or if
+    /// any errors occur from `Serializer` implementations.
+    #[cfg(feature = "serde")]
+    pub fn from_serialize<S: ::serde::Serialize>(value: &S) -> Result<Self, ToValueError> {
+        value.serialize(serde::ValueSerializer)
     }
 
-    #[cfg(feature = "serde")]
+    /// Deserializes `self` as `D` using Serde.
+    ///
+    /// # Errors
+    ///
+    /// Returns an error if `self` cannot be deserialized as `D`.
+    #[cfg(feature = "serde")]
     pub fn to_deserialize<D: ::serde::Deserialize<'a>>(&self) -> Result<D, serde::FromValueError> {
         D::deserialize(serde::ValueDeserializer(self))
     }
 
-    #[must_use]
+    /// Returns the owned version of `self`, copying any borrowed data to the
+    /// heap.
+    #[must_use]
     pub fn into_owned(self) -> Value<'static> {
         match self {
             Value::Integer(value) => Value::Integer(value),
@@ -1528,7 +1633,10 @@
         }
     }
 
-    #[must_use]
+    /// Returns this value as a floating point number.
+    ///
+    /// If this is an integer, this will cast the integer to an f64.
+    #[must_use]
     pub fn as_f64(&self) -> Option<f64> {
         match self {
             Value::Integer(integer) => Some(integer.as_f64()),
@@ -1537,7 +1645,11 @@
         }
     }
 
-    #[must_use]
+    /// Returns this value as a str, if possible.
+    ///
+    /// `Identifier`, `String`, and `Bytes` bytes all can be returned from this
+    /// function.
+    #[must_use]
     pub fn as_str(&self) -> Option<&str> {
         match self {
             Value::Identifier(str) | Value::String(str) => Some(str),
@@ -1546,7 +1658,12 @@
         }
     }
 
-    #[must_use]
+    /// Returns the underlying bytes for this value, if it can be represented as
+    /// a byte slice.
+    ///
+    /// `Identifier`, `String`, and `Bytes` bytes all can be returned from this
+    /// function.
+    #[must_use]
     pub fn as_bytes(&self) -> Option<&[u8]> {
         match self {
             Value::Identifier(str) | Value::String(str) => Some(str.as_bytes()),
@@ -1583,14 +1700,19 @@
     }
 }
 
-#[derive(Debug, Clone, PartialEq)]
+/// A named structure.
+#[derive(Debug, Clone, PartialEq)]
 pub struct Named<'a> {
-    pub name: Cow<'a, str>,
-    pub contents: StructContents<'a>,
+    /// The name of the structure.
+    pub name: Cow<'a, str>,
+    /// The contents of the structure.
+    pub contents: StructContents<'a>,
 }
 
 impl<'a> Named<'a> {
-    #[must_use]
+    /// Returns an owned representation of this name, copying to the stack if
+    /// needed.
+    #[must_use]
     pub fn into_owned(self) -> Named<'static> {
         Named {
             name: Cow::Owned(self.name.into_owned()),
@@ -1599,14 +1721,18 @@
     }
 }
 
-#[derive(Debug, Clone, PartialEq)]
+/// The contents of a structure.
+#[derive(Debug, Clone, PartialEq)]
 pub enum StructContents<'a> {
-    Map(Map<'a>),
-    Tuple(List<'a>),
+    /// Named fields, represented as a map.
+    Map(Map<'a>),
+    /// A tuple of valuees.
+    Tuple(List<'a>),
 }
 
 impl<'a> StructContents<'a> {
-    #[must_use]
+    /// Returns an owned representation, copying to the heap if needed.
+    #[must_use]
     pub fn into_owned(self) -> StructContents<'static> {
         match self {
             StructContents::Map(contents) => StructContents::Map(contents.into_owned()),
@@ -1615,11 +1741,13 @@
     }
 }
 
-#[derive(Default, Debug, Clone, PartialEq)]
+/// A list of key-value pairs.
+#[derive(Default, Debug, Clone, PartialEq)]
 pub struct Map<'a>(pub Vec<(Value<'a>, Value<'a>)>);
 
 impl<'a> Map<'a> {
-    #[must_use]
+    /// Returns an owned representation, copying to the heap if needed.
+    #[must_use]
     pub fn into_owned(self) -> Map<'static> {
         Map(self
             .0
@@ -1629,16 +1757,19 @@
     }
 }
 
-#[derive(Default, Debug, Clone, PartialEq)]
+/// A list of values.
+#[derive(Default, Debug, Clone, PartialEq)]
 pub struct List<'a>(pub Vec<Value<'a>>);
 
 impl<'a> List<'a> {
-    #[must_use]
+    /// Returns an empty list.
+    #[must_use]
     pub const fn new() -> Self {
         Self(Vec::new())
     }
 
-    #[must_use]
+    /// Returns an owned representation, copying to the heap if needed.
+    #[must_use]
     pub fn into_owned(self) -> List<'static> {
         List(self.0.into_iter().map(Value::into_owned).collect())
     }
@@ -2528,11 +2659,14 @@
         }
     }
 
-    #[derive(Debug, PartialEq)]
+    /// An error from serializing to a [`Value`].
+    #[derive(Debug, PartialEq)]
 
     pub enum ToValueError {
-        Message(String),
-        IntegerTooLarge(TryFromIntError),
+        /// A custom serialization error.
+        Message(String),
+        /// An integer was too larget to represent.
+        IntegerTooLarge(TryFromIntError),
     }
 
     impl From<TryFromIntError> for ToValueError {
@@ -2561,12 +2695,16 @@
         }
     }
 
-    #[derive(Debug, PartialEq)]
+    /// An error from deserializing from a [`Value`].
+    #[derive(Debug, PartialEq)]
 
     pub enum FromValueError {
-        Message(String),
-        Expected(ExpectedKind),
-        InvalidUtf8,
+        /// A custom serialization error.
+        Message(String),
+        /// Expected a kind of data, but encountered another kind.
+        Expected(ExpectedKind),
+        /// Invalid UTF-8 was encountered.
+        InvalidUtf8,
     }
 
     impl serde::de::Error for FromValueError {
diff --git a/main/src/rsn/writer.rs.html b/main/src/rsn/writer.rs.html
index f2ce1c9..104911f 100644
--- a/main/src/rsn/writer.rs.html
+++ b/main/src/rsn/writer.rs.html
@@ -411,7 +411,85 @@
 410
 411
 412
-413

use alloc::borrow::Cow;
+413
+414
+415
+416
+417
+418
+419
+420
+421
+422
+423
+424
+425
+426
+427
+428
+429
+430
+431
+432
+433
+434
+435
+436
+437
+438
+439
+440
+441
+442
+443
+444
+445
+446
+447
+448
+449
+450
+451
+452
+453
+454
+455
+456
+457
+458
+459
+460
+461
+462
+463
+464
+465
+466
+467
+468
+469
+470
+471
+472
+473
+474
+475
+476
+477
+478
+479
+480
+481
+482
+483
+484
+485
+486
+487
+488
+489
+490
+491
use alloc::borrow::Cow;
 use alloc::string::String;
 use alloc::vec::Vec;
 use core::fmt;
@@ -420,7 +498,8 @@
 use crate::tokenizer::Integer;
 use crate::value::{StructContents, Value};
 
-#[derive(Debug)]
+/// A low-level writer for the Rsn format.
+#[derive(Debug)]
 pub struct Writer<'config, Output> {
     output: Output,
     nested: Vec<NestedState>,
@@ -437,7 +516,8 @@
 where
     Output: Write,
 {
-    pub fn new(output: Output, config: &'config Config) -> Self {
+    /// Returns a writer that outputs to `output` using `config`.
+    pub fn new(output: Output, config: &'config Config) -> Self {
         Self {
             output,
             nested: Vec::new(),
@@ -445,12 +525,24 @@
         }
     }
 
-    pub fn finish(self) -> Output {
+    /// Finishes writing and returns the output.
+    ///
+    /// # Panics
+    ///
+    /// This function panics if a nested type was begun and a corresponding
+    /// `finish_nested` was not called.
+    pub fn finish(self) -> Output {
         assert!(self.nested.is_empty());
         self.output
     }
 
-    pub fn begin_named_map(&mut self, name: &str) -> fmt::Result {
+    /// Begins a named map. A corresponding call to `finish_nested` must be made
+    /// when the map contents are completed.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    pub fn begin_named_map(&mut self, name: &str) -> fmt::Result {
         self.prepare_to_write_value()?;
         self.output.write_str(name)?;
         if matches!(self.config.as_ref(), Config::Pretty { .. }) {
@@ -461,32 +553,61 @@
         Ok(())
     }
 
-    pub fn begin_named_tuple(&mut self, name: &str) -> fmt::Result {
+    /// Begins a named tuple. A corresponding call to `finish_nested` must be
+    /// made when the tuple contents are completed.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    pub fn begin_named_tuple(&mut self, name: &str) -> fmt::Result {
         self.prepare_to_write_value()?;
         self.nested.push(NestedState::Tuple(SequenceState::Empty));
         self.output.write_str(name)?;
         self.output.write_char('(')
     }
 
-    pub fn begin_map(&mut self) -> fmt::Result {
+    /// Begins a map. A corresponding call to `finish_nested` must be made when
+    /// the map contents are completed.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    pub fn begin_map(&mut self) -> fmt::Result {
         self.prepare_to_write_value()?;
         self.nested.push(NestedState::Map(MapState::Empty));
         self.output.write_char('{')
     }
 
-    pub fn begin_tuple(&mut self) -> fmt::Result {
+    /// Begins a tuple. A corresponding call to `finish_nested` must be made when
+    /// the tuple contents are completed.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    pub fn begin_tuple(&mut self) -> fmt::Result {
         self.prepare_to_write_value()?;
         self.nested.push(NestedState::Tuple(SequenceState::Empty));
         self.output.write_char('(')
     }
 
-    pub fn begin_list(&mut self) -> fmt::Result {
+    /// Begins a list/array. A corresponding call to `finish_nested` must be
+    /// made when the list contents are completed.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    pub fn begin_list(&mut self) -> fmt::Result {
         self.prepare_to_write_value()?;
         self.nested.push(NestedState::List(SequenceState::Empty));
         self.output.write_char('[')
     }
 
-    pub fn write_primitive<P>(&mut self, p: &P) -> fmt::Result
+    /// Writes a primitive value, formatting it as valid Rsn.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    pub fn write_primitive<P>(&mut self, p: &P) -> fmt::Result
     where
         P: Primitive + ?Sized,
     {
@@ -494,7 +615,12 @@
         p.render_to(&mut self.output)
     }
 
-    pub fn write_raw_value(&mut self, ident: &str) -> fmt::Result {
+    /// Writes `ident` without any extra formatting.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    pub fn write_raw_value(&mut self, ident: &str) -> fmt::Result {
         self.prepare_to_write_value()?;
         self.output.write_str(ident)
     }
@@ -535,7 +661,12 @@
         Ok(())
     }
 
-    pub fn insert_newline(&mut self) -> fmt::Result {
+    /// Inserts the configured newline character, if needed.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    pub fn insert_newline(&mut self) -> fmt::Result {
         if let Config::Pretty {
             indentation,
             newline,
@@ -550,7 +681,16 @@
         Ok(())
     }
 
-    pub fn finish_nested(&mut self) -> fmt::Result {
+    /// Finishes the current nested value.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    ///
+    /// # Panics
+    ///
+    /// This function panics if are no open nested types.
+    pub fn finish_nested(&mut self) -> fmt::Result {
         match self.nested.pop().expect("not in a nested state") {
             NestedState::Tuple(state) => {
                 if matches!(state, SequenceState::NotEmpty) {
@@ -574,7 +714,12 @@
         }
     }
 
-    pub fn write_value(&mut self, value: &Value<'_>) -> fmt::Result {
+    /// Writes a value.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `Output`.
+    pub fn write_value(&mut self, value: &Value<'_>) -> fmt::Result {
         match value {
             Value::Integer(value) => match value {
                 Integer::Usize(value) => self.write_primitive(value),
@@ -632,8 +777,14 @@
     }
 }
 
-pub trait Primitive {
-    fn render_to<W: Write>(&self, buffer: &mut W) -> fmt::Result;
+/// A type that can be written as a primitive.q
+pub trait Primitive {
+    /// Renders this type to `buffer`.
+    ///
+    /// # Errors
+    ///
+    /// Returns any errors that arise while writing to `buffer`.
+    fn render_to<W: Write>(&self, buffer: &mut W) -> fmt::Result;
 }
 
 macro_rules! impl_primitive_using_to_string {
@@ -767,14 +918,19 @@
     AfterKey,
 }
 
-#[derive(Debug, Default, Clone)]
+/// A writer configuration.
+#[derive(Debug, Default, Clone)]
 #[non_exhaustive]
 pub enum Config {
-    #[default]
+    /// Renders Rsn in its most compact representation.
+    #[default]
     Compact,
-    Pretty {
-        indentation: Cow<'static, str>,
-        newline: Cow<'static, str>,
+    /// Renders Rsn with indentation and line endings.
+    Pretty {
+        /// The indentation to include for each level of nested data type.
+        indentation: Cow<'static, str>,
+        /// The newline character(s) to include when wrapping to a new line.
+        newline: Cow<'static, str>,
     },
 }
 
diff --git a/main/trait.impl/core/clone/trait.Clone.js b/main/trait.impl/core/clone/trait.Clone.js
index 9bbd0fd..3ad7241 100644
--- a/main/trait.impl/core/clone/trait.Clone.js
+++ b/main/trait.impl/core/clone/trait.Clone.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["rsn",[["impl Clone for ErrorKind"],["impl Clone for ErrorKind"],["impl Clone for ListState"],["impl Clone for MapState"],["impl Clone for Nested"],["impl Clone for NestedState"],["impl Clone for Balanced"],["impl Clone for ErrorKind"],["impl Clone for Integer"],["impl Clone for Config"],["impl Clone for DeserializerError"],["impl Clone for Error"],["impl Clone for Config"],["impl Clone for Error"],["impl Clone for Config"],["impl Clone for Error"],["impl<'a> Clone for TokenKind<'a>"],["impl<'a> Clone for StructContents<'a>"],["impl<'a> Clone for Value<'a>"],["impl<'a> Clone for Token<'a>"],["impl<'a> Clone for List<'a>"],["impl<'a> Clone for Map<'a>"],["impl<'a> Clone for Named<'a>"],["impl<'a, const INCLUDE_ALL: bool> Clone for Tokenizer<'a, INCLUDE_ALL>"],["impl<'s> Clone for EventKind<'s>"],["impl<'s> Clone for Primitive<'s>"],["impl<'s> Clone for Event<'s>"],["impl<'s> Clone for Name<'s>"]]]]);
+    var implementors = Object.fromEntries([["rsn",[["impl Clone for ErrorKind"],["impl Clone for ErrorKind"],["impl Clone for Nested"],["impl Clone for Balanced"],["impl Clone for ErrorKind"],["impl Clone for Integer"],["impl Clone for Config"],["impl Clone for DeserializerError"],["impl Clone for Error"],["impl Clone for Config"],["impl Clone for Error"],["impl Clone for Config"],["impl Clone for Error"],["impl<'a> Clone for TokenKind<'a>"],["impl<'a> Clone for StructContents<'a>"],["impl<'a> Clone for Value<'a>"],["impl<'a> Clone for Token<'a>"],["impl<'a> Clone for List<'a>"],["impl<'a> Clone for Map<'a>"],["impl<'a> Clone for Named<'a>"],["impl<'a, const INCLUDE_ALL: bool> Clone for Tokenizer<'a, INCLUDE_ALL>"],["impl<'s> Clone for EventKind<'s>"],["impl<'s> Clone for Primitive<'s>"],["impl<'s> Clone for Event<'s>"],["impl<'s> Clone for Name<'s>"]]]]);
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[7550]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[6773]}
\ No newline at end of file
diff --git a/main/trait.impl/core/cmp/trait.Eq.js b/main/trait.impl/core/cmp/trait.Eq.js
index a96de31..20ba5da 100644
--- a/main/trait.impl/core/cmp/trait.Eq.js
+++ b/main/trait.impl/core/cmp/trait.Eq.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["rsn",[["impl Eq for ErrorKind"],["impl Eq for ListState"],["impl Eq for MapState"],["impl Eq for Nested"],["impl Eq for NestedState"],["impl Eq for Balanced"],["impl Eq for ErrorKind"],["impl Eq for Integer"],["impl Eq for Error"],["impl Eq for Error"],["impl<'a> Eq for TokenKind<'a>"],["impl<'a> Eq for Token<'a>"]]]]);
+    var implementors = Object.fromEntries([["rsn",[["impl Eq for ErrorKind"],["impl Eq for Nested"],["impl Eq for Balanced"],["impl Eq for ErrorKind"],["impl Eq for Integer"],["impl Eq for Error"],["impl Eq for Error"],["impl<'a> Eq for TokenKind<'a>"],["impl<'a> Eq for Token<'a>"]]]]);
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[2992]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[2254]}
\ No newline at end of file
diff --git a/main/trait.impl/core/cmp/trait.PartialEq.js b/main/trait.impl/core/cmp/trait.PartialEq.js
index aa85e31..a8cc9fe 100644
--- a/main/trait.impl/core/cmp/trait.PartialEq.js
+++ b/main/trait.impl/core/cmp/trait.PartialEq.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["rsn",[["impl PartialEq for ErrorKind"],["impl PartialEq for ErrorKind"],["impl PartialEq for ListState"],["impl PartialEq for MapState"],["impl PartialEq for Nested"],["impl PartialEq for NestedState"],["impl PartialEq for Balanced"],["impl PartialEq for ErrorKind"],["impl PartialEq for Integer"],["impl PartialEq for FromValueError"],["impl PartialEq for ToValueError"],["impl PartialEq for DeserializerError"],["impl PartialEq for Error"],["impl PartialEq for Error"],["impl PartialEq for Error"],["impl<'a> PartialEq for TokenKind<'a>"],["impl<'a> PartialEq for StructContents<'a>"],["impl<'a> PartialEq for Value<'a>"],["impl<'a> PartialEq for Token<'a>"],["impl<'a> PartialEq for List<'a>"],["impl<'a> PartialEq for Map<'a>"],["impl<'a> PartialEq for Named<'a>"],["impl<'a, 's> PartialEq<&'a str> for Name<'s>"],["impl<'s> PartialEq for EventKind<'s>"],["impl<'s> PartialEq for Primitive<'s>"],["impl<'s> PartialEq for Event<'s>"],["impl<'s> PartialEq for Name<'s>"],["impl<'s> PartialEq<str> for Name<'s>"]]]]);
+    var implementors = Object.fromEntries([["rsn",[["impl PartialEq for ErrorKind"],["impl PartialEq for ErrorKind"],["impl PartialEq for Nested"],["impl PartialEq for Balanced"],["impl PartialEq for ErrorKind"],["impl PartialEq for Integer"],["impl PartialEq for FromValueError"],["impl PartialEq for ToValueError"],["impl PartialEq for DeserializerError"],["impl PartialEq for Error"],["impl PartialEq for Error"],["impl PartialEq for Error"],["impl<'a> PartialEq for TokenKind<'a>"],["impl<'a> PartialEq for StructContents<'a>"],["impl<'a> PartialEq for Value<'a>"],["impl<'a> PartialEq for Token<'a>"],["impl<'a> PartialEq for List<'a>"],["impl<'a> PartialEq for Map<'a>"],["impl<'a> PartialEq for Named<'a>"],["impl<'a, 's> PartialEq<&'a str> for Name<'s>"],["impl<'s> PartialEq for EventKind<'s>"],["impl<'s> PartialEq for Primitive<'s>"],["impl<'s> PartialEq for Event<'s>"],["impl<'s> PartialEq for Name<'s>"],["impl<'s> PartialEq<str> for Name<'s>"]]]]);
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[7893]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[7092]}
\ No newline at end of file
diff --git a/main/trait.impl/core/fmt/trait.Debug.js b/main/trait.impl/core/fmt/trait.Debug.js
index 493c1fe..8118554 100644
--- a/main/trait.impl/core/fmt/trait.Debug.js
+++ b/main/trait.impl/core/fmt/trait.Debug.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["rsn",[["impl Debug for ErrorKind"],["impl Debug for ErrorKind"],["impl Debug for ListState"],["impl Debug for MapState"],["impl Debug for Nested"],["impl Debug for NestedState"],["impl Debug for Balanced"],["impl Debug for ErrorKind"],["impl Debug for Integer"],["impl Debug for FromValueError"],["impl Debug for ToValueError"],["impl Debug for Config"],["impl Debug for DeserializerError"],["impl Debug for Error"],["impl Debug for Config"],["impl Debug for Error"],["impl Debug for Config"],["impl Debug for Error"],["impl<'a> Debug for TokenKind<'a>"],["impl<'a> Debug for StructContents<'a>"],["impl<'a> Debug for Value<'a>"],["impl<'a> Debug for Token<'a>"],["impl<'a> Debug for List<'a>"],["impl<'a> Debug for Map<'a>"],["impl<'a> Debug for Named<'a>"],["impl<'a, const INCLUDE_ALL: bool> Debug for Tokenizer<'a, INCLUDE_ALL>"],["impl<'config, Output: Debug> Debug for Serializer<'config, Output>"],["impl<'config, Output: Debug> Debug for Writer<'config, Output>"],["impl<'s> Debug for EventKind<'s>"],["impl<'s> Debug for Primitive<'s>"],["impl<'s> Debug for Event<'s>"],["impl<'s> Debug for Name<'s>"],["impl<'s> Debug for Parser<'s>"]]]]);
+    var implementors = Object.fromEntries([["rsn",[["impl Debug for ErrorKind"],["impl Debug for ErrorKind"],["impl Debug for Nested"],["impl Debug for Balanced"],["impl Debug for ErrorKind"],["impl Debug for Integer"],["impl Debug for FromValueError"],["impl Debug for ToValueError"],["impl Debug for Config"],["impl Debug for DeserializerError"],["impl Debug for Error"],["impl Debug for Config"],["impl Debug for Error"],["impl Debug for Config"],["impl Debug for Error"],["impl<'a> Debug for TokenKind<'a>"],["impl<'a> Debug for StructContents<'a>"],["impl<'a> Debug for Value<'a>"],["impl<'a> Debug for Token<'a>"],["impl<'a> Debug for List<'a>"],["impl<'a> Debug for Map<'a>"],["impl<'a> Debug for Named<'a>"],["impl<'a, const INCLUDE_ALL: bool> Debug for Tokenizer<'a, INCLUDE_ALL>"],["impl<'config, Output: Debug> Debug for Serializer<'config, Output>"],["impl<'config, Output: Debug> Debug for Writer<'config, Output>"],["impl<'s> Debug for EventKind<'s>"],["impl<'s> Debug for Primitive<'s>"],["impl<'s> Debug for Event<'s>"],["impl<'s> Debug for Name<'s>"],["impl<'s> Debug for Parser<'s>"]]]]);
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[9101]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[8336]}
\ No newline at end of file
diff --git a/main/trait.impl/core/marker/trait.Copy.js b/main/trait.impl/core/marker/trait.Copy.js
index 50beba9..320f2f6 100644
--- a/main/trait.impl/core/marker/trait.Copy.js
+++ b/main/trait.impl/core/marker/trait.Copy.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["rsn",[["impl Copy for ListState"],["impl Copy for MapState"],["impl Copy for Nested"],["impl Copy for NestedState"],["impl Copy for Balanced"],["impl Copy for Integer"],["impl Copy for Config"]]]]);
+    var implementors = Object.fromEntries([["rsn",[["impl Copy for Nested"],["impl Copy for Balanced"],["impl Copy for Integer"],["impl Copy for Config"]]]]);
     if (window.register_implementors) {
         window.register_implementors(implementors);
     } else {
         window.pending_implementors = implementors;
     }
 })()
-//{"start":57,"fragment_lengths":[1802]}
\ No newline at end of file
+//{"start":57,"fragment_lengths":[1028]}
\ No newline at end of file
diff --git a/main/trait.impl/core/marker/trait.Freeze.js b/main/trait.impl/core/marker/trait.Freeze.js
index e2de53a..3641f68 100644
--- a/main/trait.impl/core/marker/trait.Freeze.js
+++ b/main/trait.impl/core/marker/trait.Freeze.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["rsn",[["impl Freeze for ErrorKind",1,["rsn::de::ErrorKind"]],["impl Freeze for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl Freeze for ListState",1,["rsn::parser::ListState"]],["impl Freeze for MapState",1,["rsn::parser::MapState"]],["impl Freeze for Nested",1,["rsn::parser::Nested"]],["impl Freeze for NestedState",1,["rsn::parser::NestedState"]],["impl Freeze for Balanced",1,["rsn::tokenizer::Balanced"]],["impl Freeze for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl Freeze for Integer",1,["rsn::tokenizer::Integer"]],["impl Freeze for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl Freeze for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl Freeze for Config",1,["rsn::writer::Config"]],["impl Freeze for DeserializerError",1,["rsn::de::DeserializerError"]],["impl Freeze for Error",1,["rsn::de::Error"]],["impl Freeze for Config",1,["rsn::parser::Config"]],["impl Freeze for Error",1,["rsn::parser::Error"]],["impl Freeze for Config",1,["rsn::ser::Config"]],["impl Freeze for Error",1,["rsn::tokenizer::Error"]],["impl<'a> Freeze for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> Freeze for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> Freeze for Value<'a>",1,["rsn::value::Value"]],["impl<'a> Freeze for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> Freeze for List<'a>",1,["rsn::value::List"]],["impl<'a> Freeze for Map<'a>",1,["rsn::value::Map"]],["impl<'a> Freeze for Named<'a>",1,["rsn::value::Named"]],["impl<'a, 'config, Output> Freeze for MapSerializer<'a, 'config, Output>",1,["rsn::ser::MapSerializer"]],["impl<'a, 'de> Freeze for EnumVariantAccessor<'a, 'de>",1,["rsn::de::EnumVariantAccessor"]],["impl<'a, 'de> Freeze for SequenceDeserializer<'a, 'de>",1,["rsn::de::SequenceDeserializer"]],["impl<'a, const INCLUDE_ALL: bool> Freeze for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> Freeze for Serializer<'config, Output>
where\n Output: Freeze,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> Freeze for Writer<'config, Output>
where\n Output: Freeze,
",1,["rsn::writer::Writer"]],["impl<'de> Freeze for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> Freeze for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> Freeze for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> Freeze for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> Freeze for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> Freeze for Parser<'s>",1,["rsn::parser::Parser"]]]]]); + var implementors = Object.fromEntries([["rsn",[["impl Freeze for ErrorKind",1,["rsn::de::ErrorKind"]],["impl Freeze for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl Freeze for Nested",1,["rsn::parser::Nested"]],["impl Freeze for Balanced",1,["rsn::tokenizer::Balanced"]],["impl Freeze for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl Freeze for Integer",1,["rsn::tokenizer::Integer"]],["impl Freeze for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl Freeze for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl Freeze for Config",1,["rsn::writer::Config"]],["impl Freeze for DeserializerError",1,["rsn::de::DeserializerError"]],["impl Freeze for Error",1,["rsn::de::Error"]],["impl Freeze for Config",1,["rsn::parser::Config"]],["impl Freeze for Error",1,["rsn::parser::Error"]],["impl Freeze for Config",1,["rsn::ser::Config"]],["impl Freeze for Error",1,["rsn::tokenizer::Error"]],["impl<'a> Freeze for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> Freeze for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> Freeze for Value<'a>",1,["rsn::value::Value"]],["impl<'a> Freeze for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> Freeze for List<'a>",1,["rsn::value::List"]],["impl<'a> Freeze for Map<'a>",1,["rsn::value::Map"]],["impl<'a> Freeze for Named<'a>",1,["rsn::value::Named"]],["impl<'a, const INCLUDE_ALL: bool> Freeze for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> Freeze for Serializer<'config, Output>
where\n Output: Freeze,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> Freeze for Writer<'config, Output>
where\n Output: Freeze,
",1,["rsn::writer::Writer"]],["impl<'de> Freeze for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> Freeze for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> Freeze for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> Freeze for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> Freeze for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> Freeze for Parser<'s>",1,["rsn::parser::Parser"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[11820]} \ No newline at end of file +//{"start":57,"fragment_lengths":[9871]} \ No newline at end of file diff --git a/main/trait.impl/core/marker/trait.Send.js b/main/trait.impl/core/marker/trait.Send.js index 3cdffeb..ec0096c 100644 --- a/main/trait.impl/core/marker/trait.Send.js +++ b/main/trait.impl/core/marker/trait.Send.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["rsn",[["impl Send for ErrorKind",1,["rsn::de::ErrorKind"]],["impl Send for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl Send for ListState",1,["rsn::parser::ListState"]],["impl Send for MapState",1,["rsn::parser::MapState"]],["impl Send for Nested",1,["rsn::parser::Nested"]],["impl Send for NestedState",1,["rsn::parser::NestedState"]],["impl Send for Balanced",1,["rsn::tokenizer::Balanced"]],["impl Send for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl Send for Integer",1,["rsn::tokenizer::Integer"]],["impl Send for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl Send for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl Send for Config",1,["rsn::writer::Config"]],["impl Send for DeserializerError",1,["rsn::de::DeserializerError"]],["impl Send for Error",1,["rsn::de::Error"]],["impl Send for Config",1,["rsn::parser::Config"]],["impl Send for Error",1,["rsn::parser::Error"]],["impl Send for Config",1,["rsn::ser::Config"]],["impl Send for Error",1,["rsn::tokenizer::Error"]],["impl<'a> Send for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> Send for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> Send for Value<'a>",1,["rsn::value::Value"]],["impl<'a> Send for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> Send for List<'a>",1,["rsn::value::List"]],["impl<'a> Send for Map<'a>",1,["rsn::value::Map"]],["impl<'a> Send for Named<'a>",1,["rsn::value::Named"]],["impl<'a, 'config, Output> Send for MapSerializer<'a, 'config, Output>
where\n Output: Send,
",1,["rsn::ser::MapSerializer"]],["impl<'a, 'de> Send for EnumVariantAccessor<'a, 'de>",1,["rsn::de::EnumVariantAccessor"]],["impl<'a, 'de> Send for SequenceDeserializer<'a, 'de>",1,["rsn::de::SequenceDeserializer"]],["impl<'a, const INCLUDE_ALL: bool> Send for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> Send for Serializer<'config, Output>
where\n Output: Send,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> Send for Writer<'config, Output>
where\n Output: Send,
",1,["rsn::writer::Writer"]],["impl<'de> Send for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> Send for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> Send for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> Send for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> Send for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> Send for Parser<'s>",1,["rsn::parser::Parser"]]]]]); + var implementors = Object.fromEntries([["rsn",[["impl Send for ErrorKind",1,["rsn::de::ErrorKind"]],["impl Send for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl Send for Nested",1,["rsn::parser::Nested"]],["impl Send for Balanced",1,["rsn::tokenizer::Balanced"]],["impl Send for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl Send for Integer",1,["rsn::tokenizer::Integer"]],["impl Send for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl Send for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl Send for Config",1,["rsn::writer::Config"]],["impl Send for DeserializerError",1,["rsn::de::DeserializerError"]],["impl Send for Error",1,["rsn::de::Error"]],["impl Send for Config",1,["rsn::parser::Config"]],["impl Send for Error",1,["rsn::parser::Error"]],["impl Send for Config",1,["rsn::ser::Config"]],["impl Send for Error",1,["rsn::tokenizer::Error"]],["impl<'a> Send for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> Send for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> Send for Value<'a>",1,["rsn::value::Value"]],["impl<'a> Send for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> Send for List<'a>",1,["rsn::value::List"]],["impl<'a> Send for Map<'a>",1,["rsn::value::Map"]],["impl<'a> Send for Named<'a>",1,["rsn::value::Named"]],["impl<'a, const INCLUDE_ALL: bool> Send for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> Send for Serializer<'config, Output>
where\n Output: Send,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> Send for Writer<'config, Output>
where\n Output: Send,
",1,["rsn::writer::Writer"]],["impl<'de> Send for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> Send for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> Send for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> Send for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> Send for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> Send for Parser<'s>",1,["rsn::parser::Parser"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[11766]} \ No newline at end of file +//{"start":57,"fragment_lengths":[9673]} \ No newline at end of file diff --git a/main/trait.impl/core/marker/trait.StructuralPartialEq.js b/main/trait.impl/core/marker/trait.StructuralPartialEq.js index 120ce0a..9746014 100644 --- a/main/trait.impl/core/marker/trait.StructuralPartialEq.js +++ b/main/trait.impl/core/marker/trait.StructuralPartialEq.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["rsn",[["impl StructuralPartialEq for ErrorKind"],["impl StructuralPartialEq for ErrorKind"],["impl StructuralPartialEq for ListState"],["impl StructuralPartialEq for MapState"],["impl StructuralPartialEq for Nested"],["impl StructuralPartialEq for NestedState"],["impl StructuralPartialEq for Balanced"],["impl StructuralPartialEq for ErrorKind"],["impl StructuralPartialEq for Integer"],["impl StructuralPartialEq for FromValueError"],["impl StructuralPartialEq for ToValueError"],["impl StructuralPartialEq for DeserializerError"],["impl StructuralPartialEq for Error"],["impl StructuralPartialEq for Error"],["impl StructuralPartialEq for Error"],["impl<'a> StructuralPartialEq for StructContents<'a>"],["impl<'a> StructuralPartialEq for Value<'a>"],["impl<'a> StructuralPartialEq for Token<'a>"],["impl<'a> StructuralPartialEq for List<'a>"],["impl<'a> StructuralPartialEq for Map<'a>"],["impl<'a> StructuralPartialEq for Named<'a>"],["impl<'s> StructuralPartialEq for EventKind<'s>"],["impl<'s> StructuralPartialEq for Primitive<'s>"],["impl<'s> StructuralPartialEq for Event<'s>"],["impl<'s> StructuralPartialEq for Name<'s>"]]]]); + var implementors = Object.fromEntries([["rsn",[["impl StructuralPartialEq for ErrorKind"],["impl StructuralPartialEq for ErrorKind"],["impl StructuralPartialEq for Nested"],["impl StructuralPartialEq for Balanced"],["impl StructuralPartialEq for ErrorKind"],["impl StructuralPartialEq for Integer"],["impl StructuralPartialEq for FromValueError"],["impl StructuralPartialEq for ToValueError"],["impl StructuralPartialEq for DeserializerError"],["impl StructuralPartialEq for Error"],["impl StructuralPartialEq for Error"],["impl StructuralPartialEq for Error"],["impl<'a> StructuralPartialEq for StructContents<'a>"],["impl<'a> StructuralPartialEq for Value<'a>"],["impl<'a> StructuralPartialEq for Token<'a>"],["impl<'a> StructuralPartialEq for List<'a>"],["impl<'a> StructuralPartialEq for Map<'a>"],["impl<'a> StructuralPartialEq for Named<'a>"],["impl<'s> StructuralPartialEq for EventKind<'s>"],["impl<'s> StructuralPartialEq for Primitive<'s>"],["impl<'s> StructuralPartialEq for Event<'s>"],["impl<'s> StructuralPartialEq for Name<'s>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[7727]} \ No newline at end of file +//{"start":57,"fragment_lengths":[6818]} \ No newline at end of file diff --git a/main/trait.impl/core/marker/trait.Sync.js b/main/trait.impl/core/marker/trait.Sync.js index bd49393..dcb5f35 100644 --- a/main/trait.impl/core/marker/trait.Sync.js +++ b/main/trait.impl/core/marker/trait.Sync.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["rsn",[["impl Sync for ErrorKind",1,["rsn::de::ErrorKind"]],["impl Sync for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl Sync for ListState",1,["rsn::parser::ListState"]],["impl Sync for MapState",1,["rsn::parser::MapState"]],["impl Sync for Nested",1,["rsn::parser::Nested"]],["impl Sync for NestedState",1,["rsn::parser::NestedState"]],["impl Sync for Balanced",1,["rsn::tokenizer::Balanced"]],["impl Sync for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl Sync for Integer",1,["rsn::tokenizer::Integer"]],["impl Sync for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl Sync for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl Sync for Config",1,["rsn::writer::Config"]],["impl Sync for DeserializerError",1,["rsn::de::DeserializerError"]],["impl Sync for Error",1,["rsn::de::Error"]],["impl Sync for Config",1,["rsn::parser::Config"]],["impl Sync for Error",1,["rsn::parser::Error"]],["impl Sync for Config",1,["rsn::ser::Config"]],["impl Sync for Error",1,["rsn::tokenizer::Error"]],["impl<'a> Sync for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> Sync for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> Sync for Value<'a>",1,["rsn::value::Value"]],["impl<'a> Sync for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> Sync for List<'a>",1,["rsn::value::List"]],["impl<'a> Sync for Map<'a>",1,["rsn::value::Map"]],["impl<'a> Sync for Named<'a>",1,["rsn::value::Named"]],["impl<'a, 'config, Output> Sync for MapSerializer<'a, 'config, Output>
where\n Output: Sync,
",1,["rsn::ser::MapSerializer"]],["impl<'a, 'de> Sync for EnumVariantAccessor<'a, 'de>",1,["rsn::de::EnumVariantAccessor"]],["impl<'a, 'de> Sync for SequenceDeserializer<'a, 'de>",1,["rsn::de::SequenceDeserializer"]],["impl<'a, const INCLUDE_ALL: bool> Sync for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> Sync for Serializer<'config, Output>
where\n Output: Sync,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> Sync for Writer<'config, Output>
where\n Output: Sync,
",1,["rsn::writer::Writer"]],["impl<'de> Sync for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> Sync for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> Sync for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> Sync for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> Sync for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> Sync for Parser<'s>",1,["rsn::parser::Parser"]]]]]); + var implementors = Object.fromEntries([["rsn",[["impl Sync for ErrorKind",1,["rsn::de::ErrorKind"]],["impl Sync for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl Sync for Nested",1,["rsn::parser::Nested"]],["impl Sync for Balanced",1,["rsn::tokenizer::Balanced"]],["impl Sync for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl Sync for Integer",1,["rsn::tokenizer::Integer"]],["impl Sync for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl Sync for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl Sync for Config",1,["rsn::writer::Config"]],["impl Sync for DeserializerError",1,["rsn::de::DeserializerError"]],["impl Sync for Error",1,["rsn::de::Error"]],["impl Sync for Config",1,["rsn::parser::Config"]],["impl Sync for Error",1,["rsn::parser::Error"]],["impl Sync for Config",1,["rsn::ser::Config"]],["impl Sync for Error",1,["rsn::tokenizer::Error"]],["impl<'a> Sync for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> Sync for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> Sync for Value<'a>",1,["rsn::value::Value"]],["impl<'a> Sync for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> Sync for List<'a>",1,["rsn::value::List"]],["impl<'a> Sync for Map<'a>",1,["rsn::value::Map"]],["impl<'a> Sync for Named<'a>",1,["rsn::value::Named"]],["impl<'a, const INCLUDE_ALL: bool> Sync for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> Sync for Serializer<'config, Output>
where\n Output: Sync,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> Sync for Writer<'config, Output>
where\n Output: Sync,
",1,["rsn::writer::Writer"]],["impl<'de> Sync for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> Sync for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> Sync for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> Sync for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> Sync for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> Sync for Parser<'s>",1,["rsn::parser::Parser"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[11766]} \ No newline at end of file +//{"start":57,"fragment_lengths":[9673]} \ No newline at end of file diff --git a/main/trait.impl/core/marker/trait.Unpin.js b/main/trait.impl/core/marker/trait.Unpin.js index 940eb9f..d0447dc 100644 --- a/main/trait.impl/core/marker/trait.Unpin.js +++ b/main/trait.impl/core/marker/trait.Unpin.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["rsn",[["impl Unpin for ErrorKind",1,["rsn::de::ErrorKind"]],["impl Unpin for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl Unpin for ListState",1,["rsn::parser::ListState"]],["impl Unpin for MapState",1,["rsn::parser::MapState"]],["impl Unpin for Nested",1,["rsn::parser::Nested"]],["impl Unpin for NestedState",1,["rsn::parser::NestedState"]],["impl Unpin for Balanced",1,["rsn::tokenizer::Balanced"]],["impl Unpin for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl Unpin for Integer",1,["rsn::tokenizer::Integer"]],["impl Unpin for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl Unpin for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl Unpin for Config",1,["rsn::writer::Config"]],["impl Unpin for DeserializerError",1,["rsn::de::DeserializerError"]],["impl Unpin for Error",1,["rsn::de::Error"]],["impl Unpin for Config",1,["rsn::parser::Config"]],["impl Unpin for Error",1,["rsn::parser::Error"]],["impl Unpin for Config",1,["rsn::ser::Config"]],["impl Unpin for Error",1,["rsn::tokenizer::Error"]],["impl<'a> Unpin for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> Unpin for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> Unpin for Value<'a>",1,["rsn::value::Value"]],["impl<'a> Unpin for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> Unpin for List<'a>",1,["rsn::value::List"]],["impl<'a> Unpin for Map<'a>",1,["rsn::value::Map"]],["impl<'a> Unpin for Named<'a>",1,["rsn::value::Named"]],["impl<'a, 'config, Output> Unpin for MapSerializer<'a, 'config, Output>",1,["rsn::ser::MapSerializer"]],["impl<'a, 'de> Unpin for EnumVariantAccessor<'a, 'de>",1,["rsn::de::EnumVariantAccessor"]],["impl<'a, 'de> Unpin for SequenceDeserializer<'a, 'de>",1,["rsn::de::SequenceDeserializer"]],["impl<'a, const INCLUDE_ALL: bool> Unpin for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> Unpin for Serializer<'config, Output>
where\n Output: Unpin,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> Unpin for Writer<'config, Output>
where\n Output: Unpin,
",1,["rsn::writer::Writer"]],["impl<'de> Unpin for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> Unpin for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> Unpin for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> Unpin for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> Unpin for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> Unpin for Parser<'s>",1,["rsn::parser::Parser"]]]]]); + var implementors = Object.fromEntries([["rsn",[["impl Unpin for ErrorKind",1,["rsn::de::ErrorKind"]],["impl Unpin for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl Unpin for Nested",1,["rsn::parser::Nested"]],["impl Unpin for Balanced",1,["rsn::tokenizer::Balanced"]],["impl Unpin for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl Unpin for Integer",1,["rsn::tokenizer::Integer"]],["impl Unpin for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl Unpin for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl Unpin for Config",1,["rsn::writer::Config"]],["impl Unpin for DeserializerError",1,["rsn::de::DeserializerError"]],["impl Unpin for Error",1,["rsn::de::Error"]],["impl Unpin for Config",1,["rsn::parser::Config"]],["impl Unpin for Error",1,["rsn::parser::Error"]],["impl Unpin for Config",1,["rsn::ser::Config"]],["impl Unpin for Error",1,["rsn::tokenizer::Error"]],["impl<'a> Unpin for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> Unpin for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> Unpin for Value<'a>",1,["rsn::value::Value"]],["impl<'a> Unpin for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> Unpin for List<'a>",1,["rsn::value::List"]],["impl<'a> Unpin for Map<'a>",1,["rsn::value::Map"]],["impl<'a> Unpin for Named<'a>",1,["rsn::value::Named"]],["impl<'a, const INCLUDE_ALL: bool> Unpin for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> Unpin for Serializer<'config, Output>
where\n Output: Unpin,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> Unpin for Writer<'config, Output>
where\n Output: Unpin,
",1,["rsn::writer::Writer"]],["impl<'de> Unpin for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> Unpin for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> Unpin for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> Unpin for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> Unpin for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> Unpin for Parser<'s>",1,["rsn::parser::Parser"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[11703]} \ No newline at end of file +//{"start":57,"fragment_lengths":[9772]} \ No newline at end of file diff --git a/main/trait.impl/core/ops/drop/trait.Drop.js b/main/trait.impl/core/ops/drop/trait.Drop.js deleted file mode 100644 index 46fcdb4..0000000 --- a/main/trait.impl/core/ops/drop/trait.Drop.js +++ /dev/null @@ -1,9 +0,0 @@ -(function() { - var implementors = Object.fromEntries([["rsn",[["impl<'a, 'de> Drop for SequenceDeserializer<'a, 'de>"]]]]); - if (window.register_implementors) { - window.register_implementors(implementors); - } else { - window.pending_implementors = implementors; - } -})() -//{"start":57,"fragment_lengths":[332]} \ No newline at end of file diff --git a/main/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js b/main/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js index efb3f43..46ec5f0 100644 --- a/main/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js +++ b/main/trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["rsn",[["impl RefUnwindSafe for ErrorKind",1,["rsn::de::ErrorKind"]],["impl RefUnwindSafe for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl RefUnwindSafe for ListState",1,["rsn::parser::ListState"]],["impl RefUnwindSafe for MapState",1,["rsn::parser::MapState"]],["impl RefUnwindSafe for Nested",1,["rsn::parser::Nested"]],["impl RefUnwindSafe for NestedState",1,["rsn::parser::NestedState"]],["impl RefUnwindSafe for Balanced",1,["rsn::tokenizer::Balanced"]],["impl RefUnwindSafe for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl RefUnwindSafe for Integer",1,["rsn::tokenizer::Integer"]],["impl RefUnwindSafe for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl RefUnwindSafe for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl RefUnwindSafe for Config",1,["rsn::writer::Config"]],["impl RefUnwindSafe for DeserializerError",1,["rsn::de::DeserializerError"]],["impl RefUnwindSafe for Error",1,["rsn::de::Error"]],["impl RefUnwindSafe for Config",1,["rsn::parser::Config"]],["impl RefUnwindSafe for Error",1,["rsn::parser::Error"]],["impl RefUnwindSafe for Config",1,["rsn::ser::Config"]],["impl RefUnwindSafe for Error",1,["rsn::tokenizer::Error"]],["impl<'a> RefUnwindSafe for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> RefUnwindSafe for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> RefUnwindSafe for Value<'a>",1,["rsn::value::Value"]],["impl<'a> RefUnwindSafe for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> RefUnwindSafe for List<'a>",1,["rsn::value::List"]],["impl<'a> RefUnwindSafe for Map<'a>",1,["rsn::value::Map"]],["impl<'a> RefUnwindSafe for Named<'a>",1,["rsn::value::Named"]],["impl<'a, 'config, Output> RefUnwindSafe for MapSerializer<'a, 'config, Output>
where\n Output: RefUnwindSafe,
",1,["rsn::ser::MapSerializer"]],["impl<'a, 'de> RefUnwindSafe for EnumVariantAccessor<'a, 'de>",1,["rsn::de::EnumVariantAccessor"]],["impl<'a, 'de> RefUnwindSafe for SequenceDeserializer<'a, 'de>",1,["rsn::de::SequenceDeserializer"]],["impl<'a, const INCLUDE_ALL: bool> RefUnwindSafe for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> RefUnwindSafe for Serializer<'config, Output>
where\n Output: RefUnwindSafe,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> RefUnwindSafe for Writer<'config, Output>
where\n Output: RefUnwindSafe,
",1,["rsn::writer::Writer"]],["impl<'de> RefUnwindSafe for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> RefUnwindSafe for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> RefUnwindSafe for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> RefUnwindSafe for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> RefUnwindSafe for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> RefUnwindSafe for Parser<'s>",1,["rsn::parser::Parser"]]]]]); + var implementors = Object.fromEntries([["rsn",[["impl RefUnwindSafe for ErrorKind",1,["rsn::de::ErrorKind"]],["impl RefUnwindSafe for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl RefUnwindSafe for Nested",1,["rsn::parser::Nested"]],["impl RefUnwindSafe for Balanced",1,["rsn::tokenizer::Balanced"]],["impl RefUnwindSafe for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl RefUnwindSafe for Integer",1,["rsn::tokenizer::Integer"]],["impl RefUnwindSafe for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl RefUnwindSafe for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl RefUnwindSafe for Config",1,["rsn::writer::Config"]],["impl RefUnwindSafe for DeserializerError",1,["rsn::de::DeserializerError"]],["impl RefUnwindSafe for Error",1,["rsn::de::Error"]],["impl RefUnwindSafe for Config",1,["rsn::parser::Config"]],["impl RefUnwindSafe for Error",1,["rsn::parser::Error"]],["impl RefUnwindSafe for Config",1,["rsn::ser::Config"]],["impl RefUnwindSafe for Error",1,["rsn::tokenizer::Error"]],["impl<'a> RefUnwindSafe for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> RefUnwindSafe for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> RefUnwindSafe for Value<'a>",1,["rsn::value::Value"]],["impl<'a> RefUnwindSafe for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> RefUnwindSafe for List<'a>",1,["rsn::value::List"]],["impl<'a> RefUnwindSafe for Map<'a>",1,["rsn::value::Map"]],["impl<'a> RefUnwindSafe for Named<'a>",1,["rsn::value::Named"]],["impl<'a, const INCLUDE_ALL: bool> RefUnwindSafe for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> RefUnwindSafe for Serializer<'config, Output>
where\n Output: RefUnwindSafe,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> RefUnwindSafe for Writer<'config, Output>
where\n Output: RefUnwindSafe,
",1,["rsn::writer::Writer"]],["impl<'de> RefUnwindSafe for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> RefUnwindSafe for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> RefUnwindSafe for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> RefUnwindSafe for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> RefUnwindSafe for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> RefUnwindSafe for Parser<'s>",1,["rsn::parser::Parser"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[13766]} \ No newline at end of file +//{"start":57,"fragment_lengths":[11323]} \ No newline at end of file diff --git a/main/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js b/main/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js index cbc86c7..b8e9ec7 100644 --- a/main/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js +++ b/main/trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["rsn",[["impl UnwindSafe for ErrorKind",1,["rsn::de::ErrorKind"]],["impl UnwindSafe for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl UnwindSafe for ListState",1,["rsn::parser::ListState"]],["impl UnwindSafe for MapState",1,["rsn::parser::MapState"]],["impl UnwindSafe for Nested",1,["rsn::parser::Nested"]],["impl UnwindSafe for NestedState",1,["rsn::parser::NestedState"]],["impl UnwindSafe for Balanced",1,["rsn::tokenizer::Balanced"]],["impl UnwindSafe for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl UnwindSafe for Integer",1,["rsn::tokenizer::Integer"]],["impl UnwindSafe for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl UnwindSafe for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl UnwindSafe for Config",1,["rsn::writer::Config"]],["impl UnwindSafe for DeserializerError",1,["rsn::de::DeserializerError"]],["impl UnwindSafe for Error",1,["rsn::de::Error"]],["impl UnwindSafe for Config",1,["rsn::parser::Config"]],["impl UnwindSafe for Error",1,["rsn::parser::Error"]],["impl UnwindSafe for Config",1,["rsn::ser::Config"]],["impl UnwindSafe for Error",1,["rsn::tokenizer::Error"]],["impl<'a> UnwindSafe for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> UnwindSafe for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> UnwindSafe for Value<'a>",1,["rsn::value::Value"]],["impl<'a> UnwindSafe for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> UnwindSafe for List<'a>",1,["rsn::value::List"]],["impl<'a> UnwindSafe for Map<'a>",1,["rsn::value::Map"]],["impl<'a> UnwindSafe for Named<'a>",1,["rsn::value::Named"]],["impl<'a, 'config, Output> !UnwindSafe for MapSerializer<'a, 'config, Output>",1,["rsn::ser::MapSerializer"]],["impl<'a, 'de> !UnwindSafe for EnumVariantAccessor<'a, 'de>",1,["rsn::de::EnumVariantAccessor"]],["impl<'a, 'de> !UnwindSafe for SequenceDeserializer<'a, 'de>",1,["rsn::de::SequenceDeserializer"]],["impl<'a, const INCLUDE_ALL: bool> UnwindSafe for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> UnwindSafe for Serializer<'config, Output>
where\n Output: UnwindSafe,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> UnwindSafe for Writer<'config, Output>
where\n Output: UnwindSafe,
",1,["rsn::writer::Writer"]],["impl<'de> UnwindSafe for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> UnwindSafe for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> UnwindSafe for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> UnwindSafe for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> UnwindSafe for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> UnwindSafe for Parser<'s>",1,["rsn::parser::Parser"]]]]]); + var implementors = Object.fromEntries([["rsn",[["impl UnwindSafe for ErrorKind",1,["rsn::de::ErrorKind"]],["impl UnwindSafe for ErrorKind",1,["rsn::parser::ErrorKind"]],["impl UnwindSafe for Nested",1,["rsn::parser::Nested"]],["impl UnwindSafe for Balanced",1,["rsn::tokenizer::Balanced"]],["impl UnwindSafe for ErrorKind",1,["rsn::tokenizer::ErrorKind"]],["impl UnwindSafe for Integer",1,["rsn::tokenizer::Integer"]],["impl UnwindSafe for FromValueError",1,["rsn::value::serde::FromValueError"]],["impl UnwindSafe for ToValueError",1,["rsn::value::serde::ToValueError"]],["impl UnwindSafe for Config",1,["rsn::writer::Config"]],["impl UnwindSafe for DeserializerError",1,["rsn::de::DeserializerError"]],["impl UnwindSafe for Error",1,["rsn::de::Error"]],["impl UnwindSafe for Config",1,["rsn::parser::Config"]],["impl UnwindSafe for Error",1,["rsn::parser::Error"]],["impl UnwindSafe for Config",1,["rsn::ser::Config"]],["impl UnwindSafe for Error",1,["rsn::tokenizer::Error"]],["impl<'a> UnwindSafe for TokenKind<'a>",1,["rsn::tokenizer::TokenKind"]],["impl<'a> UnwindSafe for StructContents<'a>",1,["rsn::value::StructContents"]],["impl<'a> UnwindSafe for Value<'a>",1,["rsn::value::Value"]],["impl<'a> UnwindSafe for Token<'a>",1,["rsn::tokenizer::Token"]],["impl<'a> UnwindSafe for List<'a>",1,["rsn::value::List"]],["impl<'a> UnwindSafe for Map<'a>",1,["rsn::value::Map"]],["impl<'a> UnwindSafe for Named<'a>",1,["rsn::value::Named"]],["impl<'a, const INCLUDE_ALL: bool> UnwindSafe for Tokenizer<'a, INCLUDE_ALL>",1,["rsn::tokenizer::Tokenizer"]],["impl<'config, Output> UnwindSafe for Serializer<'config, Output>
where\n Output: UnwindSafe,
",1,["rsn::ser::Serializer"]],["impl<'config, Output> UnwindSafe for Writer<'config, Output>
where\n Output: UnwindSafe,
",1,["rsn::writer::Writer"]],["impl<'de> UnwindSafe for Deserializer<'de>",1,["rsn::de::Deserializer"]],["impl<'s> UnwindSafe for EventKind<'s>",1,["rsn::parser::EventKind"]],["impl<'s> UnwindSafe for Primitive<'s>",1,["rsn::parser::Primitive"]],["impl<'s> UnwindSafe for Event<'s>",1,["rsn::parser::Event"]],["impl<'s> UnwindSafe for Name<'s>",1,["rsn::parser::Name"]],["impl<'s> UnwindSafe for Parser<'s>",1,["rsn::parser::Parser"]]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[13188]} \ No newline at end of file +//{"start":57,"fragment_lengths":[11026]} \ No newline at end of file diff --git a/main/trait.impl/rsn/tokenizer/trait.Integral.js b/main/trait.impl/rsn/tokenizer/trait.Integral.js deleted file mode 100644 index 861792f..0000000 --- a/main/trait.impl/rsn/tokenizer/trait.Integral.js +++ /dev/null @@ -1,9 +0,0 @@ -(function() { - var implementors = Object.fromEntries([["rsn",[]]]); - if (window.register_implementors) { - window.register_implementors(implementors); - } else { - window.pending_implementors = implementors; - } -})() -//{"start":57,"fragment_lengths":[10]} \ No newline at end of file diff --git a/main/trait.impl/serde/de/trait.SeqAccess.js b/main/trait.impl/serde/de/trait.SeqAccess.js deleted file mode 100644 index bcb0392..0000000 --- a/main/trait.impl/serde/de/trait.SeqAccess.js +++ /dev/null @@ -1,9 +0,0 @@ -(function() { - var implementors = Object.fromEntries([["rsn",[["impl<'a, 'de> SeqAccess<'de> for SequenceDeserializer<'a, 'de>"]]]]); - if (window.register_implementors) { - window.register_implementors(implementors); - } else { - window.pending_implementors = implementors; - } -})() -//{"start":57,"fragment_lengths":[343]} \ No newline at end of file diff --git a/main/trait.impl/serde/de/trait.VariantAccess.js b/main/trait.impl/serde/de/trait.VariantAccess.js deleted file mode 100644 index 315d9e9..0000000 --- a/main/trait.impl/serde/de/trait.VariantAccess.js +++ /dev/null @@ -1,9 +0,0 @@ -(function() { - var implementors = Object.fromEntries([["rsn",[["impl<'a, 'de> VariantAccess<'de> for EnumVariantAccessor<'a, 'de>"]]]]); - if (window.register_implementors) { - window.register_implementors(implementors); - } else { - window.pending_implementors = implementors; - } -})() -//{"start":57,"fragment_lengths":[346]} \ No newline at end of file diff --git a/main/trait.impl/serde/ser/trait.SerializeMap.js b/main/trait.impl/serde/ser/trait.SerializeMap.js deleted file mode 100644 index 7554602..0000000 --- a/main/trait.impl/serde/ser/trait.SerializeMap.js +++ /dev/null @@ -1,9 +0,0 @@ -(function() { - var implementors = Object.fromEntries([["rsn",[["impl<'a, 'config, Output> SerializeMap for MapSerializer<'a, 'config, Output>
where\n Output: Write,
"]]]]); - if (window.register_implementors) { - window.register_implementors(implementors); - } else { - window.pending_implementors = implementors; - } -})() -//{"start":57,"fragment_lengths":[525]} \ No newline at end of file diff --git a/main/trait.impl/serde/ser/trait.SerializeStruct.js b/main/trait.impl/serde/ser/trait.SerializeStruct.js deleted file mode 100644 index 2e010ca..0000000 --- a/main/trait.impl/serde/ser/trait.SerializeStruct.js +++ /dev/null @@ -1,9 +0,0 @@ -(function() { - var implementors = Object.fromEntries([["rsn",[["impl<'a, 'config, Output> SerializeStruct for MapSerializer<'a, 'config, Output>
where\n Output: Write,
"]]]]); - if (window.register_implementors) { - window.register_implementors(implementors); - } else { - window.pending_implementors = implementors; - } -})() -//{"start":57,"fragment_lengths":[534]} \ No newline at end of file diff --git a/main/type.impl/rsn/value/enum.Value.js b/main/type.impl/rsn/value/enum.Value.js index 625ae92..a6a1f87 100644 --- a/main/type.impl/rsn/value/enum.Value.js +++ b/main/type.impl/rsn/value/enum.Value.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["rsn",[["
source§

impl<'a> Clone for Value<'a>

source§

fn clone(&self) -> Value<'a>

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
","Clone","rsn::value::OwnedValue"],["
source§

impl<'a> Debug for Value<'a>

source§

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

Formats the value using the given formatter. Read more
","Debug","rsn::value::OwnedValue"],["
source§

impl<'a> Display for Value<'a>

source§

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

Formats the value using the given formatter. Read more
","Display","rsn::value::OwnedValue"],["
source§

impl FromStr for Value<'static>

source§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
","FromStr","rsn::value::OwnedValue"],["
source§

impl<'a> PartialEq for Value<'a>

source§

fn eq(&self, other: &Value<'a>) -> 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,\nand should not be overridden without very good reason.
","PartialEq","rsn::value::OwnedValue"],["
source§

impl<'a> Value<'a>

source

pub fn as_u8(&self) -> Option<u8>

source

pub fn as_u16(&self) -> Option<u16>

source

pub fn as_u32(&self) -> Option<u32>

source

pub fn as_u64(&self) -> Option<u64>

source

pub fn as_u128(&self) -> Option<u128>

source

pub fn as_usize(&self) -> Option<usize>

source

pub fn as_i8(&self) -> Option<i8>

source

pub fn as_i16(&self) -> Option<i16>

source

pub fn as_i32(&self) -> Option<i32>

source

pub fn as_i64(&self) -> Option<i64>

source

pub fn as_i128(&self) -> Option<i128>

source

pub fn as_isize(&self) -> Option<isize>

source

pub fn from_str(source: &'a str, config: Config) -> Result<Self, Error>

source

pub const fn unit() -> Self

source

pub fn from_serialize<S: Serialize>(value: &S) -> Self

source

pub fn to_deserialize<D: Deserialize<'a>>(&self) -> Result<D, FromValueError>

source

pub fn into_owned(self) -> Value<'static>

source

pub fn as_f64(&self) -> Option<f64>

source

pub fn as_str(&self) -> Option<&str>

source

pub fn as_bytes(&self) -> Option<&[u8]>

",0,"rsn::value::OwnedValue"],["
source§

impl<'a> StructuralPartialEq for Value<'a>

","StructuralPartialEq","rsn::value::OwnedValue"]]]]); + var type_impls = Object.fromEntries([["rsn",[["
source§

impl<'a> Clone for Value<'a>

source§

fn clone(&self) -> Value<'a>

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
","Clone","rsn::value::OwnedValue"],["
source§

impl<'a> Debug for Value<'a>

source§

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

Formats the value using the given formatter. Read more
","Debug","rsn::value::OwnedValue"],["
source§

impl<'a> Display for Value<'a>

source§

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

Formats the value using the given formatter. Read more
","Display","rsn::value::OwnedValue"],["
source§

impl FromStr for Value<'static>

source§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
","FromStr","rsn::value::OwnedValue"],["
source§

impl<'a> PartialEq for Value<'a>

source§

fn eq(&self, other: &Value<'a>) -> 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,\nand should not be overridden without very good reason.
","PartialEq","rsn::value::OwnedValue"],["
source§

impl<'a> Value<'a>

source

pub fn as_u8(&self) -> Option<u8>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_u16(&self) -> Option<u16>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_u32(&self) -> Option<u32>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_u64(&self) -> Option<u64>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_u128(&self) -> Option<u128>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_usize(&self) -> Option<usize>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_i8(&self) -> Option<i8>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_i16(&self) -> Option<i16>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_i32(&self) -> Option<i32>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_i64(&self) -> Option<i64>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_i128(&self) -> Option<i128>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn as_isize(&self) -> Option<isize>

Returns this value as a\n$r#type\nif the value is an integer that can fit in a\n$r#type

\n
source

pub fn from_str(source: &'a str, config: Config) -> Result<Self, Error>

Parses source as a Value.

\n
§Errors
\n

Returns any error encountered while parsing source.

\n
source

pub const fn unit() -> Self

Returns a value representing the unit type.

\n
source

pub fn from_serialize<S: Serialize>(value: &S) -> Result<Self, ToValueError>

Creates a value by serializing value using Serde.

\n
§Errors
\n

Returns an error if the value cannot be represented losslessly or if\nany errors occur from Serializer implementations.

\n
source

pub fn to_deserialize<D: Deserialize<'a>>(&self) -> Result<D, FromValueError>

Deserializes self as D using Serde.

\n
§Errors
\n

Returns an error if self cannot be deserialized as D.

\n
source

pub fn into_owned(self) -> Value<'static>

Returns the owned version of self, copying any borrowed data to the\nheap.

\n
source

pub fn as_f64(&self) -> Option<f64>

Returns this value as a floating point number.

\n

If this is an integer, this will cast the integer to an f64.

\n
source

pub fn as_str(&self) -> Option<&str>

Returns this value as a str, if possible.

\n

Identifier, String, and Bytes bytes all can be returned from this\nfunction.

\n
source

pub fn as_bytes(&self) -> Option<&[u8]>

Returns the underlying bytes for this value, if it can be represented as\na byte slice.

\n

Identifier, String, and Bytes bytes all can be returned from this\nfunction.

\n
",0,"rsn::value::OwnedValue"],["
source§

impl<'a> StructuralPartialEq for Value<'a>

","StructuralPartialEq","rsn::value::OwnedValue"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() -//{"start":55,"fragment_lengths":[21271]} \ No newline at end of file +//{"start":55,"fragment_lengths":[26264]} \ No newline at end of file