Skip to main content

ArchivedAttributeValue

Enum ArchivedAttributeValue 

Source
#[repr(u8)]
pub enum ArchivedAttributeValue{
Show 26 variants Bool(<bool as Archive>::Archived), Int8(<i8 as Archive>::Archived), Int16(<i16 as Archive>::Archived), Int32(<i32 as Archive>::Archived), Int64(<i64 as Archive>::Archived), UInt8(<u8 as Archive>::Archived), UInt16(<u16 as Archive>::Archived), UInt32(<u32 as Archive>::Archived), UInt64(<u64 as Archive>::Archived), Float32(<f32 as Archive>::Archived), Float64(<f64 as Archive>::Archived), String(<String as Archive>::Archived), Binary(<Vec<u8> as Archive>::Archived), BoolList(<Vec<bool> as Archive>::Archived), Int8List(<Vec<i8> as Archive>::Archived), Int16List(<Vec<i16> as Archive>::Archived), Int32List(<Vec<i32> as Archive>::Archived), Int64List(<Vec<i64> as Archive>::Archived), UInt8List(<Vec<u8> as Archive>::Archived), UInt16List(<Vec<u16> as Archive>::Archived), UInt32List(<Vec<u32> as Archive>::Archived), UInt64List(<Vec<u64> as Archive>::Archived), Float32List(<Vec<f32> as Archive>::Archived), Float64List(<Vec<f64> as Archive>::Archived), StringList(<Vec<String> as Archive>::Archived), BinaryList(<Vec<Vec<u8>> as Archive>::Archived),
}
Expand description

An archived AttributeValue

Variants§

§

Bool(<bool as Archive>::Archived)

The archived counterpart of AttributeValue::Bool

Tuple Fields

§0: <bool as Archive>::Archived

The archived counterpart of AttributeValue::Bool::0

§

Int8(<i8 as Archive>::Archived)

The archived counterpart of AttributeValue::Int8

Tuple Fields

§0: <i8 as Archive>::Archived

The archived counterpart of AttributeValue::Int8::0

§

Int16(<i16 as Archive>::Archived)

The archived counterpart of AttributeValue::Int16

Tuple Fields

§0: <i16 as Archive>::Archived

The archived counterpart of AttributeValue::Int16::0

§

Int32(<i32 as Archive>::Archived)

The archived counterpart of AttributeValue::Int32

Tuple Fields

§0: <i32 as Archive>::Archived

The archived counterpart of AttributeValue::Int32::0

§

Int64(<i64 as Archive>::Archived)

The archived counterpart of AttributeValue::Int64

Tuple Fields

§0: <i64 as Archive>::Archived

The archived counterpart of AttributeValue::Int64::0

§

UInt8(<u8 as Archive>::Archived)

The archived counterpart of AttributeValue::UInt8

Tuple Fields

§0: <u8 as Archive>::Archived

The archived counterpart of AttributeValue::UInt8::0

§

UInt16(<u16 as Archive>::Archived)

The archived counterpart of AttributeValue::UInt16

Tuple Fields

§0: <u16 as Archive>::Archived

The archived counterpart of AttributeValue::UInt16::0

§

UInt32(<u32 as Archive>::Archived)

The archived counterpart of AttributeValue::UInt32

Tuple Fields

§0: <u32 as Archive>::Archived

The archived counterpart of AttributeValue::UInt32::0

§

UInt64(<u64 as Archive>::Archived)

The archived counterpart of AttributeValue::UInt64

Tuple Fields

§0: <u64 as Archive>::Archived

The archived counterpart of AttributeValue::UInt64::0

§

Float32(<f32 as Archive>::Archived)

The archived counterpart of AttributeValue::Float32

Tuple Fields

§0: <f32 as Archive>::Archived

The archived counterpart of AttributeValue::Float32::0

§

Float64(<f64 as Archive>::Archived)

The archived counterpart of AttributeValue::Float64

Tuple Fields

§0: <f64 as Archive>::Archived

The archived counterpart of AttributeValue::Float64::0

§

String(<String as Archive>::Archived)

The archived counterpart of AttributeValue::String

Tuple Fields

§0: <String as Archive>::Archived

The archived counterpart of AttributeValue::String::0

§

Binary(<Vec<u8> as Archive>::Archived)

The archived counterpart of AttributeValue::Binary

Tuple Fields

§0: <Vec<u8> as Archive>::Archived

The archived counterpart of AttributeValue::Binary::0

§

BoolList(<Vec<bool> as Archive>::Archived)

The archived counterpart of AttributeValue::BoolList

Tuple Fields

§0: <Vec<bool> as Archive>::Archived

The archived counterpart of AttributeValue::BoolList::0

§

Int8List(<Vec<i8> as Archive>::Archived)

The archived counterpart of AttributeValue::Int8List

Tuple Fields

§0: <Vec<i8> as Archive>::Archived

The archived counterpart of AttributeValue::Int8List::0

§

Int16List(<Vec<i16> as Archive>::Archived)

The archived counterpart of AttributeValue::Int16List

Tuple Fields

§0: <Vec<i16> as Archive>::Archived

The archived counterpart of AttributeValue::Int16List::0

§

