Trait nom::lib::std::convert::From1.0.0[][src]

pub trait From<T> {
    fn from(T) -> Self;
}

Simple and safe type conversions in to Self. It is the reciprocal of Into.

This trait is useful when performing error handling as described by the book and is closely related to the ? operator.

When constructing a function that is capable of failing the return type will generally be of the form Result<T, E>.

The From trait allows for simplification of error handling by providing a means of returning a single error type that encapsulates numerous possible erroneous situations.

This trait is not limited to error handling, rather the general case for this trait would be in any type conversions to have an explicit definition of how they are performed.

Note: this trait must not fail. If the conversion can fail, use TryFrom or a dedicated method which returns an Option<T> or a Result<T, E>.

Generic Implementations

Examples

String implements From<&str>:

let string = "hello".to_string();
let other_string = String::from("hello");

assert_eq!(string, other_string);

An example usage for error handling:

use std::io::{self, Read};
use std::num;

enum CliError {
    IoError(io::Error),
    ParseError(num::ParseIntError),
}

impl From<io::Error> for CliError {
    fn from(error: io::Error) -> Self {
        CliError::IoError(error)
    }
}

impl From<num::ParseIntError> for CliError {
    fn from(error: num::ParseIntError) -> Self {
        CliError::ParseError(error)
    }
}

fn open_and_parse_file(file_name: &str) -> Result<i32, CliError> {
    let mut file = std::fs::File::open("test")?;
    let mut contents = String::new();
    file.read_to_string(&mut contents)?;
    let num: i32 = contents.trim().parse()?;
    Ok(num)
}

Required Methods

Performs the conversion.

Implementations on Foreign Types

impl From<RecvError> for TryRecvError
[src]

impl<T> From<SendError<T>> for TrySendError<T>
[src]

impl From<Box<Path>> for PathBuf
[src]

impl From<[u16; 8]> for IpAddr
[src]

Create an IpAddr::V6 from an eight element 16-bit array.

Examples

use std::net::{IpAddr, Ipv6Addr};

let addr = IpAddr::from([
    525u16, 524u16, 523u16, 522u16,
    521u16, 520u16, 519u16, 518u16,
]);
assert_eq!(
    IpAddr::V6(Ipv6Addr::new(
        0x20d, 0x20c,
        0x20b, 0x20a,
        0x209, 0x208,
        0x207, 0x206
    )),
    addr
);

impl<W> From<IntoInnerError<W>> for Error
[src]

impl From<ChildStderr> for Stdio
[src]

impl From<OsString> for PathBuf
[src]

impl From<PathBuf> for OsString
[src]

impl From<u32> for Ipv4Addr
[src]

Convert a host byte order u32 into an Ipv4Addr.

Examples

use std::net::Ipv4Addr;

let addr = Ipv4Addr::from(0x0d0c0b0au32);
assert_eq!(Ipv4Addr::new(13, 12, 11, 10), addr);

impl From<[u8; 16]> for IpAddr
[src]

Create an IpAddr::V6 from a sixteen element byte array.

Examples

use std::net::{IpAddr, Ipv6Addr};

let addr = IpAddr::from([
    25u8, 24u8, 23u8, 22u8, 21u8, 20u8, 19u8, 18u8,
    17u8, 16u8, 15u8, 14u8, 13u8, 12u8, 11u8, 10u8,
]);
assert_eq!(
    IpAddr::V6(Ipv6Addr::new(
        0x1918, 0x1716,
        0x1514, 0x1312,
        0x1110, 0x0f0e,
        0x0d0c, 0x0b0a
    )),
    addr
);

impl From<CString> for Rc<CStr>
[src]

impl<T> From<T> for Mutex<T>
[src]

Creates a new mutex in an unlocked state ready for use. This is equivalent to Mutex::new.

impl From<File> for Stdio
[src]

impl From<Ipv6Addr> for IpAddr
[src]

impl<'a> From<&'a OsStr> for Rc<OsStr>
[src]

impl From<OsString> for Rc<OsStr>
[src]

impl<'a> From<&'a CStr> for Rc<CStr>
[src]

impl<T> From<T> for RwLock<T>
[src]

Creates a new instance of an RwLock<T> which is unlocked. This is equivalent to RwLock::new.

impl From<ChildStdout> for Stdio
[src]

impl<'a> From<&'a CStr> for CString
[src]

impl From<u128> for Ipv6Addr
[src]

impl From<[u8; 4]> for IpAddr
[src]

Create an IpAddr::V4 from a four element byte array.

Examples

use std::net::{IpAddr, Ipv4Addr};

