Struct breadthread::Object
source · #[repr(transparent)]pub struct Object<Ty, Tag> { /* private fields */ }
👎Deprecated: It is probably a bad idea to use this crate
Expand description
A thread-unsafe object that only has true meaning in the context of a
BreadThread
runtime.
Implementations§
source§impl<Ty, Tag> Object<Ty, Tag>
impl<Ty, Tag> Object<Ty, Tag>
sourcepub unsafe fn new_unchecked(object: Ty) -> Self
👎Deprecated: It is probably a bad idea to use this crate
pub unsafe fn new_unchecked(object: Ty) -> Self
Create a new Object
without checking to see if
we are on the correct thread.
Safety
This is unsafe because it assumes that the caller is on the correct thread.
sourcepub unsafe fn into_inner_unchecked(self) -> Ty
👎Deprecated: It is probably a bad idea to use this crate
pub unsafe fn into_inner_unchecked(self) -> Ty
Convert to the inner Object
type.
Safety
This is unsafe because it assumes that the caller is on the correct thread.
sourcepub unsafe fn get_unchecked(&self) -> &Ty
👎Deprecated: It is probably a bad idea to use this crate
pub unsafe fn get_unchecked(&self) -> &Ty
Get a reference to the inner object.
Safety
This is unsafe because it assumes that the caller is on the correct thread.
Trait Implementations§
source§impl<T: Compatible, Tag> Wrapped<Tag> for Object<T, Tag>
impl<T: Compatible, Tag> Wrapped<Tag> for Object<T, Tag>
source§unsafe fn unwrap(self) -> Self::Unwrapped
unsafe fn unwrap(self) -> Self::Unwrapped
👎Deprecated: It is probably a bad idea to use this crate
Unwrap this object into the inner objects. Read more