Trait tcl::object::TclObject [-] [+] [src]

pub trait TclObject {
    type FromObject;

    fn into_object(self, &TclEnvironment) -> Object;
    fn from_object<'a>(obj: &Object, &'a mut Interpreter) -> Result<Self::FromObject, Cow<'a, str>>;
    fn set_object(self, &mut Object);
}

Associated Types

type FromObject

Required Methods

fn into_object(self, &TclEnvironment) -> Object

Converts self into a Tcl object.

fn from_object<'a>(obj: &Object, &'a mut Interpreter) -> Result<Self::FromObject, Cow<'a, str>>

Reads the contents of this Tcl object

fn set_object(self, &mut Object)

Updates the value of a Tcl object.

Implementors