let addr = IpAddr::from([13u8, 12u8, 11u8, 10u8]);
assert_eq!(IpAddr::V4(Ipv4Addr::new(13, 12, 11, 10)), addr);

impl From<ErrorKind> for Error
[src]

Intended for use for errors not exposed to the user, where allocating onto the heap (for normal construction via Error::new) is too costly.

impl From<SocketAddrV6> for SocketAddr
[src]

impl<I> From<(I, u16)> for SocketAddr where
    I: Into<IpAddr>, 
[src]

impl<'a, T> From<&'a T> for OsString where
    T: AsRef<OsStr> + ?Sized
[src]

impl From<[u8; 4]> for Ipv4Addr
[src]

Examples

use std::net::Ipv4Addr;

let addr = Ipv4Addr::from([13u8, 12u8, 11u8, 10u8]);
assert_eq!(Ipv4Addr::new(13, 12, 11, 10), addr);

impl From<SocketAddrV4> for SocketAddr
[src]

impl From<DefaultEnvKey> for OsString
[src]

impl From<Ipv4Addr> for IpAddr
[src]

impl From<Ipv6Addr> for u128
[src]

impl From<ChildStdin> for Stdio
[src]

impl From<Box<CStr>> for CString
[src]

impl<'a, T> From<&'a T> for PathBuf where
    T: AsRef<OsStr> + ?Sized
[src]

impl From<NulError> for Error
[src]

impl From<[u8; 16]> for Ipv6Addr
[src]

impl<'a> From<&'a Path> for Cow<'a, Path>
[src]

impl From<[u16; 8]> for Ipv6Addr
[src]

impl From<Box<OsStr>> for OsString
[src]

impl<T> From<PoisonError<T>> for TryLockError<T>
[src]

impl<'a> From<&'a OsStr> for Arc<OsStr>
[src]

impl<'a> From<&'a Path> for Rc<Path>
[src]

impl From<CString> for Arc<CStr>
[src]

impl From<OsString> for Arc<OsStr>
[src]

impl<'a> From<&'a Path> for Arc<Path>
[src]

impl From<Ipv4Addr> for u32
[src]

Convert an Ipv4Addr into a host byte order u32.

Examples

use std::net::Ipv4Addr;

let addr = Ipv4Addr::new(13, 12, 11, 10);
assert_eq!(0x0d0c0b0au32, u32::from(addr));

impl<'a> From<&'a CStr> for Arc<CStr>
[src]

impl From<RecvError> for RecvTimeoutError
[src]

impl From<PathBuf> for Arc<Path>
[src]

impl<'a> From<PathBuf> for Cow<'a, Path>
[src]

impl From<String> for OsString
[src]

impl From<String> for PathBuf
[src]

impl From<PathBuf> for Rc<Path>
[src]

impl From<i8> for isize
[src]

impl From<i64> for AtomicI64
[src]

impl From<i16x2> for u16x2
[src]

impl From<i64x8> for u64x8
[src]

impl From<m16x2> for i8x2
[src]

impl From<bool> for AtomicBool
[src]

impl From<u8x8> for i16x8
[src]

impl From<u8x4> for i8x4
[src]

impl From<u8x2> for u64x2
[src]

impl From<u32x2> for i8x2
[src]

impl From<m16x8> for m8x8
[src]

impl From<i16x16> for u32x16
[src]

impl From<m16x8> for i8x8
[src]

impl From<i16x4> for u8x4
[src]

impl From<i64x2> for i32x2
[src]

impl From<m32x8> for u64x8
[src]

impl From<m1x16> for i16x16
[src]

impl From<u32x4> for u8x4
[src]

impl From<u16x4> for u32x4
[src]

impl From<u8x64> for i8x64
[src]

impl From<m8x8> for m32x8
[src]

impl From<m16x16> for u16x16
[src]

impl From<i8x8> for f32x8
[src]

impl From<f32x8> for u16x8
[src]

impl From<i8> for AtomicI8
[src]

impl From<m8x32> for u8x32
[src]

impl<'a, T> From<&'a T> for NonNull<T> where
    T: ?Sized
[src]

impl From<i64x8> for f64x8
[src]

impl From<m32x8> for i64x8
[src]

impl From<u32x2> for u64x2
[src]

impl From<m64x2> for f32x2
[src]

impl From<i32> for f64
[src]

impl From<u16> for u128
[src]

impl From<m32x8> for u32x8
[src]

impl From<u16x8> for u64x8
[src]

impl From<u32x16> for f32x16
[src]

impl From<m16x16> for i16x16
[src]

impl From<m16x16> for f32x16
[src]

impl From<i32> for i64
[src]

impl From<f64x8> for f32x8
[src]

impl From<m1x16> for u8x16
[src]

