pub struct ConvMethod { /* private fields */ }
Expand description
Represents a single Ruby conversion method, including its name, C string representation, unique identifier, and whether it is an implicit conversion.
This struct is used to encapsulate the attributes of conversion methods to enable efficient lookups and operations in the context of Ruby object conversions.
Implementations§
Source§impl ConvMethod
impl ConvMethod
Sourcepub const fn is_implicit(&self) -> bool
pub const fn is_implicit(&self) -> bool
Returns whether the conversion method is an implicit conversion.
Sourcepub const fn is_coercion(&self) -> bool
pub const fn is_coercion(&self) -> bool
Returns whether the conversion method is a coercion.
Trait Implementations§
Source§impl Clone for ConvMethod
impl Clone for ConvMethod
Source§fn clone(&self) -> ConvMethod
fn clone(&self) -> ConvMethod
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConvMethod
impl Debug for ConvMethod
Source§impl PartialEq for ConvMethod
impl PartialEq for ConvMethod
impl Copy for ConvMethod
impl Eq for ConvMethod
impl StructuralPartialEq for ConvMethod
Auto Trait Implementations§
impl Freeze for ConvMethod
impl RefUnwindSafe for ConvMethod
impl Send for ConvMethod
impl Sync for ConvMethod
impl Unpin for ConvMethod
impl UnwindSafe for ConvMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more