Struct planus_cli::codegen::rust::RustBackend [−][src]
pub struct RustBackend;Trait Implementations
type NamespaceInfo = Namespace
type TableFieldInfo = TableField
type StructInfo = Struct
type StructFieldInfo = StructField
type EnumVariantInfo = EnumVariant
type UnionVariantInfo = UnionVariant
type RpcServiceInfo = RpcService
type RpcMethodInfo = RpcMethod
fn generate_namespace(
&mut self,
namespace_names: &mut NamespaceNames<'_, '_>,
namespace_name: &AbsolutePath,
_namespace: &Namespace
) -> Namespace
fn generate_table(
&mut self,
declaration_names: &mut DeclarationNames<'_, '_>,
_translated_namespaces: &[Self::NamespaceInfo],
decl_name: &AbsolutePath,
_decl: &Table
) -> Table
fn generate_struct(
&mut self,
declaration_names: &mut DeclarationNames<'_, '_>,
_translated_namespaces: &[Self::NamespaceInfo],
decl_name: &AbsolutePath,
_decl: &Struct
) -> Struct
fn generate_enum(
&mut self,
declaration_names: &mut DeclarationNames<'_, '_>,
_translated_namespaces: &[Self::NamespaceInfo],
decl_name: &AbsolutePath,
decl: &Enum
) -> Enum
fn generate_union(
&mut self,
declaration_names: &mut DeclarationNames<'_, '_>,
_translated_namespaces: &[Self::NamespaceInfo],
decl_name: &AbsolutePath,
decl: &Union
) -> Union
fn generate_rpc_service(
&mut self,
_declaration_names: &mut DeclarationNames<'_, '_>,
_translated_namespaces: &[Self::NamespaceInfo],
_decl_name: &AbsolutePath,
_decl: &RpcService
) -> RpcService
fn generate_table_field(
&mut self,
translation_context: &mut DeclarationTranslationContext<'_, '_, Self>,
_parent_info: &Self::TableInfo,
_parent: &Table,
field_name: &str,
field: &TableField,
resolved_type: ResolvedType<'_, Self>
) -> TableField
fn generate_struct_field(
&mut self,
translation_context: &mut DeclarationTranslationContext<'_, '_, Self>,
parent_info: &Self::StructInfo,
_parent: &Struct,
field_name: &str,
_field: &StructField,
resolved_type: ResolvedType<'_, Self>
) -> StructField
fn generate_enum_variant(
&mut self,
translation_context: &mut DeclarationTranslationContext<'_, '_, Self>,
_parent_info: &Self::EnumInfo,
_parent: &Enum,
key: &str,
value: &IntegerLiteral
) -> EnumVariant
fn generate_union_variant(
&mut self,
translation_context: &mut DeclarationTranslationContext<'_, '_, Self>,
_parent_info: &Self::UnionInfo,
_parent: &Union,
key: &str,
_index: u8,
_value: &UnionVariant,
resolved_type: ResolvedType<'_, Self>
) -> UnionVariant
fn generate_rpc_method(
&mut self,
_translation_context: &mut DeclarationTranslationContext<'_, '_, Self>,
_parent_info: &Self::RpcServiceInfo,
_parent: &RpcService,
_method_name: &str,
_method: &RpcMethod
) -> RpcMethod
Auto Trait Implementations
impl RefUnwindSafe for RustBackend
impl Send for RustBackend
impl Sync for RustBackend
impl Unpin for RustBackend
impl UnwindSafe for RustBackend
Blanket Implementations
Mutably borrows from an owned value. Read more
