Enum marine_macro_impl::ParsedType
source · pub enum ParsedType {
Show 15 variants
I8(PassingStyle),
I16(PassingStyle),
I32(PassingStyle),
I64(PassingStyle),
U8(PassingStyle),
U16(PassingStyle),
U32(PassingStyle),
U64(PassingStyle),
F32(PassingStyle),
F64(PassingStyle),
Boolean(PassingStyle),
Utf8Str(PassingStyle),
Utf8String(PassingStyle),
Vector(Box<ParsedType>, PassingStyle),
Record(String, PassingStyle),
}
Expand description
An internal representation of supported Rust types.
Variants§
I8(PassingStyle)
I16(PassingStyle)
I32(PassingStyle)
I64(PassingStyle)
U8(PassingStyle)
U16(PassingStyle)
U32(PassingStyle)
U64(PassingStyle)
F32(PassingStyle)
F64(PassingStyle)
Boolean(PassingStyle)
Utf8Str(PassingStyle)
Utf8String(PassingStyle)
Vector(Box<ParsedType>, PassingStyle)
Record(String, PassingStyle)
Implementations§
source§impl ParsedType
impl ParsedType
pub fn from_type(input_type: &Type) -> Result<Self>
pub fn from_fn_arg(fn_arg: &FnArg) -> Result<Self>
pub fn from_return_type(ret_type: &ReturnType) -> Result<Option<Self>>
pub fn is_complex_type(&self) -> bool
Trait Implementations§
source§impl Clone for ParsedType
impl Clone for ParsedType
source§fn clone(&self) -> ParsedType
fn clone(&self) -> ParsedType
Returns a copy 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 ParsedType
impl Debug for ParsedType
source§impl<'de> Deserialize<'de> for ParsedType
impl<'de> Deserialize<'de> for ParsedType
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 Display for ParsedType
impl Display for ParsedType
source§impl PartialEq for ParsedType
impl PartialEq for ParsedType
source§fn eq(&self, other: &ParsedType) -> bool
fn eq(&self, other: &ParsedType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ParsedType
impl Serialize for ParsedType
source§impl ToTokens for ParsedType
impl ToTokens for ParsedType
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl StructuralPartialEq for ParsedType
Auto Trait Implementations§
impl RefUnwindSafe for ParsedType
impl Send for ParsedType
impl Sync for ParsedType
impl Unpin for ParsedType
impl UnwindSafe for ParsedType
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
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.