[−][src]Struct serde_reflection::Variable
A mutable holder for an initially unknown value.
Implementations
impl<T> Variable<T>
[src]
pub fn borrow(&self) -> Ref<'_, Option<T>>
[src]
pub fn borrow_mut(&self) -> RefMut<'_, Option<T>>
[src]
Trait Implementations
impl<T: Clone> Clone for Variable<T>
[src]
impl<T: Debug> Debug for Variable<T>
[src]
impl<T: Default> Default for Variable<T>
[src]
impl<T: Eq> Eq for Variable<T>
[src]
impl<T> FormatHolder for Variable<T> where
T: FormatHolder + Debug + Clone,
[src]
T: FormatHolder + Debug + Clone,
fn visit<'a>(
&'a self,
_f: &mut dyn FnMut(&'a Format) -> Result<()>
) -> Result<()>
[src]
&'a self,
_f: &mut dyn FnMut(&'a Format) -> Result<()>
) -> Result<()>
fn visit_mut(
&mut self,
f: &mut dyn FnMut(&mut Format) -> Result<()>
) -> Result<()>
[src]
&mut self,
f: &mut dyn FnMut(&mut Format) -> Result<()>
) -> Result<()>
fn unify(&mut self, _other: Variable<T>) -> Result<()>
[src]
fn is_unknown(&self) -> bool
[src]
fn normalize(&mut self) -> Result<()>
[src]
fn reduce(&mut self)
[src]
impl<T: PartialEq> PartialEq<Variable<T>> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,