Trait EndPtr

Source
pub trait EndPtr {
    type Item;

    // Required method
    fn end_ptr(&self) -> *const Self::Item;
}
Expand description

A convenience trait that provides end_ptr() method for slices.

Required Associated Types§

Source

type Item

Type of item.

Required Methods§

Source

fn end_ptr(&self) -> *const Self::Item

Returns pointer to the end of the slice (past the last element).

Implementations on Foreign Types§

Source§

impl<'a> EndPtr for &'a str

Source§

impl<'a, T> EndPtr for &'a [T]

Implementors§