Skip to main content

Llsd

Enum Llsd 

Source
pub enum Llsd {
    Undefined,
    Boolean(bool),
    Integer(i32),
    Real(f64),
    String(String),
    Uri(Uri),
    Uuid(Uuid),
    Date(DateTime<Utc>),
    Binary(Vec<u8>),
    Array(Vec<Llsd>),
    Map(HashMap<String, Llsd>),
}

Variants§

§

Undefined

§

Boolean(bool)

§

Integer(i32)

§

Real(f64)

§

String(String)

§

Uri(Uri)

§

Uuid(Uuid)

§

Date(DateTime<Utc>)

§

Binary(Vec<u8>)

§

Array(Vec<Llsd>)

§

Map(HashMap<String, Llsd>)

Implementations§

Source§

impl Llsd

Source

pub fn is_undefined(&self) -> bool

Returns true if this is a Llsd::Undefined, otherwise false

Source

pub fn is_boolean(&self) -> bool

Returns true if this is a Llsd::Boolean, otherwise false

Source

pub fn as_boolean_mut(&mut self) -> Option<&mut bool>

Optionally returns mutable references to the inner fields if this is a Llsd::Boolean, otherwise None

Source

pub fn as_boolean(&self) -> Option<&bool>

Optionally returns references to the inner fields if this is a Llsd::Boolean, otherwise None

Source

pub fn into_boolean(self) -> Result<bool, Self>

Returns the inner fields if this is a Llsd::Boolean, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_boolean_unchecked(self) -> bool

Unchecked return of the inner fields of Llsd::Boolean.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_boolean_unchecked(&self) -> &bool

Unchecked reference of the inner fields of Llsd::Boolean.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_boolean_mut_unchecked(&mut self) -> &mut bool

Unchecked mutable reference of the inner fields of Llsd::Boolean.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_integer(&self) -> bool

Returns true if this is a Llsd::Integer, otherwise false

Source

pub fn as_integer_mut(&mut self) -> Option<&mut i32>

Optionally returns mutable references to the inner fields if this is a Llsd::Integer, otherwise None

Source

pub fn as_integer(&self) -> Option<&i32>

Optionally returns references to the inner fields if this is a Llsd::Integer, otherwise None

Source

pub fn into_integer(self) -> Result<i32, Self>

Returns the inner fields if this is a Llsd::Integer, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_integer_unchecked(self) -> i32

Unchecked return of the inner fields of Llsd::Integer.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_integer_unchecked(&self) -> &i32

Unchecked reference of the inner fields of Llsd::Integer.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_integer_mut_unchecked(&mut self) -> &mut i32

Unchecked mutable reference of the inner fields of Llsd::Integer.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_real(&self) -> bool

Returns true if this is a Llsd::Real, otherwise false

Source

pub fn as_real_mut(&mut self) -> Option<&mut f64>

Optionally returns mutable references to the inner fields if this is a Llsd::Real, otherwise None

Source

pub fn as_real(&self) -> Option<&f64>

Optionally returns references to the inner fields if this is a Llsd::Real, otherwise None

Source

pub fn into_real(self) -> Result<f64, Self>

Returns the inner fields if this is a Llsd::Real, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_real_unchecked(self) -> f64

Unchecked return of the inner fields of Llsd::Real.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_real_unchecked(&self) -> &f64

Unchecked reference of the inner fields of Llsd::Real.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_real_mut_unchecked(&mut self) -> &mut f64

Unchecked mutable reference of the inner fields of Llsd::Real.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_string(&self) -> bool

Returns true if this is a Llsd::String, otherwise false

Source

pub fn as_string_mut(&mut self) -> Option<&mut String>

Optionally returns mutable references to the inner fields if this is a Llsd::String, otherwise None

Source

pub fn as_string(&self) -> Option<&String>

Optionally returns references to the inner fields if this is a Llsd::String, otherwise None

Source

pub fn into_string(self) -> Result<String, Self>

Returns the inner fields if this is a Llsd::String, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_string_unchecked(self) -> String

Unchecked return of the inner fields of Llsd::String.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_string_unchecked(&self) -> &String

Unchecked reference of the inner fields of Llsd::String.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_string_mut_unchecked(&mut self) -> &mut String

Unchecked mutable reference of the inner fields of Llsd::String.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_uri(&self) -> bool

Returns true if this is a Llsd::Uri, otherwise false

Source

pub fn as_uri_mut(&mut self) -> Option<&mut Uri>

Optionally returns mutable references to the inner fields if this is a Llsd::Uri, otherwise None

