Struct leetcode_tui_rs::migrations::ConditionHolder
pub struct ConditionHolder {
pub contents: ConditionHolderContents,
}
Fields§
§contents: ConditionHolderContents
Implementations§
§impl ConditionHolder
impl ConditionHolder
pub fn new() -> ConditionHolder
pub fn new_with_condition(condition: Condition) -> ConditionHolder
pub fn is_empty(&self) -> bool
pub fn is_one(&self) -> bool
pub fn add_and_or(&mut self, condition: LogicalChainOper)
pub fn add_condition(&mut self, addition: Condition)
Trait Implementations§
§impl Clone for ConditionHolder
impl Clone for ConditionHolder
§fn clone(&self) -> ConditionHolder
fn clone(&self) -> ConditionHolder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ConditionHolder
impl Debug for ConditionHolder
§impl Default for ConditionHolder
impl Default for ConditionHolder
§fn default() -> ConditionHolder
fn default() -> ConditionHolder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ConditionHolder
impl Send for ConditionHolder
impl Sync for ConditionHolder
impl Unpin for ConditionHolder
impl !UnwindSafe for ConditionHolder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more