pub struct List(/* private fields */);Implementations§
Source§impl List
impl List
pub fn new(elements: Vec<GValue>) -> Self
pub fn iter(&self) -> impl Iterator<Item = &GValue>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, value: GValue)
pub fn append(&mut self, other: &mut Vec<GValue>)
pub fn core(self) -> Vec<GValue>
pub fn last(self) -> Option<GValue>
pub fn last_mut(&mut self) -> Option<&mut GValue>
Trait Implementations§
Source§impl IntoIterator for List
impl IntoIterator for List
impl StructuralPartialEq for List
Auto Trait Implementations§
impl Freeze for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnwindSafe for List
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