Skip to content

Commit 407bd8b

Browse files
committed
Add is_null for ErasedPtr for FnPtr
1 parent acbc43b commit 407bd8b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libcc2rs/src/fn_ptr.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ impl<T: 'static> ErasedPtr for FnPtr<T> {
159159
}
160160
other.as_any().downcast_ref::<FnPtr<T>>().map(|o| self == o)
161161
}
162+
fn is_null(&self) -> bool {
163+
FnPtr::is_null(self)
164+
}
162165
}
163166

164167
impl<T: 'static> FnPtr<T> {

0 commit comments

Comments
 (0)