Struct stack_queue::assignment::UnboundedSlice
source · pub struct UnboundedSlice<'a, T: Send + Sync + Sized + 'static, const N: usize> { /* private fields */ }
Expand description
A guard granting exclusive access over an unbounded range of a buffer
Implementations§
source§impl<'a, T, const N: usize> UnboundedSlice<'a, T, N>where
T: Send + Sync + Sized + 'static,
impl<'a, T, const N: usize> UnboundedSlice<'a, T, N>where T: Send + Sync + Sized + 'static,
pub fn into_bounded(self) -> BoundedSlice<'a, T, N>
sourcepub fn with_blocking<F, R>(self, f: F) -> JoinHandle<R>where
F: for<'b> FnOnce(UnboundedSlice<'b, T, N>) -> R + Send + 'static,
R: Send + 'static,
pub fn with_blocking<F, R>(self, f: F) -> JoinHandle<R>where F: for<'b> FnOnce(UnboundedSlice<'b, T, N>) -> R + Send + 'static, R: Send + 'static,
Move UnboundedSlice
into a thread where blocking is acceptable.
Trait Implementations§
source§impl<'a, T, const N: usize> Drop for UnboundedSlice<'a, T, N>where
T: Send + Sync + Sized + 'static,
impl<'a, T, const N: usize> Drop for UnboundedSlice<'a, T, N>where T: Send + Sync + Sized + 'static,
impl<'a, T, const N: usize> Send for UnboundedSlice<'a, T, N>where T: Send + Sync + Sized + 'static,
impl<'a, T, const N: usize> Sync for UnboundedSlice<'a, T, N>where T: Send + Sync + Sized + 'static,
Auto Trait Implementations§
impl<'a, T, const N: usize> !RefUnwindSafe for UnboundedSlice<'a, T, N>
impl<'a, T, const N: usize> Unpin for UnboundedSlice<'a, T, N>
impl<'a, T, const N: usize> !UnwindSafe for UnboundedSlice<'a, T, N>
Blanket Implementations§
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized, T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more