pub fn what_type(self) -> RlispType {
        if self.floatp() {
            RlispType::Float
        } else if self.integerp() {
            RlispType::Integer
        } else if self.consp() {
            RlispType::Cons
        } else if self.symbolp() {
            RlispType::Sym
        } else if self.stringp() {
            RlispType::String
        } else if self.functionp() {
            RlispType::Function
        } else if self.boolp() {
            RlispType::Bool
        } else if self.errorp() {
            RlispType::Error
        } else if self.namespacep() {
            RlispType::Namespace
        } else if self.placep() {
            RlispType::Place
        } else {
            unreachable!()
        }
    }
/// returns the RlispType denoting self's type. Currently pretty
/// inefficent; O(n) where n is the number of Object
/// variants. Also not optimized to search more used types
/// earlier.
returns the RlispType denoting self's type. Currently pretty
inefficent; O(n) where n is the number of Object
variants. Also not optimized to search more used types
earlier.
returns the RlispType denoting self ' s type . Currently pretty inefficent ; O ( n ) where n is the number of Object variants . Also not optimized to search more used types earlier .
pub fn what_type(self) -> RlispType {
        if self.floatp() {
            RlispType::Float
        } else if self.integerp() {
            RlispType::Integer
        } else if self.consp() {
            RlispType::Cons
        } else if self.symbolp() {
            RlispType::Sym
        } else if self.stringp() {
            RlispType::String
        } else if self.functionp() {
            RlispType::Function
        } else if self.boolp() {
            RlispType::Bool
        } else if self.errorp() {
            RlispType::Error
        } else if self.namespacep() {
            RlispType::Namespace
        } else if self.placep() {
            RlispType::Place
        } else {
            unreachable!()
        }
    }
pub fn what_type ( self ) -> RlispType { if self . floatp ( ) { RlispType :: Float } else if self . integerp ( ) { RlispType :: Integer } else if self . consp ( ) { RlispType :: Cons } else if self . symbolp ( ) { RlispType :: Sym } else if self . stringp ( ) { RlispType :: String } else if self . functionp ( ) { RlispType :: Function } else if self . boolp ( ) { RlispType :: Bool } else if self . errorp ( ) { RlispType :: Error } else if self . namespacep ( ) { RlispType :: Namespace } else if self . placep ( ) { RlispType :: Place } else { unreachable ! ( ) } }
returns the RlispType denoting self's type.
returns the RlispType denoting self ' s type .
self
self