pub struct OptionalType {
pub inner: Box<TypeAnnotation>,
pub span: Span,
}Fields§
§inner: Box<TypeAnnotation>§span: SpanTrait Implementations§
Source§impl Clone for OptionalType
impl Clone for OptionalType
Source§fn clone(&self) -> OptionalType
fn clone(&self) -> OptionalType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OptionalType
impl Debug for OptionalType
Source§impl<'de> Deserialize<'de> for OptionalType
impl<'de> Deserialize<'de> for OptionalType
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
impl Eq for OptionalType
Source§impl Hash for OptionalType
impl Hash for OptionalType
Source§impl PartialEq for OptionalType
impl PartialEq for OptionalType
Source§impl Serialize for OptionalType
impl Serialize for OptionalType
impl StructuralPartialEq for OptionalType
Auto Trait Implementations§
impl Freeze for OptionalType
impl RefUnwindSafe for OptionalType
impl Send for OptionalType
impl Sync for OptionalType
impl Unpin for OptionalType
impl UnsafeUnpin for OptionalType
impl UnwindSafe for OptionalType
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