Struct wrapped_mono::MString
source · pub struct MString { /* private fields */ }
Expand description
Representaiton of Object
of type System.String.
Implementations§
Trait Implementations§
source§impl InteropClass for MString
impl InteropClass for MString
fn get_mono_class() -> Class
source§impl ObjectTrait for MString
impl ObjectTrait for MString
source§unsafe fn from_ptr_unchecked(ptr: *mut MonoObject) -> Self
unsafe fn from_ptr_unchecked(ptr: *mut MonoObject) -> Self
fn cast<Target: ObjectTrait>(&self) -> Option<Target>
source§fn hash(&self) -> i32
fn hash(&self) -> i32
get hash of this object: This hash is not based on values of objects fields, and differs from result of calling object.GetHash() Read more
source§impl<O: ObjectTrait> PartialEq<O> for MString
impl<O: ObjectTrait> PartialEq<O> for MString
Auto Trait Implementations§
impl RefUnwindSafe for MString
impl Send for MString
impl Sync for MString
impl Unpin for MString
impl UnwindSafe for MString
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> InteropRecive for Twhere
T: ObjectTrait,
impl<T> InteropRecive for Twhere T: ObjectTrait,
§type SourceType = *mut _MonoObject
type SourceType = *mut _MonoObject
Souce type used by
MonoRuntime
when calling functions exposed by add_internal_call
, or getting a value back from a method, that can be converted to a rust type.source§fn get_rust_rep(src: <T as InteropRecive>::SourceType) -> T
fn get_rust_rep(src: <T as InteropRecive>::SourceType) -> T
Function converting
Self::SourceType
to type implementing InteropRecive
trait.source§impl<T> InteropSend for Twhere
T: ObjectTrait,
impl<T> InteropSend for Twhere T: ObjectTrait,
§type TargetType = *mut _MonoObject
type TargetType = *mut _MonoObject
Type used by
MonoRuntime
, that type implementing InteropSend
trait should be converted to when returning it to MonoRuntime
.source§fn get_mono_rep(src: T) -> <T as InteropSend>::TargetType
fn get_mono_rep(src: T) -> <T as InteropSend>::TargetType
Function converting type implementing
InteropRecive
trait to type that should be returned to MonoRuntime
.