pub struct MappingType {
pub key: TypeExpr,
pub value: TypeExpr,
pub span: Span,
}Expand description
Mapping type: mapping(KeyType => ValueType)
Fields§
§key: TypeExpr§value: TypeExpr§span: SpanTrait Implementations§
Source§impl Clone for MappingType
impl Clone for MappingType
Source§fn clone(&self) -> MappingType
fn clone(&self) -> MappingType
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 MappingType
impl Debug for MappingType
Source§impl<'de> Deserialize<'de> for MappingType
impl<'de> Deserialize<'de> for MappingType
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 MappingType
impl PartialEq for MappingType
Source§impl Serialize for MappingType
impl Serialize for MappingType
impl StructuralPartialEq for MappingType
Auto Trait Implementations§
impl Freeze for MappingType
impl RefUnwindSafe for MappingType
impl Send for MappingType
impl Sync for MappingType
impl Unpin for MappingType
impl UnwindSafe for MappingType
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