Struct imgui::TableColumnSetup

source ·
pub struct TableColumnSetup<Name> {
    pub name: Name,
    pub flags: TableColumnFlags,
    pub init_width_or_weight: f32,
    pub user_id: Id,
}
Expand description

A struct containing all the data needed to setup a table column header via begin_table_header or table_setup_column.

Fields§

§name: Name

The name of column to be displayed to users.

§flags: TableColumnFlags

The flags this column will have.

§init_width_or_weight: f32

The width or weight of the given column.

§user_id: Id

A user_id, primarily used in sorting operations.

Implementations§

source§

impl<Name: AsRef<str>> TableColumnSetup<Name>

source

pub fn new(name: Name) -> Self

Trait Implementations§

source§

impl<Name: Debug> Debug for TableColumnSetup<Name>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Name: Default> Default for TableColumnSetup<Name>

source§

fn default() -> TableColumnSetup<Name>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<Name> Freeze for TableColumnSetup<Name>
where Name: Freeze,

§

impl<Name> RefUnwindSafe for TableColumnSetup<Name>
where Name: RefUnwindSafe,

§

impl<Name> Send for TableColumnSetup<Name>
where Name: Send,

§

impl<Name> Sync for TableColumnSetup<Name>
where Name: Sync,

§

impl<Name> Unpin for TableColumnSetup<Name>
where Name: Unpin,

§

impl<Name> UnwindSafe for TableColumnSetup<Name>
where Name: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.