pub trait IntoId: Sized {
// Required method
fn into_id_with(self, handle: &Ruby) -> Id;
// Provided methods
fn into_id(self) -> Id { ... }
unsafe fn into_id_unchecked(self) -> Id { ... }
}
Expand description
Conversions from Rust types into Id
.
Required Methods§
sourcefn into_id_with(self, handle: &Ruby) -> Id
fn into_id_with(self, handle: &Ruby) -> Id
Convert self
into Id
.
Provided Methods§
sourcefn into_id(self) -> Id
fn into_id(self) -> Id
Convert self
into Id
.
§Panics
Panics if called from a non-Ruby thread. See IntoId::into_id_with
for the non-panicking version.
sourceunsafe fn into_id_unchecked(self) -> Id
unsafe fn into_id_unchecked(self) -> Id
Object Safety§
This trait is not object safe.