Int32List(<Vec<i32> as Archive>::Archived)

The archived counterpart of AttributeValue::Int32List

Tuple Fields

§0: <Vec<i32> as Archive>::Archived

The archived counterpart of AttributeValue::Int32List::0

§

Int64List(<Vec<i64> as Archive>::Archived)

The archived counterpart of AttributeValue::Int64List

Tuple Fields

§0: <Vec<i64> as Archive>::Archived

The archived counterpart of AttributeValue::Int64List::0

§

UInt8List(<Vec<u8> as Archive>::Archived)

The archived counterpart of AttributeValue::UInt8List

Tuple Fields

§0: <Vec<u8> as Archive>::Archived

The archived counterpart of AttributeValue::UInt8List::0

§

UInt16List(<Vec<u16> as Archive>::Archived)

The archived counterpart of AttributeValue::UInt16List

Tuple Fields

§0: <Vec<u16> as Archive>::Archived

The archived counterpart of AttributeValue::UInt16List::0

§

UInt32List(<Vec<u32> as Archive>::Archived)

The archived counterpart of AttributeValue::UInt32List

Tuple Fields

§0: <Vec<u32> as Archive>::Archived

The archived counterpart of AttributeValue::UInt32List::0

§

UInt64List(<Vec<u64> as Archive>::Archived)

The archived counterpart of AttributeValue::UInt64List

Tuple Fields

§0: <Vec<u64> as Archive>::Archived

The archived counterpart of AttributeValue::UInt64List::0

§

Float32List(<Vec<f32> as Archive>::Archived)

The archived counterpart of AttributeValue::Float32List

Tuple Fields

§0: <Vec<f32> as Archive>::Archived

The archived counterpart of AttributeValue::Float32List::0

§

Float64List(<Vec<f64> as Archive>::Archived)

The archived counterpart of AttributeValue::Float64List

Tuple Fields

§0: <Vec<f64> as Archive>::Archived

The archived counterpart of AttributeValue::Float64List::0

§

StringList(<Vec<String> as Archive>::Archived)

The archived counterpart of AttributeValue::StringList

Tuple Fields

§0: <Vec<String> as Archive>::Archived

The archived counterpart of AttributeValue::StringList::0

§

BinaryList(<Vec<Vec<u8>> as Archive>::Archived)

The archived counterpart of AttributeValue::BinaryList

Tuple Fields

§0: <Vec<Vec<u8>> as Archive>::Archived

The archived counterpart of AttributeValue::BinaryList::0

Trait Implementations§

Source§

impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedAttributeValue
where bool: Archive, i8: Archive, i16: Archive, i32: Archive, i64: Archive, u8: Archive, u16: Archive, u32: Archive, u64: Archive, f32: Archive, f64: Archive, String: Archive, Vec<u8>: Archive, Vec<bool>: Archive, Vec<i8>: Archive, Vec<i16>: Archive, Vec<i32>: Archive, Vec<i64>: Archive, Vec<u16>: Archive, Vec<u32>: Archive, Vec<u64>: Archive, Vec<f32>: Archive, Vec<f64>: Archive, Vec<String>: Archive, Vec<Vec<u8>>: Archive, <__C as Fallible>::Error: Source, <bool as Archive>::Archived: CheckBytes<__C>, <i8 as Archive>::Archived: CheckBytes<__C>, <i16 as Archive>::Archived: CheckBytes<__C>, <i32 as Archive>::Archived: CheckBytes<__C>, <i64 as Archive>::Archived: CheckBytes<__C>, <u8 as Archive>::Archived: CheckBytes<__C>, <u16 as Archive>::Archived: CheckBytes<__C>, <u32 as Archive>::Archived: CheckBytes<__C>, <u64 as Archive>::Archived: CheckBytes<__C>, <f32 as Archive>::Archived: CheckBytes<__C>, <f64 as Archive>::Archived: CheckBytes<__C>, <String as Archive>::Archived: CheckBytes<__C>, <Vec<u8> as Archive>::Archived: CheckBytes<__C>, <Vec<bool> as Archive>::Archived: CheckBytes<__C>, <Vec<i8> as Archive>::Archived: CheckBytes<__C>, <Vec<i16> as Archive>::Archived: CheckBytes<__C>, <Vec<i32> as Archive>::Archived: CheckBytes<__C>, <Vec<i64> as Archive>::Archived: CheckBytes<__C>, <Vec<u16> as Archive>::Archived: CheckBytes<__C>, <Vec<u32> as Archive>::Archived: CheckBytes<__C>, <Vec<u64> as Archive>::Archived: CheckBytes<__C>, <Vec<f32> as Archive>::Archived: CheckBytes<__C>, <Vec<f64> as Archive>::Archived: CheckBytes<__C>, <Vec<String> as Archive>::Archived: CheckBytes<__C>, <Vec<Vec<u8>> as Archive>::Archived: CheckBytes<__C>,

Source§

unsafe fn check_bytes( value: *const Self, context: &mut __C, ) -> Result<(), <__C as Fallible>::Error>

Checks whether the given pointer points to a valid value within the given context. Read more
Source§

impl Portable for ArchivedAttributeValue

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

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
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> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
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.