Enum golang_type_decl::golang_type_core::Type [−]
pub enum Type { TypeName(TypeName), ArrayType(ArrayType), StructType(StructType), PointerType(PointerType), FunctionType(FunctionType), InterfaceType(InterfaceType), SliceType(SliceType), MapType(MapType), ChannelType(ChannelType), ParenthesizedType(ParenthesizedType), }
Variants
TypeName(TypeName)
ArrayType(ArrayType)
StructType(StructType)
PointerType(PointerType)
FunctionType(FunctionType)
InterfaceType(InterfaceType)
SliceType(SliceType)
MapType(MapType)
ChannelType(ChannelType)
ParenthesizedType(ParenthesizedType)
Implementations
Trait Implementations
impl ToTokens for Type
impl ToTokens for Type
pub fn to_tokens(&self, tokens: &mut TokenStream)
pub fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
fn to_token_stream(&self) -> TokenStream
[src]
fn to_token_stream(&self) -> TokenStream
[src]Convert self
directly into a TokenStream
object. Read more
fn into_token_stream(self) -> TokenStream
[src]
fn into_token_stream(self) -> TokenStream
[src]Convert self
directly into a TokenStream
object. Read more
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more