[−][src]Struct stm32l4xx_hal::dma::CircBuffer
Methods
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> Result<(usize, R), ()>,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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]>,
H: AsSlice<Element = T>,
[src]
F: FnOnce(&[T], Half) -> R,
B: StableDeref<Target = [H; 2]>,
H: AsSlice<Element = T>,
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,
BUFFER: Send,
CHANNEL: Send,
impl<BUFFER, CHANNEL> Sync for CircBuffer<BUFFER, CHANNEL> where
BUFFER: Sync,
CHANNEL: Sync,
BUFFER: Sync,
CHANNEL: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self