pub struct ListInit<'a> { /* private fields */ }Implementations§
Source§impl<'a> ListInit<'a>
impl<'a> ListInit<'a>
Sourcepub fn iter(self) -> ListIter<'a> ⓘ
pub fn iter(self) -> ListIter<'a> ⓘ
Returns an iterator over the elements of the list.
The iterator yields values of type TypedInit.
Sourcepub fn get(self, index: usize) -> Option<TypedInit<'a>>
pub fn get(self, index: usize) -> Option<TypedInit<'a>>
Returns the element at the given index in the list.
Sourcepub fn element_type(self) -> Option<Type>
pub fn element_type(self) -> Option<Type>
Returns the element type of this list, or None if it cannot be determined.
Trait Implementations§
Source§impl<'a> TryFrom<RecordValue<'a>> for ListInit<'a>
impl<'a> TryFrom<RecordValue<'a>> for ListInit<'a>
Source§type Error = SourceError<TableGenError>
type Error = SourceError<TableGenError>
The type returned in the event of a conversion error.
impl<'a> Copy for ListInit<'a>
impl<'a> Eq for ListInit<'a>
impl<'a> StructuralPartialEq for ListInit<'a>
Auto Trait Implementations§
impl<'a> Freeze for ListInit<'a>
impl<'a> RefUnwindSafe for ListInit<'a>
impl<'a> !Send for ListInit<'a>
impl<'a> !Sync for ListInit<'a>
impl<'a> Unpin for ListInit<'a>
impl<'a> UnwindSafe for ListInit<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more