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
impl<Ty: Copy, Tag> Copy for Object<Ty, Tag>
impl<Ty, Tag> Send for Object<Ty, Tag>
impl<Ty, Tag> Sync for Object<Ty, Tag>
Auto Trait Implementations§
impl<Ty, Tag> Freeze for Object<Ty, Tag>where
Ty: Freeze,
impl<Ty, Tag> RefUnwindSafe for Object<Ty, Tag>where
Tag: RefUnwindSafe,
Ty: RefUnwindSafe,
impl<Ty, Tag> Unpin for Object<Ty, Tag>
impl<Ty, Tag> UnwindSafe for Object<Ty, Tag>where
Tag: UnwindSafe,
Ty: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more