Struct arcdps_imgui::TableColumnSetup

source ·
pub struct TableColumnSetup<'a, Name> {
    pub name: Name,
    pub flags: TableColumnFlags,
    pub init_width_or_weight: f32,
    pub user_id: Id<'a>,
}
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>

A user_id, primarily used in sorting operations.

Implementations§

source§

impl<'a, Name: AsRef<str>> TableColumnSetup<'a, Name>

source

pub fn new(name: Name) -> Self

Trait Implementations§

source§

impl<'a, Name: Debug> Debug for TableColumnSetup<'a, Name>

source§

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

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

impl<'a, Name: Default> Default for TableColumnSetup<'a, Name>

source§

fn default() -> TableColumnSetup<'a, Name>

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

Auto Trait Implementations§

§

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

§

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

§

impl<'a, Name> !Send for TableColumnSetup<'a, Name>

§

impl<'a, Name> !Sync for TableColumnSetup<'a, Name>

§

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

§

impl<'a, Name> UnwindSafe for TableColumnSetup<'a, 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>,

source§

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>,

source§

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.