read_fonts::traversalTrait SomeArray
source pub trait SomeArray<'a> {
// Required methods
fn type_name(&self) -> &str;
fn len(&self) -> usize;
fn get(&self, idx: usize) -> Option<FieldType<'a>>;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
A generic trait for arrays.
The name of this type. For an array of u16s, this is [u16]
.
Return the item at idx
, or None
if idx
is out of bounds.
Returns true
if this array is empty.
Return an iterator over the contents of this array.
Formats the value using the given formatter.
Read more
The name of this type. For an array of u16s, this is [u16]
.
The length of the array.
Return the item at idx
, or None
if idx
is out of bounds.
Returns true
if this array is empty.