Lines Matching defs:Region
30 pub struct Region {
38 impl Deref for Region {
42 // SAFETY: Safe as per the invariant of `Region`.
47 impl Drop for Region {
60 // SAFETY: Safe as per the invariant of `Region`.
65 // SAFETY: `Region` only holds a pointer to a C `struct resource`, which is safe to be used from
67 unsafe impl Send for Region {}
69 // SAFETY: `Region` only holds a pointer to a C `struct resource`, references to which are
71 unsafe impl Sync for Region {}
107 ) -> Option<Region> {
111 // safe as we own it and it will not be dropped until the `Region` is
123 Some(Region {