pub enum WitTypeWithUnit {
Unit,
Type(WitType),
}Variants§
Implementations§
Source§impl WitTypeWithUnit
impl WitTypeWithUnit
pub fn unit() -> Self
pub fn analysed_type(typ: WitType) -> Self
Trait Implementations§
Source§impl Clone for WitTypeWithUnit
impl Clone for WitTypeWithUnit
Source§fn clone(&self) -> WitTypeWithUnit
fn clone(&self) -> WitTypeWithUnit
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 WitTypeWithUnit
impl Debug for WitTypeWithUnit
Source§impl<'de> Deserialize<'de> for WitTypeWithUnit
impl<'de> Deserialize<'de> for WitTypeWithUnit
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
Source§impl PartialEq for WitTypeWithUnit
impl PartialEq for WitTypeWithUnit
Source§impl Serialize for WitTypeWithUnit
impl Serialize for WitTypeWithUnit
Source§impl TryFrom<&InferredType> for WitTypeWithUnit
impl TryFrom<&InferredType> for WitTypeWithUnit
Source§impl TryFrom<WitTypeWithUnit> for WitType
impl TryFrom<WitTypeWithUnit> for WitType
impl StructuralPartialEq for WitTypeWithUnit
Auto Trait Implementations§
impl Freeze for WitTypeWithUnit
impl RefUnwindSafe for WitTypeWithUnit
impl Send for WitTypeWithUnit
impl Sync for WitTypeWithUnit
impl Unpin for WitTypeWithUnit
impl UnsafeUnpin for WitTypeWithUnit
impl UnwindSafe for WitTypeWithUnit
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