Home
last modified time | relevance | path

Searched defs:try_from (Results 1 – 18 of 18) sorted by relevance

/external/rust/crates/gdbstub/src/protocol/common/
Dthread_id.rs29 fn try_from(s: &[u8]) -> Result<Self, ()> { in try_from() method
58 fn try_from(s: &[u8]) -> Result<Self, ()> { in try_from() method
70 fn try_from(s: &mut [u8]) -> Result<Self, ()> { in try_from() method
78 fn try_from(s: &mut [u8]) -> Result<Self, ()> { in try_from() method
/external/crosvm/devices/src/virtio/video/decoder/backend/
Dvda.rs19 fn try_from(format: Format) -> Result<Self, Self::Error> { in try_from() method
35 fn try_from(format: Format) -> Result<Self, Self::Error> { in try_from() method
/external/adhd/cros_alsa/cros_alsa_derive/src/
Dcommon.rs37 fn try_from(meta_item: NestedMeta) -> Result<CrosAlsaAttr> { in try_from() method
/external/rust/crates/nix/src/sys/
Dtermios.rs339 fn try_from(s: libc::speed_t) -> Result<BaudRate> { in try_from() method
1086 fn try_from() { in try_from() function
Dsignal.rs367 fn try_from(signum: libc::c_int) -> Result<Signal> { in try_from() method
/external/rust/crates/tokio/src/net/unix/
Dlistener.rs164 fn try_from(stream: std::os::unix::net::UnixListener) -> io::Result<Self> { in try_from() method
Dstream.rs640 fn try_from(stream: net::UnixStream) -> io::Result<Self> { in try_from() method
/external/adhd/cras/client/cras-sys/src/
Dlib.rs399 fn try_from(stream_type: u32) -> Result<Self, Self::Error> { in try_from() method
415 fn try_from(client_type: u32) -> Result<Self, Self::Error> { in try_from() method
474 fn try_from(channel: i8) -> Result<Self, Self::Error> { in try_from() method
520 fn try_from(info: audio_stream_debug_info) -> Result<Self, Self::Error> { in try_from() method
/external/rust/crates/tokio/src/net/tcp/
Dlistener.rs357 fn try_from(stream: net::TcpListener) -> Result<Self, Self::Error> { in try_from() method
Dstream.rs1048 fn try_from(stream: std::net::TcpStream) -> Result<Self, Self::Error> { in try_from() method
/external/adhd/cros_alsa/src/
Dcontrol_tlv.rs169 fn try_from(data: Vec<u32>) -> Result<Self> { in try_from() method
Dcontrol_primitive.rs151 fn try_from(elem_type: u32) -> Result<ElemType> { in try_from() method
/external/rust/crates/tokio/src/net/unix/datagram/
Dsocket.rs1259 fn try_from(stream: std::os::unix::net::UnixDatagram) -> Result<Self, Self::Error> { in try_from() method
/external/crosvm/sys_util/src/
Ddescriptor.rs122 fn try_from(fd: &dyn AsRawFd) -> std::result::Result<Self, Self::Error> { in try_from() method
Dsignal.rs187 fn try_from(value: c_int) -> result::Result<Self, Self::Error> { in try_from() method
/external/rust/crates/tokio/src/net/
Dudp.rs1404 fn try_from(stream: std::net::UdpSocket) -> Result<Self, Self::Error> { in try_from() method
/external/crosvm/hypervisor/src/kvm/
Dmod.rs1063 fn try_from(cap: &'a HypervisorCap) -> Result<KvmCap> { in try_from() method
/external/rust/crates/url/src/
Dlib.rs2501 fn try_from(s: &'a str) -> Result<Self, Self::Error> { in try_from() method