Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rexagon/opg
/ functions
Functions
154 in github.com/Rexagon/opg
⨍
Functions
154
◇
Types & classes
88
↓ 27 callers
Method
set
(&mut self, object: A, value: T)
opg_derive/src/attr.rs:720
↓ 24 callers
Method
get
(self)
opg_derive/src/attr.rs:746
↓ 18 callers
Method
error_spanned_by
(&self, object: O, message: T)
opg_derive/src/parsing_context.rs:16
↓ 16 callers
Function
option_string
(data: Option<&str>)
opg_derive/src/opg.rs:756
↓ 13 callers
Function
get_lit_str
( cx: &ParsingContext, attr_name: Symbol, lit: &'a syn::Lit, )
opg_derive/src/attr.rs:627
↓ 12 callers
Method
set_true
(&mut self, object: A)
opg_derive/src/attr.rs:765
↓ 9 callers
Method
insert
(&mut self, object: A, value: T)
opg_derive/src/attr.rs:830
↓ 8 callers
Method
apply_params
(mut self, params: &ContextParams)
opg/src/models.rs:652
↓ 8 callers
Function
implement_type
( type_name: &syn::Ident, body: proc_macro2::TokenStream, inline: bool, )
opg_derive/src/opg.rs:774
↓ 6 callers
Function
get_lit_str_simple
(lit: &syn::Lit)
opg_derive/src/attr.rs:619
↓ 6 callers
Method
serialized
(&self)
opg_derive/src/attr.rs:890
↓ 5 callers
Function
field_model_reference
( context_params: ContextParams<'a>, field: &'a Field, inline: bool, )
opg_derive/src/opg.rs:671
↓ 5 callers
Function
get_renames
( cx: &ParsingContext, items: &'a Punctuated<syn::NestedMeta, syn::Token![,]>, )
opg_derive/src/attr.rs:530
↓ 5 callers
Function
inline_reference
(model: proc_macro2::TokenStream)
opg_derive/src/opg.rs:585
↓ 5 callers
Method
or
(mut self, other: T)
opg_derive/src/opg.rs:871
↓ 4 callers
Method
at_most_one
(mut self)
opg_derive/src/attr.rs:797
↓ 4 callers
Function
object_model
( nullable: bool, description: &Option<String>, fields: &[Field], inline_predicate: P, )
opg_derive/src/opg.rs:562
↓ 3 callers
Method
add_model
Manually insert model with specified name
opg/src/models.rs:575
↓ 3 callers
Method
as_str
(&self)
opg/src/models.rs:215
↓ 3 callers
Method
description
(mut self, description: Option<&'a str>)
opg_derive/src/opg.rs:851
↓ 3 callers
Method
example
(mut self, example: Option<&'a syn::Expr>)
opg_derive/src/opg.rs:866
↓ 3 callers
Function
fields_from_ast
( cx: &ParsingContext, fields: &'a Punctuated<syn::Field, syn::Token![,]>, )
opg_derive/src/ast.rs:153
↓ 3 callers
Method
format
(mut self, format: Option<&'a str>)
opg_derive/src/opg.rs:861
↓ 3 callers
Function
get_meta_items
( cx: &ParsingContext, attr: &syn::Attribute, )
opg_derive/src/attr.rs:655
↓ 3 callers
Method
get_with_tokens
(self)
opg_derive/src/attr.rs:750
↓ 3 callers
Method
inner
(&self)
opg_derive/src/symbol.rs:54
↓ 3 callers
Function
lit_str_expr
(lit: &syn::LitStr)
opg_derive/src/attr.rs:559
↓ 3 callers
Function
parse_lit_into_expr
( cx: &ParsingContext, attr_name: Symbol, lit: &syn::Lit, )
opg_derive/src/attr.rs:566
↓ 3 callers
Method
rename_by_rule
(&mut self, rule: RenameRule)
opg_derive/src/attr.rs:294
↓ 3 callers
Method
set_opt
(&mut self, object: A, value: Option<T>)
opg_derive/src/attr.rs:733
↓ 3 callers
Method
tokenize
(self)
opg_derive/src/opg.rs:896
↓ 3 callers
Function
tuple_model
( nullable: bool, description: &Option<String>, fields: &[Field], inline_predicate: P, )
opg_derive/src/opg.rs:539
↓ 3 callers
Function
unraw
(ident: &syn::Ident)
opg_derive/src/dummy.rs:27
↓ 2 callers
Method
check
(self)
opg_derive/src/parsing_context.rs:32
↓ 2 callers
Function
newtype_model
( nullable: bool, context_params: ContextParams, explicit_model_type: ExplicitModelType, )
opg_derive/src/opg.rs:701
↓ 2 callers
Method
nullable
(mut self, nullable: Option<bool>)
opg_derive/src/opg.rs:856
↓ 2 callers
Function
object_type_description
(fields: &[Field], inline_predicate: P)
opg_derive/src/opg.rs:624
↓ 2 callers
Function
option_to_string_expr
(data: Option<&syn::Expr>)
opg_derive/src/opg.rs:747
↓ 2 callers
Function
parse_lit_str
(s: &syn::LitStr)
opg_derive/src/attr.rs:591
↓ 2 callers
Function
respan_token_stream
(stream: TokenStream, span: Span)
opg_derive/src/attr.rs:604
↓ 2 callers
Function
struct_from_ast
( cx: &ParsingContext, fields: &'a syn::Fields, )
opg_derive/src/ast.rs:139
↓ 2 callers
Function
tuple_type_description
(fields: &[Field], inline_predicate: P)
opg_derive/src/opg.rs:591
↓ 2 callers
Method
visit_field
(&mut self, field: &'ast syn::Field)
opg_derive/src/bound.rs:40
↓ 1 callers
Method
apply_to_field
Apply a renaming rule to a struct field, returning the version expected in the source.
opg_derive/src/case.rs:59
↓ 1 callers
Method
apply_to_variant
Apply a renaming rule to an enum variant, returning the version expected in the source.
opg_derive/src/case.rs:34
↓ 1 callers
Function
build_generics
(cont: &Container)
opg_derive/src/opg.rs:37
↓ 1 callers
Method
check
(&mut self, link: &'a str)
opg/src/models.rs:1057
↓ 1 callers
Function
decide_model_type
( cx: &ParsingContext, input: &syn::DeriveInput, tag_type: &TagType, )
opg_derive/src/attr.rs:485
↓ 1 callers
Function
decide_tag
(untagged: BoolAttr, internal_tag: Attr<String>, content: Attr<String>)
opg_derive/src/attr.rs:471
↓ 1 callers
Function
enum_from_ast
( cx: &ParsingContext, variants: &'a Punctuated<syn::Variant, syn::Token![,]>, )
opg_derive/src/ast.rs:102
↓ 1 callers
Function
get_lit_str_special
( cx: &ParsingContext, attr_name: Symbol, path_name: Symbol, lit: &'a syn::Lit, )
opg_derive/src/attr.rs:635
↓ 1 callers
Function
get_ser
( cx: &'c ParsingContext, attr_name: Symbol, metas: &'m Punctuated<syn::NestedMeta, syn::Token![,]
opg_derive/src/attr.rs:537
↓ 1 callers
Function
impl_derive_opg_model
( input: syn::DeriveInput, )
opg_derive/src/opg.rs:10
↓ 1 callers
Method
merge
Merge other object into self
opg/src/models.rs:968
↓ 1 callers
Function
option_bool
(data: Option<bool>)
opg_derive/src/opg.rs:765
↓ 1 callers
Function
parse_lit_into_expr_path
( cx: &ParsingContext, attr_name: Symbol, lit: &syn::Lit, )
opg_derive/src/attr.rs:577
↓ 1 callers
Method
rename_as_field
(&mut self, rename_rule: RenameRule)
opg_derive/src/attr.rs:880
↓ 1 callers
Method
rename_as_variant
(&mut self, rename_rule: RenameRule)
opg_derive/src/attr.rs:874
↓ 1 callers
Function
respan_token_tree
(mut token: TokenTree, span: Span)
opg_derive/src/attr.rs:611
↓ 1 callers
Function
serialize_adjacent_tagged_enum
( container: &Container, variants: &[Variant], tag: &str, content: &str, )
opg_derive/src/opg.rs:186
↓ 1 callers
Function
serialize_body
(container: &Container)
opg_derive/src/opg.rs:50
↓ 1 callers
Function
serialize_enum
(container: &Container, variants: &[Variant])
opg_derive/src/opg.rs:62
↓ 1 callers
Function
serialize_external_tagged_enum
( container: &Container, variants: &[Variant], )
opg_derive/src/opg.rs:289
↓ 1 callers
Function
serialize_internal_tagged_enum
( container: &Container, variants: &[Variant], tag: &str, )
opg_derive/src/opg.rs:382
↓ 1 callers
Function
serialize_newtype_enum
(container: &Container, variants: &[Variant])
opg_derive/src/opg.rs:77
↓ 1 callers
Function
serialize_newtype_struct
(container: &Container, field: &Field)
opg_derive/src/opg.rs:513
↓ 1 callers
Function
serialize_struct
(container: &Container, fields: &[Field])
opg_derive/src/opg.rs:475
↓ 1 callers
Function
serialize_tuple_struct
(container: &Container, fields: &[Field])
opg_derive/src/opg.rs:494
↓ 1 callers
Function
serialize_untagged_enum
( container: &Container, variants: &[Variant], )
opg_derive/src/opg.rs:148
↓ 1 callers
Function
spanned_tokens
(s: &syn::LitStr)
opg_derive/src/attr.rs:599
↓ 1 callers
Method
split
( self, )
opg_derive/src/opg.rs:882
↓ 1 callers
Method
syn_error
(&self, err: syn::Error)
opg_derive/src/parsing_context.rs:28
↓ 1 callers
Method
traverse
Check links
opg/src/models.rs:678
↓ 1 callers
Function
ungroup
(mut ty: &syn::Type)
opg_derive/src/bound.rs:136
↓ 1 callers
Function
with_bound
( cont: &Container, generics: &syn::Generics, filter: fn(&attr::Field, Option<&attr::Variant>) ->
opg_derive/src/bound.rs:27
↓ 1 callers
Function
without_default
(generics: &syn::Generics)
opg_derive/src/bound.rs:9
↓ 1 callers
Function
wrap_in_const
( trait_: &str, ty: &syn::Ident, code: proc_macro2::TokenStream, )
opg_derive/src/dummy.rs:1
Method
add_property
Manually add property
opg/src/models.rs:947
Function
adjacently_tagged_enum
()
test_suite/tests/models.rs:221
Method
all_fields
(&'a self)
opg_derive/src/ast.rs:92
Function
complex_enum
()
test_suite/tests/models.rs:530
Method
contains_model
(&self, name: &str)
opg/src/models.rs:531
Method
default
()
opg/src/models.rs:48
Function
derive_opg_model
(input: TokenStream)
opg_derive/src/lib.rs:20
Function
describe_type_macro
()
test_suite/tests/models.rs:641
Method
drop
(&mut self)
opg_derive/src/parsing_context.rs:43
Method
eq
(&self, other: &Symbol)
opg_derive/src/symbol.rs:60
Function
example_with
()
test_suite/tests/models.rs:432
Function
expands_normally
()
test_suite/tests/api.rs:32
Function
externally_enum
()
test_suite/tests/models.rs:101
Method
extract
(self)
opg/src/macros.rs:8
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
opg_derive/src/attr.rs:694
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
opg_derive/src/symbol.rs:84
Method
from
(data: ModelOneOf)
opg/src/models.rs:732
Method
from
(attrs: &'a attr::Container)
opg_derive/src/opg.rs:818
Method
from_ast
(cx: &ParsingContext, input: &syn::DeriveInput)
opg_derive/src/attr.rs:33
Method
from_ast
(cx: &ParsingContext, input: &'a syn::DeriveInput)
opg_derive/src/ast.rs:36
Method
from_attrs
(source_name: String, serialized_name: Attr<String>)
opg_derive/src/attr.rs:863
Method
from_path
(p: &syn::Path)
opg_derive/src/attr.rs:438
Method
from_str
(rename_all_str: &str)
opg_derive/src/case.rs:92
next →
1–100 of 154, ranked by callers