Source

pub fn as_uri(&self) -> Option<&Uri>

Optionally returns references to the inner fields if this is a Llsd::Uri, otherwise None

Source

pub fn into_uri(self) -> Result<Uri, Self>

Returns the inner fields if this is a Llsd::Uri, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_uri_unchecked(self) -> Uri

Unchecked return of the inner fields of Llsd::Uri.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_uri_unchecked(&self) -> &Uri

Unchecked reference of the inner fields of Llsd::Uri.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_uri_mut_unchecked(&mut self) -> &mut Uri

Unchecked mutable reference of the inner fields of Llsd::Uri.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_uuid(&self) -> bool

Returns true if this is a Llsd::Uuid, otherwise false

Source

pub fn as_uuid_mut(&mut self) -> Option<&mut Uuid>

Optionally returns mutable references to the inner fields if this is a Llsd::Uuid, otherwise None

Source

pub fn as_uuid(&self) -> Option<&Uuid>

Optionally returns references to the inner fields if this is a Llsd::Uuid, otherwise None

Source

pub fn into_uuid(self) -> Result<Uuid, Self>

Returns the inner fields if this is a Llsd::Uuid, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_uuid_unchecked(self) -> Uuid

Unchecked return of the inner fields of Llsd::Uuid.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_uuid_unchecked(&self) -> &Uuid

Unchecked reference of the inner fields of Llsd::Uuid.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_uuid_mut_unchecked(&mut self) -> &mut Uuid

Unchecked mutable reference of the inner fields of Llsd::Uuid.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_date(&self) -> bool

Returns true if this is a Llsd::Date, otherwise false

Source

pub fn as_date_mut(&mut self) -> Option<&mut DateTime<Utc>>

Optionally returns mutable references to the inner fields if this is a Llsd::Date, otherwise None

Source

pub fn as_date(&self) -> Option<&DateTime<Utc>>

Optionally returns references to the inner fields if this is a Llsd::Date, otherwise None

Source

pub fn into_date(self) -> Result<DateTime<Utc>, Self>

Returns the inner fields if this is a Llsd::Date, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_date_unchecked(self) -> DateTime<Utc>

Unchecked return of the inner fields of Llsd::Date.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_date_unchecked(&self) -> &DateTime<Utc>

Unchecked reference of the inner fields of Llsd::Date.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_date_mut_unchecked(&mut self) -> &mut DateTime<Utc>

Unchecked mutable reference of the inner fields of Llsd::Date.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_binary(&self) -> bool

Returns true if this is a Llsd::Binary, otherwise false

Source

pub fn as_binary_mut(&mut self) -> Option<&mut Vec<u8>>

Optionally returns mutable references to the inner fields if this is a Llsd::Binary, otherwise None

Source

pub fn as_binary(&self) -> Option<&Vec<u8>>

Optionally returns references to the inner fields if this is a Llsd::Binary, otherwise None

Source

pub fn into_binary(self) -> Result<Vec<u8>, Self>

Returns the inner fields if this is a Llsd::Binary, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_binary_unchecked(self) -> Vec<u8>

Unchecked return of the inner fields of Llsd::Binary.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_binary_unchecked(&self) -> &Vec<u8>

Unchecked reference of the inner fields of Llsd::Binary.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_binary_mut_unchecked(&mut self) -> &mut Vec<u8>

Unchecked mutable reference of the inner fields of Llsd::Binary.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_array(&self) -> bool

Returns true if this is a Llsd::Array, otherwise false

Source

pub fn as_array_mut(&mut self) -> Option<&mut Vec<Llsd>>

Optionally returns mutable references to the inner fields if this is a Llsd::Array, otherwise None

Source

pub fn as_array(&self) -> Option<&Vec<Llsd>>

Optionally returns references to the inner fields if this is a Llsd::Array, otherwise None

Source

pub fn into_array(self) -> Result<Vec<Llsd>, Self>

Returns the inner fields if this is a Llsd::Array, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_array_unchecked(self) -> Vec<Llsd>

Unchecked return of the inner fields of Llsd::Array.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_array_unchecked(&self) -> &Vec<Llsd>

Unchecked reference of the inner fields of Llsd::Array.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_array_mut_unchecked(&mut self) -> &mut Vec<Llsd>

Unchecked mutable reference of the inner fields of Llsd::Array.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub fn is_map(&self) -> bool

Returns true if this is a Llsd::Map, otherwise false

Source

