pub fn take_ownership(self) -> u32{
        env::log(b"Taking ownership of itself");

        let result = format!("an_integer is {}", self.an_integer);
        env::log(result.as_bytes());

        self.an_integer

        // self will be dropped/free from memory here
    }
// if 'self' is an argument, the function will take ownership of the instance
// this meand the struct will be dropped at the end of the function (unless we return it)
// this is just an example, you probably won't ever need to do this
if 'self' is an argument, the function will take ownership of the instance
this meand the struct will be dropped at the end of the function (unless we return it)
this is just an example, you probably won't ever need to do this
if ' self ' is an argument the function will take ownership of the instance this meand the struct will be dropped at the end of the function ( unless we return it ) this is just an example you probably won ' t ever need to do this
pub fn take_ownership(self) -> u32{
        env::log(b"Taking ownership of itself");
        let result = format!("an_integer is {}", self.an_integer);
        env::log(result.as_bytes());
        self.an_integer
        // self will be dropped/free from memory here
    }
pub fn take_ownership ( self ) -> u32 { env :: log ( b" " ) ; let result = format ! ( " " self an_integer ) ; env :: log ( result . as_bytes ( ) ) ; self . an_integer // self will be dropped/free from memory here }
if 'self' is an argument, the function will take ownership of the instance
this meand the struct will be dropped at the end of the function (unless we return it)
this is just an example, you probably won't ever need to do this
if ' self ' is an argument the function will take ownership of the instance this meand the struct will be dropped at the end of the function ( unless we return it ) this is just an example you probably won ' t ever need to do this
self