Struct stabby::closure::StabbyVtableCall1
source · #[repr(C)]pub struct StabbyVtableCall1<O, I0> {
pub call: StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>,
}
Expand description
An stabby-generated item for Call1
Fields§
§call: StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>
An stabby-generated item for Call1
Implementations§
source§impl<O, I0> StabbyVtableCall1<O, I0>
impl<O, I0> StabbyVtableCall1<O, I0>
sourcepub const fn has_optimal_layout() -> bool
pub const fn has_optimal_layout() -> bool
Returns true if the layout for StabbyVtableCall1
is smaller or equal to that Rust would have generated for it.
Trait Implementations§
source§impl<O, I0> Clone for StabbyVtableCall1<O, I0>
impl<O, I0> Clone for StabbyVtableCall1<O, I0>
source§fn clone(&self) -> StabbyVtableCall1<O, I0>
fn clone(&self) -> StabbyVtableCall1<O, I0>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<O, I0> Debug for StabbyVtableCall1<O, I0>
impl<O, I0> Debug for StabbyVtableCall1<O, I0>
source§impl<O, I0> Hash for StabbyVtableCall1<O, I0>
impl<O, I0> Hash for StabbyVtableCall1<O, I0>
source§impl<'stabby_vt_lt, StabbyArbitraryType, O, I0> IConstConstructor<'stabby_vt_lt, StabbyArbitraryType> for StabbyVtableCall1<O, I0>where
StabbyArbitraryType: Call1<O, I0>,
O: 'stabby_vt_lt,
I0: 'stabby_vt_lt,
impl<'stabby_vt_lt, StabbyArbitraryType, O, I0> IConstConstructor<'stabby_vt_lt, StabbyArbitraryType> for StabbyVtableCall1<O, I0>where
StabbyArbitraryType: Call1<O, I0>,
O: 'stabby_vt_lt,
I0: 'stabby_vt_lt,
source§impl<O, I0> IStable for StabbyVtableCall1<O, I0>
impl<O, I0> IStable for StabbyVtableCall1<O, I0>
§type ForbiddenValues = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::ForbiddenValues
type ForbiddenValues = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
§type UnusedBits = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::UnusedBits
type UnusedBits = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::UnusedBits
The padding bits in the annotated types
§type Size = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::Size
type Size = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::Size
The size of the annotated type in bytes.
§type Align = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::Align
type Align = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::Align
The alignment of the annotated type in bytes.
§type HasExactlyOneNiche = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Option
s are stable: Read more§type ContainsIndirections = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::ContainsIndirections
type ContainsIndirections = <Struct<StableLike<extern "C" fn(_: &(), _: I0) -> O, &'static ()>> as IStable>::ContainsIndirections
Whether or not the type contains indirections (pointers, indices in independent data-structures…)
source§const REPORT: &'static TypeReport = _
const REPORT: &'static TypeReport = _
A compile-time generated report of the fields of the type, allowing for compatibility inspection.
source§const ID: u64 = _
const ID: u64 = _
A stable (and ideally unique) identifier for the type. Often generated using
crate::report::gen_id
, but can be manually set.source§impl<O, I0> PartialEq for StabbyVtableCall1<O, I0>
impl<O, I0> PartialEq for StabbyVtableCall1<O, I0>
source§fn eq(&self, other: &StabbyVtableCall1<O, I0>) -> bool
fn eq(&self, other: &StabbyVtableCall1<O, I0>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<O, I0> Copy for StabbyVtableCall1<O, I0>
Auto Trait Implementations§
impl<O, I0> Freeze for StabbyVtableCall1<O, I0>
impl<O, I0> RefUnwindSafe for StabbyVtableCall1<O, I0>
impl<O, I0> Send for StabbyVtableCall1<O, I0>
impl<O, I0> Sync for StabbyVtableCall1<O, I0>
impl<O, I0> Unpin for StabbyVtableCall1<O, I0>
impl<O, I0> UnwindSafe for StabbyVtableCall1<O, I0>
Blanket Implementations§
source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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