#[repr(transparent)]pub struct ValueSlice(pub [ValueAtom]);Expand description
Borrowed form of Value.
Tuple Fields§
§0: [ValueAtom]Implementations§
Trait Implementations§
Source§impl Borrow<ValueSlice> for Value
impl Borrow<ValueSlice> for Value
Source§fn borrow(&self) -> &ValueSlice
fn borrow(&self) -> &ValueSlice
Immutably borrows from an owned value. Read more
Source§impl Debug for ValueSlice
impl Debug for ValueSlice
Source§impl Hash for ValueSlice
impl Hash for ValueSlice
Source§impl Index<RangeFull> for ValueSlice
impl Index<RangeFull> for ValueSlice
Source§impl Index<RangeInclusive<usize>> for ValueSlice
impl Index<RangeInclusive<usize>> for ValueSlice
Source§impl Index<RangeToInclusive<usize>> for ValueSlice
impl Index<RangeToInclusive<usize>> for ValueSlice
Source§impl Ord for ValueSlice
impl Ord for ValueSlice
Source§impl PartialEq for ValueSlice
impl PartialEq for ValueSlice
Source§impl PartialOrd for ValueSlice
impl PartialOrd for ValueSlice
Source§impl Serialize for ValueSlice
impl Serialize for ValueSlice
Source§impl ToOwned for ValueSlice
impl ToOwned for ValueSlice
Source§impl TryFrom<&ValueSlice> for ()
impl TryFrom<&ValueSlice> for ()
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(value: &ValueSlice) -> Result<(), InvalidBuiltinDecode>
fn try_from(value: &ValueSlice) -> Result<(), InvalidBuiltinDecode>
Performs the conversion.
Source§impl<A, B, C, D, E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (A, B, C, D, E, F, G, H, I, J, K)where
A: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
B: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
C: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
D: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<A, B, C, D, E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (A, B, C, D, E, F, G, H, I, J, K)where
A: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
B: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
C: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
D: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<B, C, D, E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (B, C, D, E, F, G, H, I, J, K)where
B: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
C: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
D: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<B, C, D, E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (B, C, D, E, F, G, H, I, J, K)where
B: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
C: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
D: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<C, D, E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (C, D, E, F, G, H, I, J, K)where
C: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
D: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<C, D, E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (C, D, E, F, G, H, I, J, K)where
C: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
D: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<D, E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (D, E, F, G, H, I, J, K)where
D: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<D, E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (D, E, F, G, H, I, J, K)where
D: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (E, F, G, H, I, J, K)where
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<E, F, G, H, I, J, K> TryFrom<&ValueSlice> for (E, F, G, H, I, J, K)where
E: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<F, G, H, I, J, K> TryFrom<&ValueSlice> for (F, G, H, I, J, K)where
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<F, G, H, I, J, K> TryFrom<&ValueSlice> for (F, G, H, I, J, K)where
F: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<G, H, I, J, K> TryFrom<&ValueSlice> for (G, H, I, J, K)where
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<G, H, I, J, K> TryFrom<&ValueSlice> for (G, H, I, J, K)where
G: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<H, I, J, K> TryFrom<&ValueSlice> for (H, I, J, K)where
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<H, I, J, K> TryFrom<&ValueSlice> for (H, I, J, K)where
H: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<I, J, K> TryFrom<&ValueSlice> for (I, J, K)where
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<I, J, K> TryFrom<&ValueSlice> for (I, J, K)where
I: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<J, K> TryFrom<&ValueSlice> for (J, K)where
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
impl<J, K> TryFrom<&ValueSlice> for (J, K)where
J: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
K: Aligned + for<'a> TryFrom<&'a ValueSlice, Error = InvalidBuiltinDecode>,
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl<K> TryFrom<&ValueSlice> for (K,)
impl<K> TryFrom<&ValueSlice> for (K,)
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
fn try_from(val: &ValueSlice) -> Result<Self, InvalidBuiltinDecode>
Performs the conversion.
Source§impl TryFrom<&ValueSlice> for HashOutput
impl TryFrom<&ValueSlice> for HashOutput
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(value: &ValueSlice) -> Result<HashOutput, InvalidBuiltinDecode>
fn try_from(value: &ValueSlice) -> Result<HashOutput, InvalidBuiltinDecode>
Performs the conversion.
Source§impl TryFrom<&ValueSlice> for Vec<u8>
impl TryFrom<&ValueSlice> for Vec<u8>
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(value: &ValueSlice) -> Result<Vec<u8>, InvalidBuiltinDecode>
fn try_from(value: &ValueSlice) -> Result<Vec<u8>, InvalidBuiltinDecode>
Performs the conversion.
Source§impl TryFrom<&ValueSlice> for bool
impl TryFrom<&ValueSlice> for bool
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(value: &ValueSlice) -> Result<bool, InvalidBuiltinDecode>
fn try_from(value: &ValueSlice) -> Result<bool, InvalidBuiltinDecode>
Performs the conversion.
Source§impl TryFrom<&ValueSlice> for u128
impl TryFrom<&ValueSlice> for u128
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(value: &ValueSlice) -> Result<u128, InvalidBuiltinDecode>
fn try_from(value: &ValueSlice) -> Result<u128, InvalidBuiltinDecode>
Performs the conversion.
Source§impl TryFrom<&ValueSlice> for u16
impl TryFrom<&ValueSlice> for u16
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(value: &ValueSlice) -> Result<u16, InvalidBuiltinDecode>
fn try_from(value: &ValueSlice) -> Result<u16, InvalidBuiltinDecode>
Performs the conversion.
Source§impl TryFrom<&ValueSlice> for u32
impl TryFrom<&ValueSlice> for u32
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(value: &ValueSlice) -> Result<u32, InvalidBuiltinDecode>
fn try_from(value: &ValueSlice) -> Result<u32, InvalidBuiltinDecode>
Performs the conversion.
Source§impl TryFrom<&ValueSlice> for u64
impl TryFrom<&ValueSlice> for u64
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(value: &ValueSlice) -> Result<u64, InvalidBuiltinDecode>
fn try_from(value: &ValueSlice) -> Result<u64, InvalidBuiltinDecode>
Performs the conversion.
Source§impl TryFrom<&ValueSlice> for u8
impl TryFrom<&ValueSlice> for u8
Source§type Error = InvalidBuiltinDecode
type Error = InvalidBuiltinDecode
The type returned in the event of a conversion error.
Source§fn try_from(value: &ValueSlice) -> Result<u8, InvalidBuiltinDecode>
fn try_from(value: &ValueSlice) -> Result<u8, InvalidBuiltinDecode>
Performs the conversion.
impl Eq for ValueSlice
impl StructuralPartialEq for ValueSlice
Auto Trait Implementations§
impl Freeze for ValueSlice
impl RefUnwindSafe for ValueSlice
impl Send for ValueSlice
impl !Sized for ValueSlice
impl Sync for ValueSlice
impl Unpin for ValueSlice
impl UnsafeUnpin for ValueSlice
impl UnwindSafe for ValueSlice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.