#[repr(C)]pub struct k0 {
pub m: c_schar,
pub a: c_schar,
pub qtype: c_schar,
pub attribute: C,
pub refcount: I,
pub value: k0_inner,
}
Expand description
Underlying struct of K
object.
Fields§
§m: c_schar
For internal usage.
a: c_schar
For internal usage.
qtype: c_schar
Type indicator.
attribute: C
Attribute of list.
refcount: I
Reference count of the object.
value: k0_inner
Underlying value.
Implementations§
Source§impl k0
impl k0
Sourcepub fn as_mut_slice<'a, T>(&mut self) -> &'a mut [T]
pub fn as_mut_slice<'a, T>(&mut self) -> &'a mut [T]
Derefer k0
as a mutable slice. For supported types, see as_mut_slice
.
§Note
Used if K
needs to be sent to another thread. K
cannot implement Send
and therefore
its inner struct must be sent instead.
§Example
See the example of setm
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for k0
impl RefUnwindSafe for k0
impl !Sync for k0
impl Unpin for k0
impl UnwindSafe for k0
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