pub struct RustType { /* private fields */ }
Expand description
A RustType
definition and its associated types to be use
d.
Implementations§
source§impl RustType
impl RustType
sourcepub fn try_new(env: &Env, type_id: TypeId) -> Result
pub fn try_new(env: &Env, type_id: TypeId) -> Result
Try building the RustType
with no specific additional configuration.
sourcepub fn builder(env: &Env, type_id: TypeId) -> RustTypeBuilder<'_>
pub fn builder(env: &Env, type_id: TypeId) -> RustTypeBuilder<'_>
Create a RustTypeBuilder
which allows specifying additional
configuration.
pub fn used_types(&self) -> &Vec<String>
pub fn into_used_types(self) -> Vec<String>
pub fn as_str(&self) -> &str
pub fn alter_type(self, op: impl FnOnce(String) -> String) -> Self
Trait Implementations§
impl Eq for RustType
impl StructuralPartialEq for RustType
Auto Trait Implementations§
impl Freeze for RustType
impl RefUnwindSafe for RustType
impl Send for RustType
impl Sync for RustType
impl Unpin for RustType
impl UnwindSafe for RustType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.