Struct stm32_hal2::dma::CircBuffer[][src]

pub struct CircBuffer<BUFFER, CHANNEL> where
    BUFFER: 'static, 
{ /* fields omitted */ }

Implementations

impl<B> CircBuffer<B, C1>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C2>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C3>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C4>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C5>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C6>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C7>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C1>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C2>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C3>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C4>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C5>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C6>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

impl<B> CircBuffer<B, C7>[src]

pub fn partial_peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Return the partial contents of the buffer half being written

pub fn peek<R, F, H, T>(&mut self, f: F) -> Result<R, Error> where
    F: FnOnce(&[T], Half) -> R,
    B: StableDeref<Target = [H; 2]> + 'static,
    H: AsSlice<Element = T>, 
[src]

Peeks into the readable half of the buffer Returns the result of the closure

pub fn readable_half(&mut self) -> Result<Half, Error>[src]

Returns the Half of the buffer that can be read

Auto Trait Implementations

impl<BUFFER, CHANNEL> Send for CircBuffer<BUFFER, CHANNEL> where
    BUFFER: Send,
    CHANNEL: Send

impl<BUFFER, CHANNEL> Sync for CircBuffer<BUFFER, CHANNEL> where
    BUFFER: Sync,
    CHANNEL: Sync

impl<BUFFER, CHANNEL> Unpin for CircBuffer<BUFFER, CHANNEL> where
    BUFFER: Unpin,
    CHANNEL: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.