1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use std::fmt;

use crate::object::{Object, RTObject};

pub struct Void {
    obj: Object,
}

impl Void {
    pub fn new() -> Self {
        Void { obj: Object::new() }
    }
}

impl RTObject for Void {
    fn get_object(&self) -> &Object {
        &self.obj
    }
}

impl fmt::Display for Void {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "Void")
    }
}