impl From<f32x4> for i64x4
[src]

impl From<f32x2> for u32x2
[src]

impl From<m8x2> for m64x2
[src]

impl From<u16> for f32
[src]

impl From<u8> for isize
[src]

impl From<f32x2> for u8x2
[src]

impl From<i16x8> for f64x8
[src]

impl From<u16x2> for u32x2
[src]

impl From<i8x2> for i64x2
[src]

impl From<u32x16> for i32x16
[src]

impl From<u8x8> for i8x8
[src]

impl From<i32x8> for i64x8
[src]

impl From<u16> for i32
[src]

impl From<m16x8> for i16x8
[src]

impl From<i8x32> for u8x32
[src]

impl From<u16x8> for f32x8
[src]

impl From<m32x2> for f32x2
[src]

impl From<m8x32> for i16x32
[src]

impl From<i32x4> for u8x4
[src]

impl From<m8x32> for m1x32
[src]

impl From<f32x2> for u16x2
[src]

impl From<m16x8> for m1x8
[src]

impl From<u64x8> for u32x8
[src]

impl From<m32x8> for u8x8
[src]

impl From<i8x16> for i32x16
[src]

impl From<f64x4> for u32x4
[src]

impl From<u32> for u64
[src]

impl From<f32x16> for i32x16
[src]

impl From<i32x4> for f32x4
[src]

impl From<m1x64> for i8x64
[src]

impl From<u64x8> for u8x8
[src]

impl From<u32> for i64
[src]

impl From<i8> for f64
[src]

impl From<i16x4> for i32x4
[src]

impl From<m32x8> for m1x8
[src]

impl From<i8x4> for u64x4
[src]

impl From<m32x8> for m16x8
[src]

impl From<f32x4> for u64x4
[src]

impl From<u16x2> for i16x2
[src]

impl From<m8x8> for u16x8
[src]

impl From<u16> for u64
[src]

impl From<m16x2> for u8x2
[src]

impl From<i16x8> for u8x8
[src]

impl From<u16x16> for u32x16
[src]

impl From<m1x8> for u64x8
[src]

impl From<u64x8> for i16x8
[src]

impl From<u32> for u128
[src]

impl From<m8x8> for f32x8
[src]

impl From<i8> for i32
[src]

impl From<u8x16> for i8x16
[src]

impl From<m16x8> for u8x8
[src]

impl From<i8x4> for u32x4
[src]

impl From<u32x16> for i8x16
[src]

impl From<m16x4> for i16x4
[src]

impl From<m8x16> for m1x16
[src]

impl From<u8x2> for i32x2
[src]

impl From<f32x4> for i8x4
[src]

impl From<u32x8> for i32x8
[src]

impl From<m16x2> for i32x2
[src]

impl From<u8x16> for u32x16
[src]

impl From<u8x8> for f64x8
[src]

impl From<u8> for u128
[src]

impl From<m32x4> for i16x4
[src]

impl From<f64x8> for u32x8
[src]

impl From<m8x4> for i64x4
[src]

impl From<i16x8> for f32x8
[src]

impl From<u64x8> for u16x8
[src]

impl From<f64x4> for i8x4
[src]

impl From<u8> for f64
[src]

impl From<u32x4> for f32x4
[src]

impl From<f64x2> for u64x2
[src]

impl From<u64x8> for f32x8
[src]

impl From<f32x2> for i64x2
[src]

impl<'a, T> From<&'a T> for NonZero<*const T> where
    T: ?Sized
[src]

impl From<u8x2> for i8x2
[src]

impl From<f64x4> for u64x4
[src]

impl From<m64x4> for i32x4
[src]

impl From<f32x4> for u32x4
[src]

impl From<m64x2> for i64x2
[src]

impl From<m64x2> for u32x2
[src]

impl<T> From<*mut T> for AtomicPtr<T>
[src]

impl From<i8x2> for u16x2
[src]

impl From<m8x4> for m32x4
[src]

impl From<u8x16> for f32x16
[src]

impl From<i32x2> for u8x2
[src]

impl From<i8x2> for i16x2
[src]

impl From<m16x8> for f32x8
[src]

impl From<i16x16> for i32x16
[src]

impl<T> From<T> for UnsafeCell<T>
[src]

impl From<u16x8> for i8x8
[src]

impl From<u16x16> for i32x16
[src]

impl From<m16x2> for i64x2
[src]

impl From<m8x16> for i32x16
[src]

impl From<u32x16> for u8x16
[src]

impl From<u16> for i64
[src]

impl From<usize> for AtomicUsize
[src]

impl From<i8x2> for u8x2
[src]

impl<'a, T> From<&'a mut T> for NonZero<*mut T> where
    T: ?Sized
