pub enum ObjectImpl {
Struct,
Trait,
}
Variants§
Implementations§
Source§impl ObjectImpl
impl ObjectImpl
Sourcepub fn rust_name_for(&self, name: &str) -> String
pub fn rust_name_for(&self, name: &str) -> String
Return the fully qualified name which should be used by Rust code for
an object with the given name.
Includes r#
, traits get a leading dyn
. If we ever supported associated types, then
this would also include them.
pub fn from_is_trait(is_trait: bool) -> Self
Trait Implementations§
Source§impl Clone for ObjectImpl
impl Clone for ObjectImpl
Source§fn clone(&self) -> ObjectImpl
fn clone(&self) -> ObjectImpl
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 ObjectImpl
impl Debug for ObjectImpl
Source§impl Ord for ObjectImpl
impl Ord for ObjectImpl
Source§fn cmp(&self, other: &ObjectImpl) -> Ordering
fn cmp(&self, other: &ObjectImpl) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ObjectImpl
impl PartialEq for ObjectImpl
Source§impl PartialOrd for ObjectImpl
impl PartialOrd for ObjectImpl
impl Copy for ObjectImpl
impl Eq for ObjectImpl
impl StructuralPartialEq for ObjectImpl
Auto Trait Implementations§
impl Freeze for ObjectImpl
impl RefUnwindSafe for ObjectImpl
impl Send for ObjectImpl
impl Sync for ObjectImpl
impl Unpin for ObjectImpl
impl UnwindSafe for ObjectImpl
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