pub fn as_map_mut(&mut self) -> Option<&mut HashMap<String, Llsd>>

Optionally returns mutable references to the inner fields if this is a Llsd::Map, otherwise None

Source

pub fn as_map(&self) -> Option<&HashMap<String, Llsd>>

Optionally returns references to the inner fields if this is a Llsd::Map, otherwise None

Source

pub fn into_map(self) -> Result<HashMap<String, Llsd>, Self>

Returns the inner fields if this is a Llsd::Map, otherwise returns back the enum in the Err case of the result

Source

pub unsafe fn into_map_unchecked(self) -> HashMap<String, Llsd>

Unchecked return of the inner fields of Llsd::Map.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_map_unchecked(&self) -> &HashMap<String, Llsd>

Unchecked reference of the inner fields of Llsd::Map.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source

pub unsafe fn as_map_mut_unchecked(&mut self) -> &mut HashMap<String, Llsd>

Unchecked mutable reference of the inner fields of Llsd::Map.

§Safety

Results in undefined behavior when it is the incorrect variant.

Source§

impl Llsd

Source

pub fn new() -> Self

Source

pub fn array() -> Self

Source

pub fn map() -> Self

Source

pub fn clear(&mut self)

Source

pub fn push<T: Into<Llsd>>(self, llsd: T) -> Result<Self>

Source

pub fn insert<K: Into<String>, T: Into<Llsd>>( self, key: K, llsd: T, ) -> Result<Self>

Source

pub fn get(&self, index: impl Index) -> Option<&Llsd>

Source

pub fn get_mut(&mut self, index: impl Index) -> Option<&mut Llsd>

Source

pub fn contains(&self, index: impl Index) -> bool

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn pointer(&self, pointer: &str) -> Option<&Llsd>

Source

pub fn pointer_mut(&mut self, pointer: &str) -> Option<&mut Llsd>

Source

pub fn take(&mut self) -> Self

Trait Implementations§

Source§

impl AsMut<Llsd> for XmlRpc

Source§

fn as_mut(&mut self) -> &mut Llsd

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<Llsd> for XmlRpc

Source§

fn as_ref(&self) -> &Llsd

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for Llsd

Source§

fn clone(&self) -> Llsd

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Llsd

Source§

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

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

impl Default for Llsd

Source§

fn default() -> Llsd

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

impl From<&[u8]> for Llsd

Source§

fn from(llsd: &[u8]) -> Self

Converts to this type from the input type.
Source§

impl From<&DateTime<FixedOffset>> for Llsd

Source§

fn from(v: &DateTime<FixedOffset>) -> Self

Converts to this type from the input type.
Source§

impl From<&DateTime<Utc>> for Llsd

Source§

fn from(v: &DateTime<Utc>) -> Self

Converts to this type from the input type.
Source§

impl From<&String> for Llsd

Source§

fn from(v: &String) -> Self

Converts to this type from the input type.
Source§

impl From<&Url> for Llsd

Source§

fn from(v: &Url) -> Self

Converts to this type from the input type.
Source§

impl From<&Uuid> for Llsd

Source§

fn from(v: &Uuid) -> Self

Converts to this type from the input type.
Source§

impl From<&bool> for Llsd

Source§

fn from(v: &bool) -> Self

Converts to this type from the input type.
Source§

impl From<&f32> for Llsd

Source§

fn from(llsd: &f32) -> Self

Converts to this type from the input type.
Source§

impl From<&f64> for Llsd

Source§

fn from(llsd: &f64) -> Self

Converts to this type from the input type.
Source§

impl From<&str> for Llsd

Source§

fn from(llsd: &str) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<[u8; N]> for Llsd

Source§

fn from(llsd: [u8; N]) -> Self

Converts to this type from the input type.
Source§

impl<A: Into<Llsd>, B: Into<Llsd>> From<(A, B)> for Llsd

Source§

fn from(t: (A, B)) -> Self

Converts to this type from the input type.
Source§

impl<A: Into<Llsd>, B: Into<Llsd>, C: Into<Llsd>> From<(A, B, C)> for Llsd

Source§

fn from(t: (A, B, C)) -> Self

Converts to this type from the input type.
Source§

impl<A: Into<Llsd>, B: Into<Llsd>, C: Into<Llsd>, D: Into<Llsd>> From<(A, B, C, D)> for Llsd

Source§

fn from(t: (A, B, C, D)) -> Self

Converts to this type from the input type.
Source§

impl From<DateTime<FixedOffset>> for Llsd

Source§