[src]

impl From<m32x2> for i8x2
[src]

impl From<f32x4> for f64x4
[src]

impl From<u16x8> for i64x8
[src]

impl From<u8x16> for i16x16
[src]

impl From<f32x2> for i16x2
[src]

impl From<i16x2> for i64x2
[src]

impl From<m16x8> for u16x8
[src]

impl From<u8x8> for i32x8
[src]

impl From<i16x16> for u8x16
[src]

impl From<u16x4> for i64x4
[src]

impl From<m32x8> for i32x8
[src]

impl From<m32x4> for u16x4
[src]

impl From<f64x4> for u8x4
[src]

impl From<m32x2> for u8x2
[src]

impl From<u8x2> for i64x2
[src]

impl From<u32x4> for f64x4
[src]

impl From<m16x8> for f64x8
[src]

impl From<i16x4> for i8x4
[src]

impl From<m32x2> for m64x2
[src]

impl From<i16x8> for i32x8
[src]

impl From<m16x8> for i32x8
[src]

impl From<m64x2> for i32x2
[src]

impl From<i16x8> for u32x8
[src]

impl From<m64x4> for f32x4
[src]

impl From<u16> for usize
[src]

impl From<i64x2> for f32x2
[src]

impl From<f64x8> for u16x8
[src]

impl From<i8x64> for u8x64
[src]

impl From<m32x2> for i16x2
[src]

impl From<i64x4> for i16x4
[src]

impl From<m64x4> for u32x4
[src]

impl From<f32x8> for u32x8
[src]

impl From<u16x4> for i16x4
[src]

impl From<m1x8> for u16x8
[src]

impl From<i16x8> for i64x8
[src]

impl From<u8> for f32
[src]

impl From<m8x8> for m16x8
[src]

impl From<u16x8> for i32x8
[src]

impl From<u8> for i128
[src]

impl From<u16x8> for i16x8
[src]

impl From<u32x2> for i32x2
[src]

impl From<m1x16> for m16x16
[src]

impl From<m16x4> for m32x4
[src]

impl From<u16x32> for i16x32
[src]

impl From<f64x4> for i64x4
[src]

impl From<m1x32> for i16x32
[src]

impl From<m64x4> for m32x4
[src]

impl From<i64x4> for i8x4
[src]

impl From<u64> for u128
[src]

impl From<u16x2> for i64x2
[src]

impl From<u16x4> for i8x4
[src]

impl From<m16x4> for u32x4
[src]

impl From<u32x8> for i16x8
[src]

impl From<m32x8> for m8x8
[src]

impl From<u16x4> for u8x4
[src]

impl From<m16x8> for m32x8
[src]

impl From<f64x4> for i32x4
[src]

impl From<f64x2> for u32x2
[src]

impl From<f32x16> for u8x16
[src]

impl From<u64x4> for u8x4
[src]

impl From<u8x2> for i16x2
[src]

impl From<u32x2> for f32x2
[src]

impl From<f64x4> for f32x4
[src]

impl From<i16x8> for u64x8
[src]

impl From<f32x4> for u16x4
[src]

impl From<f32x4> for u8x4
[src]

impl From<u32x8> for u16x8
[src]

impl From<m32x2> for m16x2
[src]

impl From<m32x4> for i8x4
[src]

impl From<m16x2> for i16x2
[src]

impl From<i64x2> for u64x2
[src]

impl From<u64x4> for u32x4
[src]

impl From<u32x8> for i64x8
[src]

impl From<m32x8> for u16x8
[src]

impl From<i16x4> for u32x4
[src]

impl From<i64x8> for f32x8
[src]

impl From<u32x8> for f64x8
[src]

impl From<i32x2> for u32x2
[src]

impl From<m8x8> for i32x8
[src]

impl From<m1x8> for m32x8
[src]

impl From<u16x32> for u8x32
[src]

impl From<i64x2> for u32x2
[src]

impl From<f64x8> for i16x8
[src]

impl From<f32x16> for u16x16
[src]

impl From<i16> for isize
[src]

impl From<i8x32> for u16x32
[src]

impl From<m8x4> for f64x4
[src]

impl From<u32x2> for u16x2
[src]

impl From<i32x8> for i16x8
[src]

impl From<i16> for f64
[src]

impl From<u64x8> for i8x8
[src]

impl From<u8> for i32
[src]

impl<'a, T> From<&'a mut T> for NonZero<*const T> where
    T: ?Sized
[src]

impl From<i8x32> for i16x32
[src]

impl From<i32x4> for u32x4
[src]

impl From<i32x8> for i8x8
[src]

impl From<i8x8> for i64x8
[src]

