Impl Wrap for EntryHeader
This commit is contained in:
parent
f362cbdd6d
commit
46eb02c120
1 changed files with 8 additions and 2 deletions
|
@ -211,13 +211,19 @@ pub mod store {
|
|||
|
||||
wrappable_struct!(EntryHeader, EntryHeaderWrapper, ENTRY_HEADER_WRAPPER);
|
||||
class!(REntryHeader);
|
||||
|
||||
impl Wrap for EntryHeader {
|
||||
fn wrap(self) -> AnyObject {
|
||||
Class::from_existing("REntryHeader").wrap_data(self, &*ENTRY_HEADER_WRAPPER)
|
||||
}
|
||||
}
|
||||
|
||||
methods!(
|
||||
REntryHeader,
|
||||
itself,
|
||||
|
||||
fn r_entry_header_new() -> AnyObject {
|
||||
Class::from_existing("REntryHeader")
|
||||
.wrap_data(EntryHeader::new(), &*ENTRY_HEADER_WRAPPER)
|
||||
EntryHeader::new().wrap()
|
||||
}
|
||||
|
||||
fn r_entry_header_insert(spec: RString, obj: AnyObject) -> Boolean {
|
||||
|
|
Loading…
Reference in a new issue