fn from(llsd: DateTime<FixedOffset>) -> Self

Converts to this type from the input type.
Source§

impl From<DateTime<Utc>> for Llsd

Source§

fn from(llsd: DateTime<Utc>) -> Self

Converts to this type from the input type.
Source§

impl<K: Into<String>, V: Into<Llsd>> From<HashMap<K, V>> for Llsd

Source§

fn from(llsd: HashMap<K, V>) -> Self

Converts to this type from the input type.
Source§

impl From<Llsd> for XmlRpc

Source§

fn from(llsd: Llsd) -> Self

Converts to this type from the input type.
Source§

impl From<String> for Llsd

Source§

fn from(llsd: String) -> Self

Converts to this type from the input type.
Source§

impl From<Url> for Llsd

Source§

fn from(llsd: Url) -> Self

Converts to this type from the input type.
Source§

impl From<Uuid> for Llsd

Source§

fn from(llsd: Uuid) -> Self

Converts to this type from the input type.
Source§

impl<T: Into<Llsd>> From<Vec<T>> for Llsd

Source§

fn from(llsd: Vec<T>) -> Self

Converts to this type from the input type.
Source§

impl From<XmlRpc> for Llsd

Source§

fn from(rpc: XmlRpc) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for Llsd

Source§

fn from(llsd: bool) -> Self

Converts to this type from the input type.
Source§

impl From<f32> for Llsd

Source§

fn from(llsd: f32) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Llsd

Source§

fn from(llsd: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for Llsd

Source§

fn from(llsd: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Llsd

Source§

fn from(llsd: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Llsd

Source§

fn from(llsd: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for Llsd

Source§

fn from(llsd: i8) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Llsd

Source§

fn from(llsd: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Llsd

Source§

fn from(llsd: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for Llsd

Source§

fn from(llsd: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Llsd

Source§

fn from(llsd: u8) -> Self

Converts to this type from the input type.
Source§

impl<K: Into<String>, V: Into<Llsd>> FromIterator<(K, V)> for Llsd

Source§

fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl<I> Index<I> for Llsd
where I: Index,

Source§

type Output = Llsd

The returned type after indexing.
Source§

fn index(&self, index: I) -> &Llsd

Performs the indexing (container[index]) operation. Read more
Source§

impl<I> IndexMut<I> for Llsd
where I: Index,

Source§

fn index_mut(&mut self, index: I) -> &mut Llsd

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl PartialEq for Llsd

Source§

fn eq(&self, other: &Llsd) -> 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, B> TryFrom<&Llsd> for (A, B)
where for<'x> A: TryFrom<&'x Llsd, Error = Error>, for<'x> B: TryFrom<&'x Llsd, Error = Error>,

Source§

type Error = Error

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

fn try_from(v: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl<A, B, C> TryFrom<&Llsd> for (A, B, C)
where for<'x> A: TryFrom<&'x Llsd, Error = Error>, for<'x> B: TryFrom<&'x Llsd, Error = Error>, for<'x> C: TryFrom<&'x Llsd, Error = Error>,

Source§

type Error = Error

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

fn try_from(v: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl<A, B, C, D> TryFrom<&Llsd> for (A, B, C, D)
where for<'x> A: TryFrom<&'x Llsd, Error = Error>, for<'x> B: TryFrom<&'x Llsd, Error = Error>, for<'x> C: TryFrom<&'x Llsd, Error = Error>, for<'x> D: TryFrom<&'x Llsd, Error = Error>,

Source§

type Error = Error

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

fn try_from(v: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl<V> TryFrom<&Llsd> for HashMap<String, V>
where V: for<'a> TryFrom<&'a Llsd, Error = Error>,

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for String

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for Url

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for Uuid

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl<T> TryFrom<&Llsd> for Vec<T>
where T: for<'a> TryFrom<&'a Llsd, Error = Error>,

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for bool

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for f32

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for f64

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for i16

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for i32

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for i64

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for i8

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for u16

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for u32

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for u64

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl TryFrom<&Llsd> for u8

Source§

type Error = Error

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

fn try_from(llsd: &Llsd) -> Result<Self>

Performs the conversion.
Source§

impl StructuralPartialEq for Llsd

Auto Trait Implementations§

§

impl Freeze for Llsd

§

impl RefUnwindSafe for Llsd

§

impl Send for Llsd

§

impl Sync for Llsd

§

impl Unpin for Llsd

§

impl UnwindSafe for Llsd

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

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

impl<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.
Source§

impl<T> ErasedDestructor for T
where T: 'static,