Trait qwt::AccessUnsigned
source · pub trait AccessUnsigned {
type Item: Unsigned;
// Required methods
fn get(&self, i: usize) -> Option<Self::Item>;
unsafe fn get_unchecked(&self, i: usize) -> Self::Item;
}
Expand description
A trait for the support get
query over an Unsigned
alphabet.
Required Associated Types§
Required Methods§
sourcefn get(&self, i: usize) -> Option<Self::Item>
fn get(&self, i: usize) -> Option<Self::Item>
Returns the symbol at position i
, or None
if the index i
is out of bounds.
sourceunsafe fn get_unchecked(&self, i: usize) -> Self::Item
unsafe fn get_unchecked(&self, i: usize) -> Self::Item
Returns the symbol at position i
.
§Safety
Calling this method with an out-of-bounds index is undefined behavior.