impl From<u64x4> for i8x4
[src]

impl From<f32x2> for u64x2
[src]

impl From<m64x2> for m16x2
[src]

impl From<i32x4> for i8x4
[src]

impl From<m64x2> for i16x2
[src]

impl From<m8x8> for i64x8
[src]

impl From<m8x2> for i32x2
[src]

impl From<i32x4> for u16x4
[src]

impl From<m8x16> for i16x16
[src]

impl From<i8> for f32
[src]

impl From<i8x4> for i16x4
[src]

impl From<u64x8> for f64x8
[src]

impl From<m16x4> for u64x4
[src]

impl From<m16x4> for u8x4
[src]

impl From<m64x2> for m32x2
[src]

impl From<m32x2> for i64x2
[src]

impl From<m8x16> for f32x16
[src]

impl From<m8x4> for f32x4
[src]

impl From<m1x8> for f32x8
[src]

impl From<i64x4> for u8x4
[src]

impl From<f32x2> for i32x2
[src]

impl From<m1x8> for i32x8
[src]

impl From<m8x2> for u64x2
[src]

impl From<u64x2> for f32x2
[src]

impl From<u16x16> for u8x16
[src]

impl<T> From<Unique<T>> for NonNull<T> where
    T: ?Sized
[src]

impl From<i16x2> for f64x2
[src]

impl From<u32x8> for u64x8
[src]

impl From<m16x16> for m8x16
[src]

impl From<m8x4> for i32x4
[src]

impl From<i8x8> for i32x8
[src]

impl From<i16x2> for u64x2
[src]

impl From<u32x4> for i64x4
[src]

impl From<f64x2> for u16x2
[src]

impl From<i32x16> for u32x16
[src]

impl From<i32x8> for u32x8
[src]

impl From<m16x2> for f32x2
[src]

impl From<f64x2> for i64x2
[src]

impl From<i16x32> for u16x32
[src]

impl From<u16x2> for u8x2
[src]

impl From<isize> for AtomicIsize
[src]

impl From<u16> for u32
[src]

impl From<u64x4> for u16x4
[src]

impl From<u64x2> for f64x2
[src]

impl From<f32x16> for u32x16
[src]

impl From<u64x4> for i32x4
[src]

impl From<u32x8> for f32x8
[src]

impl From<u64x8> for i64x8
[src]

impl From<m32x8> for f32x8
[src]

impl From<u64x2> for i64x2
[src]

impl From<f32x16> for i8x16
[src]

impl From<i16x2> for u32x2
[src]

impl From<m1x32> for m8x32
[src]

impl From<i64x4> for u32x4
[src]

impl From<i32x2> for i64x2
[src]

impl From<m32x8> for f64x8
[src]

impl From<m64x2> for u8x2
[src]

impl From<m32x4> for m16x4
[src]

impl From<u16x2> for f64x2
[src]

impl From<i8x16> for u16x16
[src]

impl From<i8x4> for f32x4
[src]

impl From<f64x2> for f32x2
[src]

impl From<u64x4> for i16x4
[src]

impl From<m8x8> for u32x8
[src]

impl From<i16> for f32
[src]

impl From<m16x2> for m32x2
[src]

impl From<i32x2> for u64x2
[src]

impl From<m16x4> for i8x4
[src]

impl From<i64x2> for u8x2
[src]

impl From<i64x8> for u32x8
[src]

impl From<u8> for i64
[src]

impl From<m16x4> for f64x4
[src]

impl From<u8x2> for u32x2
[src]

impl From<i32x4> for u64x4
[src]

impl From<u8x4> for i32x4
[src]

impl From<i8x8> for u8x8
[src]

impl From<u32> for AtomicU32
[src]

impl From<i32x16> for u16x16
[src]

impl From<i8x2> for u64x2
[src]

impl From<u16> for f64
[src]

impl From<u8x4> for f32x4
[src]

impl From<m64x4> for i8x4
[src]

impl From<m16x4> for m64x4
[src]

impl From<m32x2> for u64x2
[src]

impl From<m8x16> for u32x16
[src]

impl From<i32x4> for i16x4
[src]

impl From<!> for TryFromIntError
[src]

impl From<i8x8> for f64x8
[src]

impl From<m8x16> for i8x16
[src]

impl From<u32x8> for u8x8
[src]

impl From<u8> for usize
[src]

impl From<u64x4> for f32x4
[src]

impl From<u64x2> for i32x2
[src]

impl From<f64x8> for i32x8
[src]

impl From<m16x16> for i32x16
[src]

impl From<i32x4> for f64x4
[src]

impl From<m64x2> for f64x2
[src]

impl From<m32x4> for m64x4
[src]

