Struct serde_reflection::Variable [−][src]
pub struct Variable<T>(_);
Expand description
A mutable holder for an initially unknown value.
Implementations
Trait Implementations
impl<T> FormatHolder for Variable<T> where
T: FormatHolder + Debug + Clone,
[src]
impl<T> FormatHolder for Variable<T> where
T: FormatHolder + Debug + Clone,
[src]fn visit<'a>(
&'a self,
_f: &mut dyn FnMut(&'a Format) -> Result<()>
) -> Result<()>
[src]
fn visit<'a>(
&'a self,
_f: &mut dyn FnMut(&'a Format) -> Result<()>
) -> Result<()>
[src]Visit all the formats in self
in a depth-first way.
Variables are not supported and will cause an error. Read more
fn visit_mut(
&mut self,
f: &mut dyn FnMut(&mut Format) -> Result<()>
) -> Result<()>
[src]
fn visit_mut(
&mut self,
f: &mut dyn FnMut(&mut Format) -> Result<()>
) -> Result<()>
[src]Mutably visit all the formats in self
in a depth-first way. Read more
fn unify(&mut self, _other: Variable<T>) -> Result<()>
[src]
fn unify(&mut self, _other: Variable<T>) -> Result<()>
[src]Update variables and add missing enum variants so that the terms match. This is a special case of term unification: Read more
fn is_unknown(&self) -> bool
[src]
fn is_unknown(&self) -> bool
[src]Whether this format is a variable with no known value yet.
impl<T: Eq> Eq for Variable<T>
[src]
impl<T> StructuralEq for Variable<T>
[src]
impl<T> StructuralPartialEq for Variable<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Variable<T>
impl<T> !Send for Variable<T>
impl<T> !Sync for Variable<T>
impl<T> Unpin for Variable<T>
impl<T> !UnwindSafe for Variable<T>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more