Struct glib::List [] [src]

pub struct List<T> {
    // some fields omitted
}

Methods

impl<T> List<T>

fn new() -> List<T>

fn from_vec(values: Vec<T>) -> List<T>

fn from_slice(values: &[T]) -> List<T> where T: Clone

fn append(&mut self, data: T)

fn prepend(&mut self, data: T)

fn nth(&self, n: u32) -> &T

fn last(&self) -> &T

fn first(&self) -> &T

fn insert(&mut self, data: T, position: i32)

fn concat(&mut self, list: List<T>)

fn reverse(&mut self)

fn iter(&self) -> Elem<T>

fn rev_iter(&self) -> RevElem<T>

fn len(&self) -> usize

fn clear(&mut self)

fn extend<It: IntoIterator<Item=T>>(&mut self, it: It)

Trait Implementations

impl<T> Index<usize> for List<T>

type Output = T

fn index<'a>(&'a self, _rhs: usize) -> &'a T

impl<T> FromIterator<T> for List<T>

fn from_iter<It: IntoIterator<Item=T>>(it: It) -> List<T>

impl<T> Clone for List<T>

fn clone(&self) -> List<T>

fn clone_from(&mut self, source: &Self)

impl<T> Drop for List<T>

fn drop(&mut self)

impl<T> GlibContainer<*mut GList> for List<T>

fn wrap(pointer: *mut GList) -> List<T>

fn unwrap(&self) -> *mut GList