impl From<i64x8> for i8x8
[src]

impl From<i16x32> for i8x32
[src]

impl From<i8x16> for f32x16
[src]

impl From<f32x8> for u8x8
[src]

impl From<f32x8> for i16x8
[src]

impl From<u16x16> for f32x16
[src]

impl From<i8x16> for u8x16
[src]

impl From<i32x16> for i8x16
[src]

impl From<m8x4> for m64x4
[src]

impl From<u16x4> for f32x4
[src]

impl From<m64x4> for u8x4
[src]

impl From<i64x4> for f64x4
[src]

impl From<m32x4> for u64x4
[src]

impl From<m64x4> for i16x4
[src]

impl From<i8x4> for i32x4
[src]

impl From<m32x4> for u8x4
[src]

impl From<m16x8> for u32x8
[src]

impl From<i8> for i64
[src]

impl From<m32x2> for u32x2
[src]

impl From<m16x4> for i32x4
[src]

impl From<f64x4> for i16x4
[src]

impl From<m16x2> for m8x2
[src]

impl From<u8x32> for i8x32
[src]

impl From<i8x2> for i32x2
[src]

impl From<m32x2> for f64x2
[src]

impl From<u16x8> for u32x8
[src]

impl From<u8> for u32
[src]

impl From<m8x2> for i8x2
[src]

impl From<i8> for i16
[src]

impl From<i32x16> for f32x16
[src]

impl From<i64x2> for u16x2
[src]

impl From<u64x2> for u8x2
[src]

impl From<u16> for AtomicU16
[src]

impl From<m8x8> for i16x8
[src]

impl From<m8x8> for u8x8
[src]

impl From<m1x16> for f32x16
[src]

impl From<m64x4> for m16x4
[src]

impl From<m16x2> for f64x2
[src]

impl From<i64x8> for u8x8
[src]

impl From<u32x4> for i16x4
[src]

impl From<f32x8> for i8x8
[src]

impl From<u8x16> for i32x16
[src]

impl From<i64x4> for f32x4
[src]

impl From<m1x8> for m16x8
[src]

impl From<i16x16> for f32x16
[src]

impl From<i8x8> for u64x8
[src]

impl From<i32x8> for u8x8
[src]

impl From<m8x4> for u8x4
[src]

impl From<u8x2> for f32x2
[src]

impl From<i64x8> for i32x8
[src]

impl From<u16x8> for u8x8
[src]

impl From<u8> for u64
[src]

impl From<u8x4> for u16x4
[src]

impl From<u8x2> for f64x2
[src]

impl From<m1x8> for u8x8
[src]

impl From<i16> for AtomicI16
[src]

impl From<m1x16> for u32x16
[src]

impl From<u32> for i128
[src]

impl From<i64x4> for u64x4
[src]

impl From<m32x2> for m8x2
[src]

impl From<m16x2> for m64x2
[src]

impl From<m1x8> for u32x8
[src]

impl From<m32x2> for u16x2
[src]

impl From<m16x4> for i64x4
[src]

impl From<i8> for i128
[src]

impl From<m16x2> for u32x2
[src]

impl From<u16x4> for u64x4
[src]

impl From<u8x32> for i16x32
[src]

impl From<i32x2> for f64x2
[src]

impl From<i16> for i64
[src]

impl From<i32x8> for f64x8
[src]

impl From<m32x2> for i32x2
[src]

impl From<m64x4> for u64x4
[src]

impl From<u8x4> for f64x4
[src]

impl From<u16x32> for i8x32
[src]

impl From<f64x8> for u8x8
[src]

impl From<char> for u32
[src]

impl From<m8x2> for f64x2
[src]

impl From<m64x2> for i8x2
[src]

impl From<m8x16> for u16x16
[src]

impl From<f32x2> for i8x2
[src]

impl From<m32x8> for i16x8
[src]

impl From<u8> for char
[src]

Maps a byte in 0x00...0xFF to a char whose code point has the same value, in U+0000 to U+00FF.

Unicode is designed such that this effectively decodes bytes with the character encoding that IANA calls ISO-8859-1. This encoding is compatible with ASCII.

Note that this is different from ISO/IEC 8859-1 a.k.a. ISO 8859-1 (with one less hyphen), which leaves some "blanks", byte values that are not assigned to any character. ISO-8859-1 (the IANA one) assigns them to the C0 and C1 control codes.

Note that this is also different from Windows-1252 a.k.a. code page 1252, which is a superset ISO/IEC 8859-1 that assigns some (not all!) blanks to punctuation and various Latin characters.

To confuse things further, on the Web ascii, iso-8859-1, and windows-1252 are all aliases for a superset of Windows-1252 that fills the remaining blanks with corresponding C0 and C1 control codes.

