Created
September 20, 2017 15:01
-
-
Save federicomenaquintero/88dc209ba4a96f4a50bd29bbf64cc173 to your computer and use it in GitHub Desktop.
Call to gobject_gen!()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gobject_gen! { | |
class Dummy { | |
struct DummyPrivate { | |
dc: RefCell<DropCounter> | |
} | |
private_init() -> DummyPrivate { | |
DummyPrivate { | |
dc: RefCell::new(DropCounter::new()) | |
} | |
} | |
fn set_dc(&self, dc: DropCounter) { | |
let mut self_dc = self.get_priv().dc.borrow_mut(); | |
*self_dc = dc; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment