Struct phoenix_lang::chunk::ClassChunk
source · pub struct ClassChunk {
pub name: String,
pub methods: HashMap<usize, usize>,
pub superclass: Option<usize>,
pub has_init: bool,
}Expand description
Compile time repr of a class
Fields§
§name: String§methods: HashMap<usize, usize>§superclass: Option<usize>§has_init: boolImplementations§
source§impl ClassChunk
impl ClassChunk
pub fn new(name: String) -> ClassChunk
Trait Implementations§
source§impl Clone for ClassChunk
impl Clone for ClassChunk
source§fn clone(&self) -> ClassChunk
fn clone(&self) -> ClassChunk
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 ClassChunk
impl Debug for ClassChunk
source§impl<'de> Deserialize<'de> for ClassChunk
impl<'de> Deserialize<'de> for ClassChunk
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ClassChunk
impl PartialEq for ClassChunk
source§fn eq(&self, other: &ClassChunk) -> bool
fn eq(&self, other: &ClassChunk) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ClassChunk
impl Serialize for ClassChunk
impl StructuralPartialEq for ClassChunk
Auto Trait Implementations§
impl Freeze for ClassChunk
impl RefUnwindSafe for ClassChunk
impl Send for ClassChunk
impl Sync for ClassChunk
impl Unpin for ClassChunk
impl UnwindSafe for ClassChunk
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