pub struct VariableDef {
pub id: u64,
pub var_type: VarType,
pub name: Option<String>,
}Expand description
A variable definition in Advanced-CNF.
Fields§
§id: u64Unique variable ID.
var_type: VarTypeVariable type.
name: Option<String>Optional human-readable name.
Trait Implementations§
Source§impl Clone for VariableDef
impl Clone for VariableDef
Source§fn clone(&self) -> VariableDef
fn clone(&self) -> VariableDef
Returns a duplicate 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 moreSource§impl Debug for VariableDef
impl Debug for VariableDef
Source§impl<'de> Deserialize<'de> for VariableDef
impl<'de> Deserialize<'de> for VariableDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VariableDef
impl RefUnwindSafe for VariableDef
impl Send for VariableDef
impl Sync for VariableDef
impl Unpin for VariableDef
impl UnwindSafe for VariableDef
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