[][src]Struct orbtk::prelude::api::Columns

pub struct Columns(pub Vec<Column>);

Helper struct used inside of the columns Property.

Methods

impl Columns[src]

pub fn create() -> ColumnsBuilder[src]

Creates a new ColumnsBuilder object with default values.

pub fn len(&self) -> usize[src]

Returns the number of elements in the columns list, also referred to as its 'length'.

pub fn is_empty(&self) -> bool[src]

Is the column empty?

pub fn get(&self, column: usize) -> Option<&Column>[src]

Returns a reference to an column.

pub fn get_mut(&mut self, column: usize) -> Option<&mut Column>[src]

Returns a mutable reference to an column.

pub fn iter(&self) -> Iter<Column>[src]

Returns an iterator over the slice.

pub fn iter_mut(&mut self) -> IterMut<Column>[src]

Returns a mutable iterator over the slice.

Trait Implementations

impl Debug for Columns[src]

impl PartialEq<Columns> for Columns[src]

impl Default for Columns[src]

impl IntoPropertySource<Columns> for (String, Entity)[src]

impl<'_> IntoPropertySource<Columns> for (&'_ str, Entity)[src]

impl IntoPropertySource<Columns> for Columns[src]

impl IntoPropertySource<Columns> for Entity[src]

impl StructuralPartialEq for Columns[src]

impl Clone for Columns[src]

Auto Trait Implementations

impl Send for Columns

impl Sync for Columns

impl Unpin for Columns

impl UnwindSafe for Columns

impl RefUnwindSafe for Columns

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<E> Component for E where
    E: Any
[src]

impl<T> SetParameter for T