impl From<i32> for AtomicI32
[src]

impl From<i8x8> for i16x8
[src]

impl From<u16x2> for u64x2
[src]

impl From<f32x8> for u64x8
[src]

impl From<u64x4> for f64x4
[src]

impl<T> From<T> for RefCell<T>
[src]

impl From<i16x2> for i32x2
[src]

impl From<m64x4> for i64x4
[src]

impl From<u64> for AtomicU64
[src]

impl From<f64x4> for u16x4
[src]

impl From<u64x2> for i8x2
[src]

impl From<m8x8> for u64x8
[src]

impl From<m64x2> for u16x2
[src]

impl From<i16x2> for f32x2
[src]

impl From<m64x2> for u64x2
[src]

impl From<m8x2> for m32x2
[src]

impl From<u16x16> for i16x16
[src]

impl From<u8x32> for u16x32
[src]

impl From<m8x32> for u16x32
[src]

impl From<i16x16> for i8x16
[src]

impl From<m8x8> for i8x8
[src]

impl From<i64x2> for i16x2
[src]

impl From<u64> for i128
[src]

impl From<u8x8> for u64x8
[src]

impl From<f32x8> for i32x8
[src]

impl From<u8x4> for u32x4
[src]

impl From<m16x16> for i8x16
[src]

impl From<m64x4> for f64x4
[src]

impl From<m16x2> for u16x2
[src]

impl From<i8x4> for f64x4
[src]

impl From<m64x4> for m8x4
[src]

impl From<u32x8> for i8x8
[src]

impl From<u8x16> for u16x16
[src]

impl From<f64x2> for i32x2
[src]

impl From<m1x8> for i16x8
[src]

impl From<u32x16> for i16x16
[src]

impl From<i32x8> for u64x8
[src]

impl From<u32x4> for u16x4
[src]

impl From<i8x16> for u32x16
[src]

impl From<i8x8> for u16x8
[src]

impl From<i8x4> for u8x4
[src]

impl From<m64x2> for m8x2
[src]

impl From<u64x2> for u16x2
[src]

impl From<f32x4> for i16x4
[src]

impl From<i16x32> for u8x32
[src]

impl From<m32x4> for u32x4
[src]

impl From<i16x8> for i8x8
[src]

impl From<m8x2> for i16x2
[src]

impl From<u8x4> for u64x4
[src]

impl<'a, T> From<&'a mut T> for NonNull<T> where
    T: ?Sized
[src]

impl From<u16x16> for i8x16
[src]

impl From<u32x4> for i32x4
[src]

impl From<i32x8> for f32x8
[src]

impl From<m8x2> for u32x2
[src]

impl From<m32x4> for i64x4
[src]

impl From<i8x8> for u32x8
[src]

impl From<u8x4> for i64x4
[src]

impl From<i32x2> for i16x2
[src]

impl From<m8x2> for u16x2
[src]

impl From<i8x4> for i64x4
[src]

impl From<m16x4> for f32x4
[src]

impl From<f64x8> for i64x8
[src]

impl From<u8> for i16
[src]

impl From<f32x16> for i16x16
[src]

impl From<i8x2> for f64x2
[src]

impl From<i32x8> for u16x8
[src]

impl From<m16x16> for m1x16
[src]

impl From<i32x2> for i8x2
[src]

impl From<m1x8> for i64x8
[src]

impl From<i32x16> for u8x16
[src]

impl From<u16x2> for f32x2
[src]

impl From<i8x4> for u16x4
[src]

impl From<i64x2> for f64x2
[src]

impl From<f64x8> for i8x8
[src]

impl From<m1x16> for i32x16
[src]

impl From<i16x8> for u16x8
[src]

impl From<i16> for i32
[src]

impl From<m8x16> for u8x16
[src]

impl From<i8x2> for f32x2
[src]

impl From<u32x4> for i8x4
[src]

impl From<i64> for i128
[src]

impl From<f32x4> for i32x4
[src]

impl From<i16x4> for u64x4
[src]

impl From<f32x2> for f64x2
[src]

impl From<i64x8> for u16x8
[src]

impl From<u32x2> for f64x2
[src]

impl From<m8x2> for f32x2
[src]

impl From<f64x2> for i16x2
[src]

impl From<u8x8> for i64x8
[src]

impl From<u8x4> for i16x4
[src]

impl From<m8x4> for u16x4
[src]

impl From<m1x16> for u16x16
[src]

impl From<m8x16> for m16x16
[src]

impl From<m8x4> for m16x4
[src]

impl From<m1x8> for m8x8
[src]

impl From<m1x8> for i8x8
[src]

