tabled

Struct Modify

Source
pub struct Modify<O> { /* private fields */ }
Expand description

Modify structure provide an abstraction, to be able to apply a set of CellOptions to the same object.

Be aware that the settings are applied all to a cell at a time. So sometimes you may need to make a several calls of Modify in order to achieve the desired affect.

Implementations§

Source§

impl<O> Modify<O>
where O: Object,

Source

pub fn new(obj: O) -> Self

Creates a new Modify without any options.

Source

pub fn with<M>(self, s: M) -> ModifyList<O, M>

It’s a generic function which stores a CellOption.

IMPORTANT: The function doesn’t changes a Table. Table will be changed only after passing Modify object to Table::with.

Trait Implementations§

Source§

impl<O: Debug> Debug for Modify<O>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<O> Freeze for Modify<O>
where O: Freeze,

§

impl<O> RefUnwindSafe for Modify<O>
where O: RefUnwindSafe,

§

impl<O> Send for Modify<O>
where O: Send,

§

impl<O> Sync for Modify<O>
where O: Sync,

§

impl<O> Unpin for Modify<O>
where O: Unpin,

§

impl<O> UnwindSafe for Modify<O>
where O: 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.