pub struct Sp<A, B = (), C = (), D = (), E = (), F = (), G = (), H = ()> { /* private fields */ }
Expand description
Sp stands for Structurally Pinned
Up to 8 generics can be supplied for 8 structurally pinned fields.
Implementations§
Source§impl<A> Sp<A>
impl<A> Sp<A>
Sourcepub fn from_a(a: A) -> Self
pub fn from_a(a: A) -> Self
Create a new Sp
with a single field
Examples found in repository?
More examples
Sourcepub fn with_b<B>(self, b: B) -> Sp<A, B>
pub fn with_b<B>(self, b: B) -> Sp<A, B>
Add field B
to an Sp
Examples found in repository?
More examples
Source§impl<A, B> Sp<A, B>
impl<A, B> Sp<A, B>
Sourcepub fn with_c<C>(self, c: C) -> Sp<A, B, C>
pub fn with_c<C>(self, c: C) -> Sp<A, B, C>
Add field C
to an Sp
Examples found in repository?
More examples
Source§impl<A, B, C> Sp<A, B, C>
impl<A, B, C> Sp<A, B, C>
Source§impl<A, B, C, D, E, F, G, H> Sp<A, B, C, D, E, F, G, H>
impl<A, B, C, D, E, F, G, H> Sp<A, B, C, D, E, F, G, H>
Sourcepub fn a(self: Pin<&mut Self>) -> Pin<&mut A>
pub fn a(self: Pin<&mut Self>) -> Pin<&mut A>
Get a Pin<&mut A>
Examples found in repository?
More examples
Sourcepub fn b(self: Pin<&mut Self>) -> Pin<&mut B>
pub fn b(self: Pin<&mut Self>) -> Pin<&mut B>
Get a Pin<&mut B>
Examples found in repository?
More examples
Auto Trait Implementations§
impl<A, B, C, D, E, F, G, H> Freeze for Sp<A, B, C, D, E, F, G, H>
impl<A, B, C, D, E, F, G, H> RefUnwindSafe for Sp<A, B, C, D, E, F, G, H>where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
G: RefUnwindSafe,
H: RefUnwindSafe,
impl<A, B, C, D, E, F, G, H> Send for Sp<A, B, C, D, E, F, G, H>
impl<A, B, C, D, E, F, G, H> Sync for Sp<A, B, C, D, E, F, G, H>
impl<A, B, C, D, E, F, G, H> Unpin for Sp<A, B, C, D, E, F, G, H>
impl<A, B, C, D, E, F, G, H> UnwindSafe for Sp<A, B, C, D, E, F, G, H>where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
G: UnwindSafe,
H: 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