impl From<u8> for AtomicU8
[src]

impl From<m32x4> for f64x4
[src]

impl From<m1x16> for i8x16
[src]

impl From<u64x2> for u32x2
[src]

impl From<f64x2> for i8x2
[src]

impl From<f32> for f64
[src]

impl From<m64x4> for u16x4
[src]

impl From<u32> for f64
[src]

impl From<u32x16> for u16x16
[src]

impl From<u32x2> for u8x2
[src]

impl From<u64x4> for i64x4
[src]

impl From<i16x16> for u16x16
[src]

impl From<m16x2> for u64x2
[src]

impl From<m16x8> for i64x8
[src]

impl From<m8x2> for m16x2
[src]

impl From<m1x64> for u8x64
[src]

impl From<u64x8> for i32x8
[src]

impl From<m16x4> for m8x4
[src]

impl From<f64x2> for u8x2
[src]

impl From<m16x16> for u8x16
[src]

impl From<i64x8> for i16x8
[src]

impl From<m16x16> for u32x16
[src]

impl From<m1x8> for f64x8
[src]

impl From<u32x2> for i64x2
[src]

impl From<u8x2> for u16x2
[src]

impl From<i16x4> for u16x4
[src]

impl From<u16x2> for i32x2
[src]

impl From<u32x2> for i16x2
[src]

impl From<i64x2> for i8x2
[src]

impl From<u32x4> for u64x4
[src]

impl From<u8x8> for u16x8
[src]

impl From<m8x2> for u8x2
[src]

impl From<i16x4> for f64x4
[src]

impl From<u16x4> for i32x4
[src]

impl From<i32x4> for i64x4
[src]

impl From<i32x16> for i16x16
[src]

impl From<m1x16> for m8x16
[src]

impl From<m1x32> for u16x32
[src]

impl From<i16x4> for f32x4
[src]

impl From<f32x8> for f64x8
[src]

impl From<u8> for u16
[src]

impl From<f64x8> for u64x8
[src]

impl From<u64x2> for i16x2
[src]

impl From<m32x4> for m8x4
[src]

impl From<m16x4> for u16x4
[src]

impl From<m32x8> for i8x8
[src]

impl From<u8x8> for f32x8
[src]

impl From<i64x4> for u16x4
[src]

impl From<m8x8> for f64x8
[src]

impl From<m32x4> for f32x4
[src]

impl From<u16x4> for f64x4
[src]

impl From<m32x4> for i32x4
[src]

impl From<u8x8> for u32x8
[src]

impl From<i32> for i128
[src]

impl From<m8x8> for m1x8
[src]

impl From<i16x4> for i64x4
[src]

impl From<i64x4> for i32x4
[src]

impl From<m8x4> for u32x4
[src]

impl From<i8x2> for u32x2
[src]

impl From<f32x8> for i64x8
[src]

impl From<i16> for i128
[src]

impl From<u16x2> for i8x2
[src]

impl From<m8x32> for i8x32
[src]

impl From<i32x2> for u16x2
[src]

impl From<m8x4> for u64x4
[src]

impl From<u16> for i128
[src]

impl<T> From<T> for Cell<T>
[src]

impl From<m8x2> for i64x2
[src]

impl From<m8x4> for i16x4
[src]

impl From<m16x8> for u64x8
[src]

impl From<u16x8> for f64x8
[src]

impl From<i8x16> for i16x16
[src]

impl From<m8x4> for i8x4
[src]

impl From<i32x2> for f32x2
[src]

impl<'a> From<&'a str> for Arc<str>
[src]

impl<'a, T> From<&'a [T]> for Cow<'a, [T]> where
    T: Clone
[src]

impl<T> From<Box<T>> for Arc<T> where
    T: ?Sized
[src]

impl<T> From<T> for Arc<T>
[src]

impl<'a> From<String> for Cow<'a, str>
[src]

impl<'a, T> From<Vec<T>> for Cow<'a, [T]> where
    T: Clone
[src]

impl<'a, T> From<&'a [T]> for Rc<[T]> where
    T: Clone
[src]

impl<T> From<Vec<T>> for Arc<[T]>
[src]

impl<T> From<Box<T>> for Rc<T> where
    T: ?Sized
[src]

impl<T> From<Vec<T>> for Rc<[T]>
[src]

impl<'a> From<&'a str> for Cow<'a, str>
[src]

impl<'a, T> From<&'a [T]> for Arc<[T]> where
    T: Clone
[src]

impl From<String> for Arc<str>
[src]

impl<'a> From<&'a str> for Rc<str>
[src]

impl<T> From<T> for Rc<T>
[src]

impl From<String> for Rc<str>
[src]

Implementors