Lines Matching full:safe
14 //! * Type-safe casting between parent and child classes, through the [`IsA`]
114 /// A safe wrapper around [`bindings::Object`].
132 // SAFETY: it is always safe to cast to your own type
135 /// Macro to mark superclasses of QOM classes. This enables type-safe
332 /// Structurally this is always a safe operation; the [`IsA`] trait
353 /// Structurally this is always a safe operation; the [`IsA`] trait
465 /// Return the receiver as an Object. This is always safe, even
482 /// This cast is always safe, but because the result is mutable
536 /// This trait provides safe casting operations for QOM objects to raw pointers,
560 /// This method is safe because only the actual dereference of the pointer
582 /// This is always safe; the [`IsA`] trait provides static verification
631 /// `unsafe_cast::<Object>()` is always safe.
781 // SAFETY: It is safe to send `Owned<T>` to another thread when the underlying
782 // `T` is `Sync` because it effectively means sharing `&T` (which is safe
788 // SAFETY: It is safe to send `&Owned<T>` to another thread when the underlying
789 // `T` is `Sync` because it effectively means sharing `&T` (which is safe