Enum mun_syntax::ast::StructMemoryKind [−][src]
Represents the kind of memory management a struct uses.
Variants
A garbage collected struct is allocated on the heap and uses reference semantics when passed around.
A value struct is allocated on the stack and uses value semantics when passed around.
NOTE: When a value struct is used in an external API, a wrapper is created that pins the value on the heap. The heap-allocated value needs to be manually deallocated!
Trait Implementations
impl Clone for StructMemoryKind
[src]
pub fn clone(&self) -> StructMemoryKind
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StructMemoryKind
[src]
impl Default for StructMemoryKind
[src]
pub fn default() -> StructMemoryKind
[src]
impl Eq for StructMemoryKind
[src]
impl PartialEq<StructMemoryKind> for StructMemoryKind
[src]
pub fn eq(&self, other: &StructMemoryKind) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for StructMemoryKind
[src]
impl StructuralPartialEq for StructMemoryKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for StructMemoryKind
impl Send for StructMemoryKind
impl Sync for StructMemoryKind
impl Unpin for StructMemoryKind
impl UnwindSafe for StructMemoryKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,