pub fn should_dealloc(self, marking: ::gc::GcMark) -> bool {
        unsafe {
            match self.what_type() {
                RlispType::Number | RlispType::Float | RlispType::Integer | RlispType::Bool => {
                    false
                }
                RlispType::Cons => <&mut ConsCell>::from_unchecked(self).should_dealloc(marking),
                RlispType::Sym => <&mut Symbol>::from_unchecked(self).should_dealloc(marking),
                RlispType::String => {
                    <&mut RlispString>::from_unchecked(self).should_dealloc(marking)
                }
                RlispType::Function => {
                    <&mut RlispFunc>::from_unchecked(self).should_dealloc(marking)
                }
                RlispType::Error => <&mut RlispError>::from_unchecked(self).should_dealloc(marking),
                RlispType::Namespace => {
                    <&mut Namespace>::from_unchecked(self).should_dealloc(marking)
                }
                RlispType::Place => (*(Place::from_unchecked(self))).should_dealloc(marking),
            }
        }
    }
/// Object could probably implement gc::GarbageCollected, but as
/// of now it doesn't. Because of that, it instead has this method
/// and gc_mark which mimic GarbageCollected::{gc_mark,
/// should_dealloc} and are called by various types'
/// gc_mark_children methods.
Object could probably implement gc::GarbageCollected, but as
of now it doesn't. Because of that, it instead has this method
and gc_mark which mimic GarbageCollected::{gc_mark,
should_dealloc} and are called by various types'
gc_mark_children methods.
Object could probably implement gc :: GarbageCollected but as of now it doesn ' t . Because of that it instead has this method and gc_mark which mimic GarbageCollected :: { gc_mark should_dealloc } and are called by various types ' gc_mark_children methods .
pub fn should_dealloc(self, marking: ::gc::GcMark) -> bool {
        unsafe {
            match self.what_type() {
                RlispType::Number | RlispType::Float | RlispType::Integer | RlispType::Bool => {
                    false
                }
                RlispType::Cons => <&mut ConsCell>::from_unchecked(self).should_dealloc(marking),
                RlispType::Sym => <&mut Symbol>::from_unchecked(self).should_dealloc(marking),
                RlispType::String => {
                    <&mut RlispString>::from_unchecked(self).should_dealloc(marking)
                }
                RlispType::Function => {
                    <&mut RlispFunc>::from_unchecked(self).should_dealloc(marking)
                }
                RlispType::Error => <&mut RlispError>::from_unchecked(self).should_dealloc(marking),
                RlispType::Namespace => {
                    <&mut Namespace>::from_unchecked(self).should_dealloc(marking)
                }
                RlispType::Place => (*(Place::from_unchecked(self))).should_dealloc(marking),
            }
        }
    }
pub fn should_dealloc ( self , marking : :: gc :: GcMark ) -> bool { unsafe { match self . what_type ( ) { RlispType :: Number | RlispType :: Float | RlispType :: Integer | RlispType :: Bool => { false } RlispType :: Cons => < & mut ConsCell > :: from_unchecked ( self ) . should_dealloc ( marking ) , RlispType :: Sym => < & mut Symbol > :: from_unchecked ( self ) . should_dealloc ( marking ) , RlispType :: String => { < & mut RlispString > :: from_unchecked ( self ) . should_dealloc ( marking ) } RlispType :: Function => { < & mut RlispFunc > :: from_unchecked ( self ) . should_dealloc ( marking ) } RlispType :: Error => < & mut RlispError > :: from_unchecked ( self ) . should_dealloc ( marking ) , RlispType :: Namespace => { < & mut Namespace > :: from_unchecked ( self ) . should_dealloc ( marking ) } RlispType :: Place => ( * ( Place :: from_unchecked ( self ) ) ) . should_dealloc ( marking ) , } } }
Object could probably implement gc::GarbageCollected, but as
of now it doesn't.
Object could probably implement gc :: GarbageCollected but as of now it doesn ' t .
self
marking
::gc::GcMark
self
marking
::gc::GcMark