pub trait CompatFrom<T> {
    // Required method
    fn compat_from(value: T) -> Self;
}Expand description
Conversions between old and new Rust bindings types.
Required Methods§
Sourcefn compat_from(value: T) -> Self
 
fn compat_from(value: T) -> Self
Converts value into a value of this type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl CompatFrom<bool> for bool
 
impl CompatFrom<bool> for bool
fn compat_from(value: bool) -> Self
Source§impl CompatFrom<f32> for f32
 
impl CompatFrom<f32> for f32
fn compat_from(value: f32) -> Self
Source§impl CompatFrom<f64> for f64
 
impl CompatFrom<f64> for f64
fn compat_from(value: f64) -> Self
Source§impl CompatFrom<i8> for i8
 
impl CompatFrom<i8> for i8
fn compat_from(value: i8) -> Self
Source§impl CompatFrom<i16> for i16
 
impl CompatFrom<i16> for i16
fn compat_from(value: i16) -> Self
Source§impl CompatFrom<i32> for i32
 
impl CompatFrom<i32> for i32
fn compat_from(value: i32) -> Self
Source§impl CompatFrom<i64> for i64
 
impl CompatFrom<i64> for i64
fn compat_from(value: i64) -> Self
Source§impl CompatFrom<u8> for u8
 
impl CompatFrom<u8> for u8
fn compat_from(value: u8) -> Self
Source§impl CompatFrom<u16> for u16
 
impl CompatFrom<u16> for u16
fn compat_from(value: u16) -> Self
Source§impl CompatFrom<u32> for u32
 
impl CompatFrom<u32> for u32
fn compat_from(value: u32) -> Self
Source§impl CompatFrom<u64> for u64
 
impl CompatFrom<u64> for u64
fn compat_from(value: u64) -> Self
Source§impl CompatFrom<()> for ()
 
impl CompatFrom<()> for ()
fn compat_from(value: ()) -> Self
Source§impl CompatFrom<String> for String
 
