Struct stack_queue::assignment::UnboundedRange  
source · pub struct UnboundedRange<'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> UnboundedRange<'a, T, N>where
    T: Send + Sync + Sized + 'static,
 
impl<'a, T, const N: usize> UnboundedRange<'a, T, N>where T: Send + Sync + Sized + 'static,
sourcepub fn into_bounded(self) -> BoundedRange<'a, T, N>
 
pub fn into_bounded(self) -> BoundedRange<'a, T, N>
Establish exclusive access over a StackQueue buffer range
sourcepub fn with_blocking<F, R>(self, f: F) -> JoinHandle<R>where
    F: for<'b> FnOnce(UnboundedRange<'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(UnboundedRange<'b, T, N>) -> R + Send + 'static, R: Send + 'static,
Move UnboundedRange into a thread where blocking is acceptable.
Trait Implementations§
source§impl<'a, T, const N: usize> Drop for UnboundedRange<'a, T, N>where
    T: Send + Sync + Sized + 'static,
 
impl<'a, T, const N: usize> Drop for UnboundedRange<'a, T, N>where T: Send + Sync + Sized + 'static,
impl<'a, T, const N: usize> Send for UnboundedRange<'a, T, N>where T: Send + Sync + Sized + 'static,
impl<'a, T, const N: usize> Sync for UnboundedRange<'a, T, N>where T: Send + Sync + Sized + 'static,
Auto Trait Implementations§
impl<'a, T, const N: usize> !RefUnwindSafe for UnboundedRange<'a, T, N>
impl<'a, T, const N: usize> Unpin for UnboundedRange<'a, T, N>
impl<'a, T, const N: usize> !UnwindSafe for UnboundedRange<'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