Trait holochain_zome_types::warrant::TryFrom 1.34.0[−][src]
Simple and safe type conversions that may fail in a controlled
way under some circumstances. It is the reciprocal of TryInto
.
This is useful when you are doing a type conversion that may
trivially succeed but may also need special handling.
For example, there is no way to convert an i64
into an i32
using the From
trait, because an i64
may contain a value
that an i32
cannot represent and so the conversion would lose data.
This might be handled by truncating the i64
to an i32
(essentially
giving the i64
’s value modulo i32::MAX
) or by simply returning
i32::MAX
, or by some other method. The From
trait is intended
for perfect conversions, so the TryFrom
trait informs the
programmer when a type conversion could go bad and lets them
decide how to handle it.
Generic Implementations
TryFrom<T> for U
impliesTryInto
<U> for T
try_from
is reflexive, which means thatTryFrom<T> for T
is implemented and cannot fail – the associatedError
type for callingT::try_from()
on a value of typeT
isInfallible
. When the!
type is stabilizedInfallible
and!
will be equivalent.
TryFrom<T>
can be implemented as follows:
use std::convert::TryFrom; struct GreaterThanZero(i32); impl TryFrom<i32> for GreaterThanZero { type Error = &'static str; fn try_from(value: i32) -> Result<Self, Self::Error> { if value <= 0 { Err("GreaterThanZero only accepts value superior than zero!") } else { Ok(GreaterThanZero(value)) } } }
Examples
As described, i32
implements TryFrom<
i64
>
:
use std::convert::TryFrom; let big_number = 1_000_000_000_000i64; // Silently truncates `big_number`, requires detecting // and handling the truncation after the fact. let smaller_number = big_number as i32; assert_eq!(smaller_number, -727379968); // Returns an error because `big_number` is too big to // fit in an `i32`. let try_smaller_number = i32::try_from(big_number); assert!(try_smaller_number.is_err()); // Returns `Ok(3)`. let try_successful_smaller_number = i32::try_from(3); assert!(try_successful_smaller_number.is_ok());
Associated Types
Loading content...Required methods
Loading content...Implementations on Foreign Types
impl TryFrom<NonZeroIsize> for NonZeroU64
[src]
Attempts to convert NonZeroIsize
to NonZeroU64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<NonZeroU64> for NonZeroU32
[src]
Attempts to convert NonZeroU64
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU64
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroU64>>::Error>
[src]
value: NonZeroU64
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroU64>>::Error>
impl TryFrom<u16> for i16
[src]
type Error = TryFromIntError
pub fn try_from(u: u16) -> Result<i16, <i16 as TryFrom<u16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI16> for NonZeroU64
[src]
Attempts to convert NonZeroI16
to NonZeroU64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI16
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI16>>::Error>
[src]
value: NonZeroI16
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI16>>::Error>
impl TryFrom<usize> for u32
[src]
type Error = TryFromIntError
pub fn try_from(u: usize) -> Result<u32, <u32 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI16> for NonZeroU128
[src]
Attempts to convert NonZeroI16
to NonZeroU128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI16
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI16>>::Error>
[src]
value: NonZeroI16
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI16>>::Error>
impl TryFrom<isize> for usize
[src]
type Error = TryFromIntError
pub fn try_from(u: isize) -> Result<usize, <usize as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<isize> for u32
[src]
type Error = TryFromIntError
pub fn try_from(u: isize) -> Result<u32, <u32 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i64> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: i64) -> Result<u16, <u16 as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU32> for NonZeroU8
[src]
Attempts to convert NonZeroU32
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU32
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroU32>>::Error>
[src]
value: NonZeroU32
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroU32>>::Error>
impl TryFrom<NonZeroU64> for NonZeroI16
[src]
Attempts to convert NonZeroU64
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU64
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroU64>>::Error>
[src]
value: NonZeroU64
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroU64>>::Error>
impl TryFrom<isize> for i64
[src]
type Error = TryFromIntError
pub fn try_from(value: isize) -> Result<i64, <i64 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i32> for isize
[src]
type Error = TryFromIntError
pub fn try_from(value: i32) -> Result<isize, <isize as TryFrom<i32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u64> for NonZeroU64
[src]
Attempts to convert u64
to NonZeroU64
.
type Error = TryFromIntError
pub fn try_from(
value: u64
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<u64>>::Error>
[src]
value: u64
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<u64>>::Error>
impl TryFrom<u128> for i32
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<i32, <i32 as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI128> for NonZeroI8
[src]
Attempts to convert NonZeroI128
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroI128>>::Error>
impl TryFrom<i16> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: i16) -> Result<u8, <u8 as TryFrom<i16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u128> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<u8, <u8 as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroUsize> for NonZeroI8
[src]
Attempts to convert NonZeroUsize
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<i8> for NonZeroI8
[src]
Attempts to convert i8
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: i8
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<i8>>::Error>
[src]
value: i8
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<i8>>::Error>
impl TryFrom<u128> for usize
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<usize, <usize as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<isize> for i16
[src]
type Error = TryFromIntError
pub fn try_from(u: isize) -> Result<i16, <i16 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i128> for NonZeroI128
[src]
Attempts to convert i128
to NonZeroI128
.
type Error = TryFromIntError
pub fn try_from(
value: i128
) -> Result<NonZeroI128, <NonZeroI128 as TryFrom<i128>>::Error>
[src]
value: i128
) -> Result<NonZeroI128, <NonZeroI128 as TryFrom<i128>>::Error>
impl TryFrom<NonZeroUsize> for NonZeroU32
[src]
Attempts to convert NonZeroUsize
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<NonZeroI16> for NonZeroI8
[src]
Attempts to convert NonZeroI16
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI16
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroI16>>::Error>
[src]
value: NonZeroI16
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroI16>>::Error>
impl TryFrom<NonZeroI8> for NonZeroUsize
[src]
Attempts to convert NonZeroI8
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI8
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI8>>::Error>
[src]
value: NonZeroI8
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI8>>::Error>
impl TryFrom<NonZeroIsize> for NonZeroU8
[src]
Attempts to convert NonZeroIsize
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<NonZeroU128> for NonZeroI16
[src]
Attempts to convert NonZeroU128
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroU128>>::Error>
impl TryFrom<u128> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<u16, <u16 as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i64> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: i64) -> Result<u8, <u8 as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU128> for NonZeroU8
[src]
Attempts to convert NonZeroU128
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroU128>>::Error>
impl TryFrom<NonZeroI8> for NonZeroU8
[src]
Attempts to convert NonZeroI8
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI8
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI8>>::Error>
[src]
value: NonZeroI8
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI8>>::Error>
impl TryFrom<NonZeroI128> for NonZeroI64
[src]
Attempts to convert NonZeroI128
to NonZeroI64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroI128>>::Error>
impl TryFrom<NonZeroI32> for NonZeroU16
[src]
Attempts to convert NonZeroI32
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI32
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI32>>::Error>
[src]
value: NonZeroI32
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI32>>::Error>
impl TryFrom<NonZeroIsize> for NonZeroUsize
[src]
Attempts to convert NonZeroIsize
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<i8> for usize
[src]
type Error = TryFromIntError
pub fn try_from(u: i8) -> Result<usize, <usize as TryFrom<i8>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i128> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<u16, <u16 as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU128> for NonZeroU32
[src]
Attempts to convert NonZeroU128
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroU128>>::Error>
impl TryFrom<usize> for u128
[src]
type Error = TryFromIntError
pub fn try_from(value: usize) -> Result<u128, <u128 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i32> for u64
[src]
type Error = TryFromIntError
pub fn try_from(u: i32) -> Result<u64, <u64 as TryFrom<i32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u128> for NonZeroU128
[src]
Attempts to convert u128
to NonZeroU128
.
type Error = TryFromIntError
pub fn try_from(
value: u128
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<u128>>::Error>
[src]
value: u128
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<u128>>::Error>
impl TryFrom<i8> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: i8) -> Result<u16, <u16 as TryFrom<i8>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u64> for i16
[src]
type Error = TryFromIntError
pub fn try_from(u: u64) -> Result<i16, <i16 as TryFrom<u64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI64> for NonZeroUsize
[src]
Attempts to convert NonZeroI64
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI64>>::Error>
impl TryFrom<i32> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: i32) -> Result<i8, <i8 as TryFrom<i32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI128> for NonZeroU32
[src]
Attempts to convert NonZeroI128
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI128>>::Error>
impl TryFrom<NonZeroU64> for NonZeroI32
[src]
Attempts to convert NonZeroU64
to NonZeroI32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU64
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroU64>>::Error>
[src]
value: NonZeroU64
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroU64>>::Error>
impl TryFrom<i128> for i16
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<i16, <i16 as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI32> for NonZeroU128
[src]
Attempts to convert NonZeroI32
to NonZeroU128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI32
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI32>>::Error>
[src]
value: NonZeroI32
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI32>>::Error>
impl TryFrom<NonZeroI128> for NonZeroU128
[src]
Attempts to convert NonZeroI128
to NonZeroU128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI128>>::Error>
impl TryFrom<i64> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: i64) -> Result<i8, <i8 as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u128> for u32
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<u32, <u32 as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<isize> for NonZeroIsize
[src]
Attempts to convert isize
to NonZeroIsize
.
type Error = TryFromIntError
pub fn try_from(
value: isize
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<isize>>::Error>
[src]
value: isize
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<isize>>::Error>
impl TryFrom<usize> for isize
[src]
type Error = TryFromIntError
pub fn try_from(u: usize) -> Result<isize, <isize as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u16> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: u16) -> Result<u8, <u8 as TryFrom<u16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u32> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: u32) -> Result<u8, <u8 as TryFrom<u32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI128> for NonZeroIsize
[src]
Attempts to convert NonZeroI128
to NonZeroIsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroI128>>::Error>
impl TryFrom<i32> for usize
[src]
type Error = TryFromIntError
pub fn try_from(u: i32) -> Result<usize, <usize as TryFrom<i32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i8> for u64
[src]
type Error = TryFromIntError
pub fn try_from(u: i8) -> Result<u64, <u64 as TryFrom<i8>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU64> for NonZeroIsize
[src]
Attempts to convert NonZeroU64
to NonZeroIsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU64
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroU64>>::Error>
[src]
value: NonZeroU64
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroU64>>::Error>
impl TryFrom<NonZeroI32> for NonZeroI16
[src]
Attempts to convert NonZeroI32
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI32
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroI32>>::Error>
[src]
value: NonZeroI32
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroI32>>::Error>
impl TryFrom<NonZeroU128> for NonZeroUsize
[src]
Attempts to convert NonZeroU128
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroU128>>::Error>
impl TryFrom<NonZeroIsize> for NonZeroI64
[src]
Attempts to convert NonZeroIsize
to NonZeroI64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<i64> for i32
[src]
type Error = TryFromIntError
pub fn try_from(u: i64) -> Result<i32, <i32 as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i128> for i32
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<i32, <i32 as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i64> for u32
[src]
type Error = TryFromIntError
pub fn try_from(u: i64) -> Result<u32, <u32 as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i128> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<u8, <u8 as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<isize> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: isize) -> Result<i8, <i8 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<usize> for i128
[src]
type Error = TryFromIntError
pub fn try_from(value: usize) -> Result<i128, <i128 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<isize> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: isize) -> Result<u16, <u16 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i32> for u32
[src]
type Error = TryFromIntError
pub fn try_from(u: i32) -> Result<u32, <u32 as TryFrom<i32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI8> for NonZeroU16
[src]
Attempts to convert NonZeroI8
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI8
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI8>>::Error>
[src]
value: NonZeroI8
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI8>>::Error>
impl TryFrom<u64> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: u64) -> Result<u8, <u8 as TryFrom<u64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU128> for NonZeroI32
[src]
Attempts to convert NonZeroU128
to NonZeroI32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroU128>>::Error>
impl TryFrom<i16> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: i16) -> Result<i8, <i8 as TryFrom<i16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i64> for i16
[src]
type Error = TryFromIntError
pub fn try_from(u: i64) -> Result<i16, <i16 as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<usize> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: usize) -> Result<u16, <u16 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i32> for i16
[src]
type Error = TryFromIntError
pub fn try_from(u: i32) -> Result<i16, <i16 as TryFrom<i32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI64> for NonZeroU16
[src]
Attempts to convert NonZeroI64
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI64>>::Error>
impl TryFrom<NonZeroU16> for NonZeroU8
[src]
Attempts to convert NonZeroU16
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU16
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroU16>>::Error>
[src]
value: NonZeroU16
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroU16>>::Error>
impl TryFrom<i8> for u32
[src]
type Error = TryFromIntError
pub fn try_from(u: i8) -> Result<u32, <u32 as TryFrom<i8>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u64> for isize
[src]
type Error = TryFromIntError
pub fn try_from(u: u64) -> Result<isize, <isize as TryFrom<u64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI64> for NonZeroI16
[src]
Attempts to convert NonZeroI64
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroI64>>::Error>
impl TryFrom<NonZeroI64> for NonZeroI8
[src]
Attempts to convert NonZeroI64
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroI64>>::Error>
impl<'a, T, const N: usize> TryFrom<&'a [T]> for &'a [T; N]
[src]
type Error = TryFromSliceError
pub fn try_from(slice: &[T]) -> Result<&[T; N], TryFromSliceError>
[src]
impl TryFrom<NonZeroU8> for NonZeroI8
[src]
Attempts to convert NonZeroU8
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU8
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU8>>::Error>
[src]
value: NonZeroU8
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU8>>::Error>
impl TryFrom<u32> for usize
[src]
type Error = TryFromIntError
pub fn try_from(value: u32) -> Result<usize, <usize as TryFrom<u32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI32> for NonZeroIsize
[src]
Attempts to convert NonZeroI32
to NonZeroIsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI32
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroI32>>::Error>
[src]
value: NonZeroI32
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroI32>>::Error>
impl TryFrom<NonZeroI64> for NonZeroU32
[src]
Attempts to convert NonZeroI64
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI64>>::Error>
impl TryFrom<u128> for i64
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<i64, <i64 as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU128> for NonZeroI8
[src]
Attempts to convert NonZeroU128
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU128>>::Error>
impl TryFrom<NonZeroI128> for NonZeroI32
[src]
Attempts to convert NonZeroI128
to NonZeroI32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroI128>>::Error>
impl TryFrom<u128> for i128
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<i128, <i128 as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI32> for NonZeroI8
[src]
Attempts to convert NonZeroI32
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI32
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroI32>>::Error>
[src]
value: NonZeroI32
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroI32>>::Error>
impl TryFrom<i32> for NonZeroI32
[src]
Attempts to convert i32
to NonZeroI32
.
type Error = TryFromIntError
pub fn try_from(
value: i32
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<i32>>::Error>
[src]
value: i32
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<i32>>::Error>
impl TryFrom<NonZeroI64> for NonZeroU8
[src]
Attempts to convert NonZeroI64
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI64>>::Error>
impl TryFrom<NonZeroU64> for NonZeroUsize
[src]
Attempts to convert NonZeroU64
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU64
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroU64>>::Error>
[src]
value: NonZeroU64
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroU64>>::Error>
impl TryFrom<NonZeroU128> for NonZeroU16
[src]
Attempts to convert NonZeroU128
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroU128>>::Error>
impl TryFrom<i128> for u32
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<u32, <u32 as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<usize> for i32
[src]
type Error = TryFromIntError
pub fn try_from(u: usize) -> Result<i32, <i32 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i16> for usize
[src]
type Error = TryFromIntError
pub fn try_from(u: i16) -> Result<usize, <usize as TryFrom<i16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i8> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: i8) -> Result<u8, <u8 as TryFrom<i8>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i16> for u64
[src]
type Error = TryFromIntError
pub fn try_from(u: i16) -> Result<u64, <u64 as TryFrom<i16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<isize> for i32
[src]
type Error = TryFromIntError
pub fn try_from(u: isize) -> Result<i32, <i32 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU32> for NonZeroI8
[src]
Attempts to convert NonZeroU32
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU32
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU32>>::Error>
[src]
value: NonZeroU32
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU32>>::Error>
impl TryFrom<NonZeroI64> for NonZeroU64
[src]
Attempts to convert NonZeroI64
to NonZeroU64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI64>>::Error>
impl TryFrom<i64> for isize
[src]
type Error = TryFromIntError
pub fn try_from(value: i64) -> Result<isize, <isize as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u32> for NonZeroU32
[src]
Attempts to convert u32
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: u32
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<u32>>::Error>
[src]
value: u32
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<u32>>::Error>
impl TryFrom<NonZeroI128> for NonZeroUsize
[src]
Attempts to convert NonZeroI128
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI128>>::Error>
impl TryFrom<NonZeroU32> for NonZeroU16
[src]
Attempts to convert NonZeroU32
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU32
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroU32>>::Error>
[src]
value: NonZeroU32
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroU32>>::Error>
impl TryFrom<u16> for NonZeroU16
[src]
Attempts to convert u16
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: u16
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<u16>>::Error>
[src]
value: u16
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<u16>>::Error>
impl TryFrom<i32> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: i32) -> Result<u16, <u16 as TryFrom<i32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl<'a, T, const N: usize> TryFrom<&'a mut [T]> for &'a mut [T; N]
[src]
type Error = TryFromSliceError
pub fn try_from(slice: &mut [T]) -> Result<&mut [T; N], TryFromSliceError>
[src]
impl TryFrom<NonZeroU32> for NonZeroIsize
[src]
Attempts to convert NonZeroU32
to NonZeroIsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU32
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroU32>>::Error>
[src]
value: NonZeroU32
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroU32>>::Error>
impl TryFrom<NonZeroI8> for NonZeroU32
[src]
Attempts to convert NonZeroI8
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI8
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI8>>::Error>
[src]
value: NonZeroI8
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI8>>::Error>
impl TryFrom<NonZeroI16> for NonZeroU32
[src]
Attempts to convert NonZeroI16
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI16
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI16>>::Error>
[src]
value: NonZeroI16
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI16>>::Error>
impl TryFrom<usize> for i16
[src]
type Error = TryFromIntError
pub fn try_from(u: usize) -> Result<i16, <i16 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU32> for NonZeroI16
[src]
Attempts to convert NonZeroU32
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU32
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroU32>>::Error>
[src]
value: NonZeroU32
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroU32>>::Error>
impl TryFrom<u32> for isize
[src]
type Error = TryFromIntError
pub fn try_from(value: u32) -> Result<isize, <isize as TryFrom<u32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u64> for i32
[src]
type Error = TryFromIntError
pub fn try_from(u: u64) -> Result<i32, <i32 as TryFrom<u64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI64> for NonZeroU128
[src]
Attempts to convert NonZeroI64
to NonZeroU128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI64>>::Error>
impl TryFrom<NonZeroI16> for NonZeroUsize
[src]
Attempts to convert NonZeroI16
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI16
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI16>>::Error>
[src]
value: NonZeroI16
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI16>>::Error>
impl TryFrom<i16> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: i16) -> Result<u16, <u16 as TryFrom<i16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u128> for u64
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<u64, <u64 as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroIsize> for NonZeroI128
[src]
Attempts to convert NonZeroIsize
to NonZeroI128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroI128, <NonZeroI128 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroI128, <NonZeroI128 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<i64> for usize
[src]
type Error = TryFromIntError
pub fn try_from(u: i64) -> Result<usize, <usize as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU16> for NonZeroI16
[src]
Attempts to convert NonZeroU16
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU16
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroU16>>::Error>
[src]
value: NonZeroU16
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroU16>>::Error>
impl TryFrom<NonZeroUsize> for NonZeroIsize
[src]
Attempts to convert NonZeroUsize
to NonZeroIsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<NonZeroI128> for NonZeroI16
[src]
Attempts to convert NonZeroI128
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroI128>>::Error>
impl TryFrom<u128> for isize
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<isize, <isize as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU128> for NonZeroI128
[src]
Attempts to convert NonZeroU128
to NonZeroI128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroI128, <NonZeroI128 as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroI128, <NonZeroI128 as TryFrom<NonZeroU128>>::Error>
impl TryFrom<i16> for u32
[src]
type Error = TryFromIntError
pub fn try_from(u: i16) -> Result<u32, <u32 as TryFrom<i16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroUsize> for NonZeroI64
[src]
Attempts to convert NonZeroUsize
to NonZeroI64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<NonZeroUsize> for NonZeroU16
[src]
Attempts to convert NonZeroUsize
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<NonZeroU128> for NonZeroIsize
[src]
Attempts to convert NonZeroU128
to NonZeroIsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroU128>>::Error>
impl TryFrom<NonZeroI32> for NonZeroU32
[src]
Attempts to convert NonZeroI32
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI32
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI32>>::Error>
[src]
value: NonZeroI32
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroI32>>::Error>
impl TryFrom<i64> for u128
[src]
type Error = TryFromIntError
pub fn try_from(u: i64) -> Result<u128, <u128 as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<isize> for i128
[src]
type Error = TryFromIntError
pub fn try_from(value: isize) -> Result<i128, <i128 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroUsize> for NonZeroI32
[src]
Attempts to convert NonZeroUsize
to NonZeroI32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<NonZeroU64> for NonZeroU8
[src]
Attempts to convert NonZeroU64
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU64
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroU64>>::Error>
[src]
value: NonZeroU64
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroU64>>::Error>
impl TryFrom<NonZeroU16> for NonZeroIsize
[src]
Attempts to convert NonZeroU16
to NonZeroIsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU16
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroU16>>::Error>
[src]
value: NonZeroU16
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroU16>>::Error>
impl TryFrom<isize> for u128
[src]
type Error = TryFromIntError
pub fn try_from(u: isize) -> Result<u128, <u128 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u16> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: u16) -> Result<i8, <i8 as TryFrom<u16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i16> for u128
[src]
type Error = TryFromIntError
pub fn try_from(u: i16) -> Result<u128, <u128 as TryFrom<i16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u32> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: u32) -> Result<u16, <u16 as TryFrom<u32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<isize> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: isize) -> Result<u8, <u8 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI128> for NonZeroU64
[src]
Attempts to convert NonZeroI128
to NonZeroU64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI128>>::Error>
impl TryFrom<NonZeroU32> for NonZeroUsize
[src]
Attempts to convert NonZeroU32
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU32
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroU32>>::Error>
[src]
value: NonZeroU32
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroU32>>::Error>
impl TryFrom<i32> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: i32) -> Result<u8, <u8 as TryFrom<i32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroIsize> for NonZeroI16
[src]
Attempts to convert NonZeroIsize
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<u128> for i16
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<i16, <i16 as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<isize> for u64
[src]
type Error = TryFromIntError
pub fn try_from(u: isize) -> Result<u64, <u64 as TryFrom<isize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU16> for NonZeroI8
[src]
Attempts to convert NonZeroU16
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU16
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU16>>::Error>
[src]
value: NonZeroU16
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU16>>::Error>
impl TryFrom<u8> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: u8) -> Result<i8, <i8 as TryFrom<u8>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroIsize> for NonZeroU128
[src]
Attempts to convert NonZeroIsize
to NonZeroU128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<i128> for u128
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<u128, <u128 as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU32> for NonZeroI32
[src]
Attempts to convert NonZeroU32
to NonZeroI32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU32
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroU32>>::Error>
[src]
value: NonZeroU32
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroU32>>::Error>
impl TryFrom<NonZeroIsize> for NonZeroU16
[src]
Attempts to convert NonZeroIsize
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<NonZeroUsize> for NonZeroU128
[src]
Attempts to convert NonZeroUsize
to NonZeroU128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<i128> for u64
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<u64, <u64 as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI64> for NonZeroIsize
[src]
Attempts to convert NonZeroI64
to NonZeroIsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroIsize, <NonZeroIsize as TryFrom<NonZeroI64>>::Error>
impl TryFrom<NonZeroIsize> for NonZeroU32
[src]
Attempts to convert NonZeroIsize
to NonZeroU32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroU32, <NonZeroU32 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<u64> for u32
[src]
type Error = TryFromIntError
pub fn try_from(u: u64) -> Result<u32, <u32 as TryFrom<u64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u16> for isize
[src]
type Error = TryFromIntError
pub fn try_from(value: u16) -> Result<isize, <isize as TryFrom<u16>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU128> for NonZeroI64
[src]
Attempts to convert NonZeroU128
to NonZeroI64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroU128>>::Error>
impl TryFrom<NonZeroI32> for NonZeroUsize
[src]
Attempts to convert NonZeroI32
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI32
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI32>>::Error>
[src]
value: NonZeroI32
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<NonZeroI32>>::Error>
impl<'_, T, const N: usize> TryFrom<&'_ [T]> for [T; N] where
T: Copy,
[src]
T: Copy,
type Error = TryFromSliceError
pub fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>
[src]
impl TryFrom<u32> for i16
[src]
type Error = TryFromIntError
pub fn try_from(u: u32) -> Result<i16, <i16 as TryFrom<u32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u32> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: u32) -> Result<i8, <i8 as TryFrom<u32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroUsize> for NonZeroU8
[src]
Attempts to convert NonZeroUsize
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<i128> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<i8, <i8 as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u8> for NonZeroU8
[src]
Attempts to convert u8
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: u8
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<u8>>::Error>
[src]
value: u8
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<u8>>::Error>
impl TryFrom<usize> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: usize) -> Result<i8, <i8 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i64> for NonZeroI64
[src]
Attempts to convert i64
to NonZeroI64
.
type Error = TryFromIntError
pub fn try_from(
value: i64
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<i64>>::Error>
[src]
value: i64
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<i64>>::Error>
impl TryFrom<NonZeroU64> for NonZeroU16
[src]
Attempts to convert NonZeroU64
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU64
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroU64>>::Error>
[src]
value: NonZeroU64
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroU64>>::Error>
impl TryFrom<NonZeroI16> for NonZeroU16
[src]
Attempts to convert NonZeroI16
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI16
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI16>>::Error>
[src]
value: NonZeroI16
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI16>>::Error>
impl TryFrom<u32> for char
[src]
type Error = CharTryFromError
pub fn try_from(i: u32) -> Result<char, <char as TryFrom<u32>>::Error>
[src]
impl TryFrom<u64> for usize
[src]
type Error = TryFromIntError
pub fn try_from(value: u64) -> Result<usize, <usize as TryFrom<u64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i8> for u128
[src]
type Error = TryFromIntError
pub fn try_from(u: i8) -> Result<u128, <u128 as TryFrom<i8>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<u128> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: u128) -> Result<i8, <i8 as TryFrom<u128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI64> for NonZeroI32
[src]
Attempts to convert NonZeroI64
to NonZeroI32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI64
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroI64>>::Error>
[src]
value: NonZeroI64
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroI64>>::Error>
impl TryFrom<i128> for isize
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<isize, <isize as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<usize> for u8
[src]
type Error = TryFromIntError
pub fn try_from(u: usize) -> Result<u8, <u8 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI32> for NonZeroU8
[src]
Attempts to convert NonZeroI32
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI32
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI32>>::Error>
[src]
value: NonZeroI32
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI32>>::Error>
impl TryFrom<NonZeroI8> for NonZeroU64
[src]
Attempts to convert NonZeroI8
to NonZeroU64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI8
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI8>>::Error>
[src]
value: NonZeroI8
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI8>>::Error>
impl TryFrom<NonZeroUsize> for NonZeroU64
[src]
Attempts to convert NonZeroUsize
to NonZeroU64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<NonZeroI128> for NonZeroU8
[src]
Attempts to convert NonZeroI128
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI128>>::Error>
impl TryFrom<NonZeroU64> for NonZeroI64
[src]
Attempts to convert NonZeroU64
to NonZeroI64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU64
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroU64>>::Error>
[src]
value: NonZeroU64
) -> Result<NonZeroI64, <NonZeroI64 as TryFrom<NonZeroU64>>::Error>
impl TryFrom<i16> for NonZeroI16
[src]
Attempts to convert i16
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: i16
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<i16>>::Error>
[src]
value: i16
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<i16>>::Error>
impl TryFrom<NonZeroI128> for NonZeroU16
[src]
Attempts to convert NonZeroI128
to NonZeroU16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI128
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI128>>::Error>
[src]
value: NonZeroI128
) -> Result<NonZeroU16, <NonZeroU16 as TryFrom<NonZeroI128>>::Error>
impl TryFrom<i64> for u64
[src]
type Error = TryFromIntError
pub fn try_from(u: i64) -> Result<u64, <u64 as TryFrom<i64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroIsize> for NonZeroI32
[src]
Attempts to convert NonZeroIsize
to NonZeroI32
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroI32, <NonZeroI32 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<usize> for NonZeroUsize
[src]
Attempts to convert usize
to NonZeroUsize
.
type Error = TryFromIntError
pub fn try_from(
value: usize
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<usize>>::Error>
[src]
value: usize
) -> Result<NonZeroUsize, <NonZeroUsize as TryFrom<usize>>::Error>
impl TryFrom<u64> for u16
[src]
type Error = TryFromIntError
pub fn try_from(u: u64) -> Result<u16, <u16 as TryFrom<u64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroIsize> for NonZeroI8
[src]
Attempts to convert NonZeroIsize
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroIsize
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroIsize>>::Error>
[src]
value: NonZeroIsize
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroIsize>>::Error>
impl TryFrom<NonZeroI16> for NonZeroU8
[src]
Attempts to convert NonZeroI16
to NonZeroU8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI16
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI16>>::Error>
[src]
value: NonZeroI16
) -> Result<NonZeroU8, <NonZeroU8 as TryFrom<NonZeroI16>>::Error>
impl TryFrom<NonZeroUsize> for NonZeroI16
[src]
Attempts to convert NonZeroUsize
to NonZeroI16
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroI16, <NonZeroI16 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<NonZeroI32> for NonZeroU64
[src]
Attempts to convert NonZeroI32
to NonZeroU64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI32
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI32>>::Error>
[src]
value: NonZeroI32
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroI32>>::Error>
impl TryFrom<usize> for i64
[src]
type Error = TryFromIntError
pub fn try_from(u: usize) -> Result<i64, <i64 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroU64> for NonZeroI8
[src]
Attempts to convert NonZeroU64
to NonZeroI8
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU64
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU64>>::Error>
[src]
value: NonZeroU64
) -> Result<NonZeroI8, <NonZeroI8 as TryFrom<NonZeroU64>>::Error>
impl TryFrom<u32> for i32
[src]
type Error = TryFromIntError
pub fn try_from(u: u32) -> Result<i32, <i32 as TryFrom<u32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroUsize> for NonZeroI128
[src]
Attempts to convert NonZeroUsize
to NonZeroI128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroUsize
) -> Result<NonZeroI128, <NonZeroI128 as TryFrom<NonZeroUsize>>::Error>
[src]
value: NonZeroUsize
) -> Result<NonZeroI128, <NonZeroI128 as TryFrom<NonZeroUsize>>::Error>
impl TryFrom<NonZeroU128> for NonZeroU64
[src]
Attempts to convert NonZeroU128
to NonZeroU64
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroU128
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroU128>>::Error>
[src]
value: NonZeroU128
) -> Result<NonZeroU64, <NonZeroU64 as TryFrom<NonZeroU128>>::Error>
impl TryFrom<u64> for i8
[src]
type Error = TryFromIntError
pub fn try_from(u: u64) -> Result<i8, <i8 as TryFrom<u64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<NonZeroI8> for NonZeroU128
[src]
Attempts to convert NonZeroI8
to NonZeroU128
.
type Error = TryFromIntError
pub fn try_from(
value: NonZeroI8
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI8>>::Error>
[src]
value: NonZeroI8
) -> Result<NonZeroU128, <NonZeroU128 as TryFrom<NonZeroI8>>::Error>
impl TryFrom<u64> for i64
[src]
type Error = TryFromIntError
pub fn try_from(u: u64) -> Result<i64, <i64 as TryFrom<u64>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i128> for usize
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<usize, <usize as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i128> for i64
[src]
type Error = TryFromIntError
pub fn try_from(u: i128) -> Result<i64, <i64 as TryFrom<i128>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<i32> for u128
[src]
type Error = TryFromIntError
pub fn try_from(u: i32) -> Result<u128, <u128 as TryFrom<i32>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl TryFrom<usize> for u64
[src]
type Error = TryFromIntError
pub fn try_from(value: usize) -> Result<u64, <u64 as TryFrom<usize>>::Error>
[src]
Try to create the target number type from a source number type. This returns an error if the source value is outside of the range of the target type.
impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N] where
A: Allocator,
[src]
A: Allocator,
type Error = Vec<T, A>
pub fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>
[src]
Gets the entire contents of the Vec<T>
as an array,
if its size exactly matches that of the requested array.
Examples
use std::convert::TryInto; assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3])); assert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
If the length doesn’t match, the input comes back in Err
:
use std::convert::TryInto; let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into(); assert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
If you’re fine with just getting a prefix of the Vec<T>
,
you can call .truncate(N)
first.
use std::convert::TryInto; let mut v = String::from("hello world").into_bytes(); v.sort(); v.truncate(2); let [a, b]: [_; 2] = v.try_into().unwrap(); assert_eq!(a, b' '); assert_eq!(b, b'd');
impl<T, const N: usize> TryFrom<Rc<[T]>> for Rc<[T; N]>
[src]
type Error = Rc<[T]>
pub fn try_from(
boxed_slice: Rc<[T]>
) -> Result<Rc<[T; N]>, <Rc<[T; N]> as TryFrom<Rc<[T]>>>::Error>
[src]
boxed_slice: Rc<[T]>
) -> Result<Rc<[T; N]>, <Rc<[T; N]> as TryFrom<Rc<[T]>>>::Error>
impl<T, const N: usize> TryFrom<Arc<[T]>> for Arc<[T; N]>
[src]
type Error = Arc<[T]>
pub fn try_from(
boxed_slice: Arc<[T]>
) -> Result<Arc<[T; N]>, <Arc<[T; N]> as TryFrom<Arc<[T]>>>::Error>
[src]
boxed_slice: Arc<[T]>
) -> Result<Arc<[T; N]>, <Arc<[T; N]> as TryFrom<Arc<[T]>>>::Error>
impl<T, const N: usize> TryFrom<Box<[T], Global>> for Box<[T; N], Global>
[src]
type Error = Box<[T], Global>
pub fn try_from(
boxed_slice: Box<[T], Global>
) -> Result<Box<[T; N], Global>, <Box<[T; N], Global> as TryFrom<Box<[T], Global>>>::Error>
[src]
boxed_slice: Box<[T], Global>
) -> Result<Box<[T; N], Global>, <Box<[T; N], Global> as TryFrom<Box<[T], Global>>>::Error>
impl TryFrom<SerializedBytes> for ()
[src]
type Error = SerializedBytesError
pub fn try_from(sb: SerializedBytes) -> Result<(), SerializedBytesError>
[src]
impl<'_, P> TryFrom<&'_ String> for HoloHash<P> where
P: PrimitiveHashType,
[src]
P: PrimitiveHashType,
type Error = HoloHashError
pub fn try_from(s: &String) -> Result<HoloHash<P>, HoloHashError>
[src]
impl<P> TryFrom<String> for HoloHash<P> where
P: PrimitiveHashType,
[src]
P: PrimitiveHashType,
type Error = HoloHashError
pub fn try_from(s: String) -> Result<HoloHash<P>, HoloHashError>
[src]
impl TryFrom<SerializedBytes> for EntryHashes
[src]
type Error = SerializedBytesError
pub fn try_from(
sb: SerializedBytes
) -> Result<EntryHashes, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<EntryHashes, SerializedBytesError>
impl<T> TryFrom<SerializedBytes> for HoloHash<T> where
T: HashType,
[src]
T: HashType,
type Error = SerializedBytesError
pub fn try_from(
sb: SerializedBytes
) -> Result<HoloHash<T>, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<HoloHash<T>, SerializedBytesError>
impl<'_, P> TryFrom<&'_ str> for HoloHash<P> where
P: PrimitiveHashType,
[src]
P: PrimitiveHashType,
type Error = HoloHashError
pub fn try_from(s: &str) -> Result<HoloHash<P>, HoloHashError>
[src]
impl<'_, A> TryFrom<&'_ [<A as Array>::Item]> for ArrayVec<A> where
A: Array,
<A as Array>::Item: Clone,
[src]
A: Array,
<A as Array>::Item: Clone,
Try to create an ArrayVec
from a slice. This will return an error if the slice was too big to
fit.
use arrayvec::ArrayVec; use std::convert::TryInto as _; let array: ArrayVec<[_; 4]> = (&[1, 2, 3] as &[_]).try_into().unwrap(); assert_eq!(array.len(), 3); assert_eq!(array.capacity(), 4);
type Error = CapacityError<()>
pub fn try_from(
slice: &[<A as Array>::Item]
) -> Result<ArrayVec<A>, <ArrayVec<A> as TryFrom<&'_ [<A as Array>::Item]>>::Error>
[src]
slice: &[<A as Array>::Item]
) -> Result<ArrayVec<A>, <ArrayVec<A> as TryFrom<&'_ [<A as Array>::Item]>>::Error>
impl TryFrom<Timestamp> for DateTime<Utc>
[src]
impl TryFrom<&'_ Timestamp> for DateTime<Utc>
[src]
Loading content...Implementors
impl TryFrom<&'_ ElementEntry> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &ElementEntry) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Entry> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Entry) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ EntryDefsCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &EntryDefsCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &EntryDefsCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ EntryVisibility> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &EntryVisibility
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &EntryVisibility
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ EntryType> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &EntryType) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Header> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Header) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ HeaderType> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &HeaderType) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ InitCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &InitCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &InitCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ Details> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Details) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ MigrateAgent> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &MigrateAgent) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ MigrateAgentCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &MigrateAgentCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &MigrateAgentCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ PostCommitCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &PostCommitCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &PostCommitCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ ActivityRequest> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &ActivityRequest
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &ActivityRequest
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ ValidateCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &ValidateCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &ValidateCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ ValidationPackageCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &ValidationPackageCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &ValidationPackageCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ ValidateLinkCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &ValidateLinkCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &ValidateLinkCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ ZomeCallResponse> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &ZomeCallResponse
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &ZomeCallResponse
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ str> for Timestamp
[src]
impl TryFrom<&'_ CapClaim> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &CapClaim) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ CapSecret> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &CapSecret) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ CellId> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &CellId) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Element> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Element) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ SignedHeader> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &SignedHeader) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ EntryWithDefId> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &EntryWithDefId) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ AgentValidationPkg> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &AgentValidationPkg
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &AgentValidationPkg
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ AppEntryType> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &AppEntryType) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ CloseChain> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &CloseChain) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Create> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Create) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ CreateLink> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &CreateLink) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Delete> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Delete) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ DeleteHeader> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &DeleteHeader) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ DeleteLink> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &DeleteLink) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Dna> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Dna) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ EntryDefIndex> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &EntryDefIndex) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ HeaderHashedVec> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &HeaderHashedVec
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &HeaderHashedVec
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ HeaderHashes> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &HeaderHashes) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ InitZomesComplete> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &InitZomesComplete
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &InitZomesComplete
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ OpenChain> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &OpenChain) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Update> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Update) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ UpdateHeader> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &UpdateHeader) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ ZomeId> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &ZomeId) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ AgentInfo> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &AgentInfo) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ ZomeInfo> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &ZomeInfo) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Link> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Link) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ LinkDetails> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &LinkDetails) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ LinkTag> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &LinkTag) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Links> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Links) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ ElementDetails> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &ElementDetails) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ EntryDetails> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &EntryDetails) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ AgentActivity> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &AgentActivity) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ ChainQueryFilter> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &ChainQueryFilter
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &ChainQueryFilter
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ RemoteSignal> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &RemoteSignal) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Sign> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Sign) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ Signature> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Signature) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ VerifySignature> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &VerifySignature
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &VerifySignature
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ Timestamp> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Timestamp) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ ValidateData> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &ValidateData) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ ValidationPackage> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &ValidationPackage
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &ValidationPackage
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ ValidateCreateLinkData> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &ValidateCreateLinkData
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &ValidateCreateLinkData
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ ValidateDeleteLinkData> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &ValidateDeleteLinkData
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &ValidateDeleteLinkData
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ Warrant> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &Warrant) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ XSalsa20Poly1305KeyRef> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &XSalsa20Poly1305KeyRef
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &XSalsa20Poly1305KeyRef
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ XSalsa20Poly1305Nonce> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &XSalsa20Poly1305Nonce
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &XSalsa20Poly1305Nonce
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ X25519XSalsa20Poly1305Decrypt> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &X25519XSalsa20Poly1305Decrypt
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &X25519XSalsa20Poly1305Decrypt
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ X25519XSalsa20Poly1305Encrypt> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &X25519XSalsa20Poly1305Encrypt
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &X25519XSalsa20Poly1305Encrypt
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ XSalsa20Poly1305Decrypt> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &XSalsa20Poly1305Decrypt
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &XSalsa20Poly1305Decrypt
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ XSalsa20Poly1305Encrypt> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: &XSalsa20Poly1305Encrypt
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &XSalsa20Poly1305Encrypt
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ X25519PubKey> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: &X25519PubKey) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<&'_ String> for Timestamp
[src]
impl TryFrom<ElementEntry> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: ElementEntry) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Entry> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Entry) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<EntryDefsCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: EntryDefsCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: EntryDefsCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<EntryVisibility> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: EntryVisibility) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<EntryType> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: EntryType) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Header> for CreateLink
[src]
impl TryFrom<Header> for Delete
[src]
impl TryFrom<Header> for DeleteLink
[src]
impl TryFrom<Header> for Update
[src]
impl TryFrom<Header> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Header) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<HeaderType> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: HeaderType) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<InitCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: InitCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: InitCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<Details> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Details) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<MigrateAgent> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: MigrateAgent) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<MigrateAgentCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: MigrateAgentCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: MigrateAgentCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<PostCommitCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: PostCommitCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: PostCommitCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<ActivityRequest> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: ActivityRequest) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<ValidateCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: ValidateCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: ValidateCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<ValidationPackageCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: ValidationPackageCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: ValidationPackageCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<ValidateLinkCallbackResult> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: ValidateLinkCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: ValidateLinkCallbackResult
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<ZomeCallResponse> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: ZomeCallResponse
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: ZomeCallResponse
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<&'_ [u8]> for CapSecret
[src]
impl TryFrom<&'_ [u8]> for XSalsa20Poly1305KeyRef
[src]
type Error = SecurePrimitiveError
fn try_from(slice: &[u8]) -> Result<XSalsa20Poly1305KeyRef, Self::Error>
[src]
impl TryFrom<&'_ [u8]> for XSalsa20Poly1305Nonce
[src]
type Error = SecurePrimitiveError
fn try_from(slice: &[u8]) -> Result<XSalsa20Poly1305Nonce, Self::Error>
[src]
impl TryFrom<&'_ [u8]> for X25519PubKey
[src]
type Error = SecurePrimitiveError
fn try_from(slice: &[u8]) -> Result<X25519PubKey, Self::Error>
[src]
impl TryFrom<()> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(t: ()) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<CapClaim> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: CapClaim) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<CapSecret> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: CapSecret) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<CellId> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: CellId) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Element> for CreateLink
[src]
impl TryFrom<Element> for DeleteLink
[src]
impl TryFrom<Element> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Element) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<SignedHeader> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: SignedHeader) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<EntryWithDefId> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: EntryWithDefId) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<AgentValidationPkg> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: AgentValidationPkg
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: AgentValidationPkg
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<AppEntryType> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: AppEntryType) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<CloseChain> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: CloseChain) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Create> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Create) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<CreateLink> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: CreateLink) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Delete> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Delete) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<DeleteHeader> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: DeleteHeader) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<DeleteLink> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: DeleteLink) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Dna> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Dna) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<EntryDefIndex> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: EntryDefIndex) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<HeaderHashedVec> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: HeaderHashedVec) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<HeaderHashes> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: HeaderHashes) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<InitZomesComplete> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: InitZomesComplete
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: InitZomesComplete
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<OpenChain> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: OpenChain) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Update> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Update) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<UpdateHeader> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: UpdateHeader) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<ZomeId> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: ZomeId) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<AgentInfo> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: AgentInfo) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<ZomeInfo> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: ZomeInfo) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Link> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Link) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<LinkDetails> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: LinkDetails) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<LinkTag> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: LinkTag) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Links> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Links) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<ElementDetails> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: ElementDetails) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<EntryDetails> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: EntryDetails) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<AgentActivity> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: AgentActivity) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<ChainQueryFilter> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: ChainQueryFilter
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: ChainQueryFilter
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<RemoteSignal> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: RemoteSignal) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Sign> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Sign) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Signature> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Signature) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<VerifySignature> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: VerifySignature) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<Timestamp> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Timestamp) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<ValidateData> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: ValidateData) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<ValidationPackage> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: ValidationPackage
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: ValidationPackage
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<ValidateCreateLinkData> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: ValidateCreateLinkData
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: ValidateCreateLinkData
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<ValidateDeleteLinkData> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: ValidateDeleteLinkData
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: ValidateDeleteLinkData
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<SerializedBytes> for ElementEntry
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<ElementEntry, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Entry
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Entry, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for EntryDefsCallbackResult
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<EntryDefsCallbackResult, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<EntryDefsCallbackResult, SerializedBytesError>
impl TryFrom<SerializedBytes> for EntryVisibility
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<EntryVisibility, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<EntryVisibility, SerializedBytesError>
impl TryFrom<SerializedBytes> for EntryType
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<EntryType, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Header
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Header, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for HeaderType
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<HeaderType, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for InitCallbackResult
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<InitCallbackResult, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<InitCallbackResult, SerializedBytesError>
impl TryFrom<SerializedBytes> for Details
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Details, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for MigrateAgent
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<MigrateAgent, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for MigrateAgentCallbackResult
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<MigrateAgentCallbackResult, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<MigrateAgentCallbackResult, SerializedBytesError>
impl TryFrom<SerializedBytes> for PostCommitCallbackResult
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<PostCommitCallbackResult, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<PostCommitCallbackResult, SerializedBytesError>
impl TryFrom<SerializedBytes> for ActivityRequest
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<ActivityRequest, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<ActivityRequest, SerializedBytesError>
impl TryFrom<SerializedBytes> for ValidateCallbackResult
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<ValidateCallbackResult, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<ValidateCallbackResult, SerializedBytesError>
impl TryFrom<SerializedBytes> for ValidationPackageCallbackResult
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<ValidationPackageCallbackResult, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<ValidationPackageCallbackResult, SerializedBytesError>
impl TryFrom<SerializedBytes> for ValidateLinkCallbackResult
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<ValidateLinkCallbackResult, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<ValidateLinkCallbackResult, SerializedBytesError>
impl TryFrom<SerializedBytes> for ZomeCallResponse
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<ZomeCallResponse, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<ZomeCallResponse, SerializedBytesError>
impl TryFrom<SerializedBytes> for CapClaim
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<CapClaim, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for CapSecret
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<CapSecret, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for CellId
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<CellId, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Element
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Element, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for SignedHeader
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<SignedHeader, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for AppEntryBytes
[src]
type Error = EntryError
fn try_from(sb: SerializedBytes) -> Result<Self, EntryError>
[src]
impl TryFrom<SerializedBytes> for EntryWithDefId
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<EntryWithDefId, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for AgentValidationPkg
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<AgentValidationPkg, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<AgentValidationPkg, SerializedBytesError>
impl TryFrom<SerializedBytes> for AppEntryType
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<AppEntryType, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for CloseChain
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<CloseChain, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Create
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Create, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for CreateLink
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<CreateLink, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Delete
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Delete, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for DeleteHeader
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<DeleteHeader, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for DeleteLink
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<DeleteLink, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Dna
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Dna, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for EntryDefIndex
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<EntryDefIndex, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for HeaderHashedVec
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<HeaderHashedVec, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<HeaderHashedVec, SerializedBytesError>
impl TryFrom<SerializedBytes> for HeaderHashes
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<HeaderHashes, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for InitZomesComplete
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<InitZomesComplete, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<InitZomesComplete, SerializedBytesError>
impl TryFrom<SerializedBytes> for OpenChain
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<OpenChain, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Update
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Update, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for UpdateHeader
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<UpdateHeader, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for ZomeId
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<ZomeId, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for AgentInfo
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<AgentInfo, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for ZomeInfo
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<ZomeInfo, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Link
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Link, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for LinkDetails
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<LinkDetails, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for LinkTag
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<LinkTag, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Links
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Links, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for ElementDetails
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<ElementDetails, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for EntryDetails
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<EntryDetails, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for AgentActivity
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<AgentActivity, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for ChainQueryFilter
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<ChainQueryFilter, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<ChainQueryFilter, SerializedBytesError>
impl TryFrom<SerializedBytes> for RemoteSignal
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<RemoteSignal, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Sign
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Sign, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for Signature
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Signature, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for VerifySignature
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<VerifySignature, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<VerifySignature, SerializedBytesError>
impl TryFrom<SerializedBytes> for Timestamp
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Timestamp, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for ValidateData
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<ValidateData, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for ValidationPackage
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<ValidationPackage, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<ValidationPackage, SerializedBytesError>
impl TryFrom<SerializedBytes> for ValidateCreateLinkData
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<ValidateCreateLinkData, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<ValidateCreateLinkData, SerializedBytesError>
impl TryFrom<SerializedBytes> for ValidateDeleteLinkData
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<ValidateDeleteLinkData, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<ValidateDeleteLinkData, SerializedBytesError>
impl TryFrom<SerializedBytes> for Warrant
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<Warrant, SerializedBytesError>
[src]
impl TryFrom<SerializedBytes> for XSalsa20Poly1305KeyRef
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<XSalsa20Poly1305KeyRef, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<XSalsa20Poly1305KeyRef, SerializedBytesError>
impl TryFrom<SerializedBytes> for XSalsa20Poly1305Nonce
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<XSalsa20Poly1305Nonce, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<XSalsa20Poly1305Nonce, SerializedBytesError>
impl TryFrom<SerializedBytes> for X25519XSalsa20Poly1305Decrypt
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<X25519XSalsa20Poly1305Decrypt, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<X25519XSalsa20Poly1305Decrypt, SerializedBytesError>
impl TryFrom<SerializedBytes> for X25519XSalsa20Poly1305Encrypt
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<X25519XSalsa20Poly1305Encrypt, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<X25519XSalsa20Poly1305Encrypt, SerializedBytesError>
impl TryFrom<SerializedBytes> for XSalsa20Poly1305Decrypt
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<XSalsa20Poly1305Decrypt, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<XSalsa20Poly1305Decrypt, SerializedBytesError>
impl TryFrom<SerializedBytes> for XSalsa20Poly1305Encrypt
[src]
type Error = SerializedBytesError
fn try_from(
sb: SerializedBytes
) -> Result<XSalsa20Poly1305Encrypt, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<XSalsa20Poly1305Encrypt, SerializedBytesError>
impl TryFrom<SerializedBytes> for X25519PubKey
[src]
type Error = SerializedBytesError
fn try_from(sb: SerializedBytes) -> Result<X25519PubKey, SerializedBytesError>
[src]
impl TryFrom<Warrant> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: Warrant) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<XSalsa20Poly1305KeyRef> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: XSalsa20Poly1305KeyRef
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: XSalsa20Poly1305KeyRef
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<XSalsa20Poly1305Nonce> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: XSalsa20Poly1305Nonce
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: XSalsa20Poly1305Nonce
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<X25519XSalsa20Poly1305Decrypt> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: X25519XSalsa20Poly1305Decrypt
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: X25519XSalsa20Poly1305Decrypt
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<X25519XSalsa20Poly1305Encrypt> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: X25519XSalsa20Poly1305Encrypt
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: X25519XSalsa20Poly1305Encrypt
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<XSalsa20Poly1305Decrypt> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: XSalsa20Poly1305Decrypt
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: XSalsa20Poly1305Decrypt
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<XSalsa20Poly1305Encrypt> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(
t: XSalsa20Poly1305Encrypt
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: XSalsa20Poly1305Encrypt
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<X25519PubKey> for SerializedBytes
[src]
type Error = SerializedBytesError
fn try_from(t: X25519PubKey) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<String> for Timestamp
[src]
impl TryFrom<EntryHashes> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(t: EntryHashes) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<BoolWrap> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(t: BoolWrap) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<StringWrap> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(t: StringWrap) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl TryFrom<U32Wrap> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(t: U32Wrap) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl<'_> TryFrom<&'_ ()> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(t: &()) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl<'_> TryFrom<&'_ EntryHashes> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(
t: &EntryHashes
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &EntryHashes
) -> Result<SerializedBytes, SerializedBytesError>
impl<'_> TryFrom<&'_ BoolWrap> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(t: &BoolWrap) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl<'_> TryFrom<&'_ StringWrap> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(t: &StringWrap) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl<'_> TryFrom<&'_ U32Wrap> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(t: &U32Wrap) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl<'_, T> TryFrom<&'_ HoloHash<T>> for SerializedBytes where
T: HashType,
[src]
T: HashType,
type Error = SerializedBytesError
pub fn try_from(
t: &HoloHash<T>
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &HoloHash<T>
) -> Result<SerializedBytes, SerializedBytesError>
impl<'a> TryFrom<&'a Header> for &'a CreateLink
[src]
impl<'a> TryFrom<&'a Header> for &'a Delete
[src]
impl<'a> TryFrom<&'a Header> for &'a DeleteLink
[src]
impl<'a> TryFrom<&'a Header> for &'a Update
[src]
impl<'a> TryFrom<&'a SerializedBytes> for SerializedBytes
[src]
type Error = SerializedBytesError
pub fn try_from(
s: &'a SerializedBytes
) -> Result<SerializedBytes, <SerializedBytes as TryFrom<&'a SerializedBytes>>::Error>
[src]
s: &'a SerializedBytes
) -> Result<SerializedBytes, <SerializedBytes as TryFrom<&'a SerializedBytes>>::Error>
impl<T> TryFrom<HoloHash<T>> for SerializedBytes where
T: HashType,
[src]
T: HashType,
type Error = SerializedBytesError
pub fn try_from(t: HoloHash<T>) -> Result<SerializedBytes, SerializedBytesError>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,