impl CompatFrom<String> for String
fn compat_from(value: String) -> Self
Source§impl CompatFrom<Bti> for Bti
Available on crate feature fuchsia only. 
impl CompatFrom<Bti> for Bti
Available on crate feature 
fuchsia only.fn compat_from(value: Bti) -> Self
Source§impl CompatFrom<Channel> for Channel
Available on crate feature fuchsia only. 
impl CompatFrom<Channel> for Channel
Available on crate feature 
fuchsia only.fn compat_from(value: Channel) -> Self
Source§impl CompatFrom<Clock> for Clock
Available on crate feature fuchsia only. 
impl CompatFrom<Clock> for Clock
Available on crate feature 
fuchsia only.fn compat_from(value: Clock) -> Self
Source§impl CompatFrom<Event> for Event
Available on crate feature fuchsia only. 
impl CompatFrom<Event> for Event
Available on crate feature 
fuchsia only.fn compat_from(value: Event) -> Self
Source§impl CompatFrom<EventPair> for EventPair
Available on crate feature fuchsia only. 
impl CompatFrom<EventPair> for EventPair
Available on crate feature 
fuchsia only.fn compat_from(value: EventPair) -> Self
Source§impl CompatFrom<Exception> for Exception
Available on crate feature fuchsia only. 
impl CompatFrom<Exception> for Exception
Available on crate feature 
fuchsia only.fn compat_from(value: Exception) -> Self
Source§impl CompatFrom<Fifo> for Fifo
Available on crate feature fuchsia only. 
impl CompatFrom<Fifo> for Fifo
Available on crate feature 
fuchsia only.fn compat_from(value: Fifo) -> Self
Source§impl CompatFrom<Guest> for Guest
Available on crate feature fuchsia only. 
impl CompatFrom<Guest> for Guest
Available on crate feature 
fuchsia only.fn compat_from(value: Guest) -> Self
Source§impl CompatFrom<Handle> for Handle
Available on crate feature fuchsia only. 
impl CompatFrom<Handle> for Handle
Available on crate feature 
fuchsia only.fn compat_from(value: Handle) -> Self
Source§impl CompatFrom<Interrupt> for Interrupt
Available on crate feature fuchsia only. 
impl CompatFrom<Interrupt> for Interrupt
Available on crate feature 
fuchsia only.fn compat_from(value: Interrupt) -> Self
Source§impl CompatFrom<Iob> for Iob
Available on crate feature fuchsia only. 
impl CompatFrom<Iob> for Iob
Available on crate feature 
fuchsia only.fn compat_from(value: Iob) -> Self
Source§impl CompatFrom<Iommu> for Iommu
Available on crate feature fuchsia only. 
impl CompatFrom<Iommu> for Iommu
Available on crate feature 
fuchsia only.fn compat_from(value: Iommu) -> Self
Source§impl CompatFrom<Job> for Job
Available on crate feature fuchsia only. 
impl CompatFrom<Job> for Job
Available on crate feature 
fuchsia only.fn compat_from(value: Job) -> Self
Source§impl CompatFrom<Pager> for Pager
Available on crate feature fuchsia only. 
impl CompatFrom<Pager> for Pager
Available on crate feature 
fuchsia only.fn compat_from(value: Pager) -> Self
Source§impl CompatFrom<Pmt> for Pmt
Available on crate feature fuchsia only. 
impl CompatFrom<Pmt> for Pmt
Available on crate feature 
fuchsia only.fn compat_from(value: Pmt) -> Self
Source§impl CompatFrom<Port> for Port
Available on crate feature fuchsia only. 
impl CompatFrom<Port> for Port
Available on crate feature 
fuchsia only.fn compat_from(value: Port) -> Self
Source§impl CompatFrom<Process> for Process
Available on crate feature fuchsia only. 
impl CompatFrom<Process> for Process
Available on crate feature 
fuchsia only.fn compat_from(value: Process) -> Self
Source§impl CompatFrom<Profile> for Profile
Available on crate feature fuchsia only. 
impl CompatFrom<Profile> for Profile
Available on crate feature 
fuchsia only.fn compat_from(value: Profile) -> Self
Source§impl CompatFrom<Resource> for Resource
Available on crate feature fuchsia only. 
impl CompatFrom<Resource> for Resource
Available on crate feature 
fuchsia only.fn compat_from(value: Resource) -> Self
Source§impl CompatFrom<Socket> for Socket
Available on crate feature fuchsia only. 
impl CompatFrom<Socket> for Socket
Available on crate feature 
fuchsia only.fn compat_from(value: Socket) -> Self
Source§impl CompatFrom<Stream> for Stream
Available on crate feature fuchsia only. 
impl CompatFrom<Stream> for Stream
Available on crate feature 
fuchsia only.fn compat_from(value: Stream) -> Self
Source§impl CompatFrom<Thread> for Thread
Available on crate feature fuchsia only. 
impl CompatFrom<Thread> for Thread
Available on crate feature 
fuchsia only.fn compat_from(value: Thread) -> Self
Source§impl CompatFrom<Timer> for Timer
Available on crate feature fuchsia only. 
impl CompatFrom<Timer> for Timer
Available on crate feature 
fuchsia only.fn compat_from(value: Timer) -> Self
Source§impl CompatFrom<Vcpu> for Vcpu
Available on crate feature fuchsia only. 
impl CompatFrom<Vcpu> for Vcpu
Available on crate feature 
fuchsia only.fn compat_from(value: Vcpu) -> Self
Source§impl CompatFrom<Vmar> for Vmar
Available on crate feature fuchsia only. 
impl CompatFrom<Vmar> for Vmar
Available on crate feature 
fuchsia only.fn compat_from(value: Vmar) -> Self
Source§impl CompatFrom<Vmo> for Vmo
Available on crate feature fuchsia only. 
impl CompatFrom<Vmo> for Vmo
Available on crate feature 
fuchsia only.