MCPcopy Create free account

hub / github.com/butte-rs/butte / functions

Functions413 in github.com/butte-rs/butte

↓ 1 callersMethodfrom_little_endian
(self)
butte/src/endian_scalar.rs:99
↓ 1 callersMethodgenerate_enum_for_union
(&mut self, u: &ast::Union<'a>)
butte-build/src/ir/transform.rs:327
↓ 1 callersMethodget
(&self, byte_loc: VOffsetT)
butte/src/vtable.rs:58
↓ 1 callersFunctionget_vtable_byte_len
(field_locs: &[FieldLoc])
butte/src/builder.rs:681
↓ 1 callersMethodgrow_owned_buf
(&mut self)
butte/src/builder.rs:527
↓ 1 callersMethodident
(&self)
butte-build/src/ir/types.rs:26
↓ 1 callersMethodinto_namespace
(self)
butte-build/src/ir/transform.rs:48
↓ 1 callersMethodinto_node
(self)
butte-build/src/ir/transform.rs:59
↓ 1 callersMethodis_array
(&self)
butte-build/src/ir/types.rs:202
↓ 1 callersMethodis_enum
(&self)
butte-build/src/ir/types.rs:192
↓ 1 callersMethodmake_fully_qualified_ident_relative
( &self, ident: ir::QualifiedIdent<'a>, )
butte-build/src/ir/transform.rs:456
↓ 1 callersMethodmake_union_enum_type_companion
For unions, we generate an enum type "companion" that's just a simple ubyte based enum with all the union variants, + None (default 0) This method le
butte-build/src/ir/types.rs:215
↓ 1 callersMethodnamespace
Return the underlying `Namespace` object from the element if `self` is a `Namespace`.
butte-build/src/ast/types.rs:54
↓ 1 callersMethodnew_element
( &mut self, &IndexedElement(pos, ref element): &IndexedElement<'a>, )
butte-build/src/ir/transform.rs:65
↓ 1 callersMethodnew_enum
(&mut self, e: &ast::Enum<'a>, pos: usize)
butte-build/src/ir/transform.rs:234
↓ 1 callersMethodnew_namespace
(&mut self, ns: &ast::Namespace<'a>)
butte-build/src/ir/transform.rs:84
↓ 1 callersMethodnew_root
(&mut self, root: &ast::Root<'a>, _: usize)
butte-build/src/ir/transform.rs:370
↓ 1 callersMethodnew_rpc
(&mut self, rpc: &ast::Rpc<'a>, pos: usize)
butte-build/src/ir/transform.rs:389
↓ 1 callersMethodnew_struct
(&mut self, t: &ast::Struct<'a>, pos: usize)
butte-build/src/ir/transform.rs:173
↓ 1 callersMethodnew_table
(&mut self, t: &ast::Table<'a>, pos: usize)
butte-build/src/ir/transform.rs:89
↓ 1 callersMethodnew_union
(&mut self, u: &ast::Union<'a>, pos: usize)
butte-build/src/ir/transform.rs:275
↓ 1 callersMethodnext_back
(&mut self)
butte/src/vector.rs:268
↓ 1 callersMethodnode_to_tokens
( &self, node: &ir::Node<'a>, rpc_gen: &mut Option<Box<dyn RpcGenerator>>, tok
butte-build/src/codegen.rs:1114
↓ 1 callersMethodnum_fields
(&self)
butte/src/vtable.rs:38
↓ 1 callersFunctionpadding_bytes
(buf_size: usize, scalar_size: usize)
butte/src/builder.rs:690
↓ 1 callersMethodpush_slot_always
(&mut self, slotoff: VOffsetT, x: X)
butte/src/builder.rs:158
↓ 1 callersFunctionqualified_ident
(input: &str)
butte-build/src/ast/parser.rs:511
↓ 1 callersFunctionread_scalar
(s: &[u8])
butte/src/endian_scalar.rs:175
↓ 1 callersFunctionsubstitute_keyword
(input: &str)
butte-build/src/ir/keywords.rs:1
↓ 1 callersFunctionto_default_value_doc
Convert a `types::ast::DefaultValue` to a doc comment describing the value
butte-build/src/codegen.rs:225
↓ 1 callersMethodto_little_endian
(self)
butte/src/endian_scalar.rs:87
↓ 1 callersMethodtrack_field
(&mut self, slot_off: VOffsetT, off: UOffsetT)
butte/src/builder.rs:394
↓ 1 callersMethodtrack_min_align
(&mut self, alignment: usize)
butte/src/builder.rs:615
↓ 1 callersMethodwrite_field_offset
(&mut self, vtable_offset: VOffsetT, object_data_offset: VOffsetT)
butte/src/vtable_writer.rs:71
↓ 1 callersMethodwrite_object_inline_size
(&mut self, n: VOffsetT)
butte/src/vtable_writer.rs:52
↓ 1 callersMethodwrite_vtable
Write the VTable, if it is new.
butte/src/builder.rs:400
↓ 1 callersMethodwrite_vtable_byte_length
(&mut self, n: VOffsetT)
butte/src/vtable_writer.rs:45
Methodalignment
()
butte/src/push.rs:35
Methodas_namespace_mut
(&mut self)
butte-build/src/ir/types.rs:52
Functionbackslash
(input: &str)
butte-build/src/ast/parser.rs:64
Functionbuffer_has_identifier
(data: &[u8], ident: &str, size_prefixed: bool)
butte/src/table.rs:102
Methodbuild_token_stream
(&mut self)
butte-build/src/codegen.rs:1100
Methodclone
(&self)
butte/src/primitives.rs:94
Methodcollapse
Destroy the FlatBufferBuilder, returning its internal byte vector and the index into it that represents the start of valid data.
butte/src/builder.rs:123
Functioncolon
(input: &str)
butte-build/src/ast/parser.rs:84
Functioncomma
(input: &str)
butte-build/src/ast/parser.rs:88
Functioncomment_or_space
(input: &str)
butte-build/src/ast/parser.rs:246
Functioncomment_or_space0
(input: &str)
butte-build/src/ast/parser.rs:250
Functioncomment_or_space1
(input: &str)
butte-build/src/ast/parser.rs:254
Methodcreate_vector_direct
( &'a mut self, items: &'b [T], )
butte/src/builder.rs:265
Methodcreate_vector_of_strings
( &'a mut self, xs: &'b [&'b str], )
butte/src/builder.rs:290
Functiondec_float_exponent
(input: &str)
butte-build/src/ast/parser.rs:2047
Methoddefault
()
butte-build/src/ir/types.rs:398
Methoddefault
()
butte/src/builder.rs:696
Methoddepth
(&self)
butte-build/src/ir/types.rs:87
Methodderef
(&self)
butte/src/primitives.rs:108
Functiondouble_quote
(input: &str)
butte-build/src/ast/parser.rs:60
Functionemplace_scalar
(s: &mut [u8], x: T)
butte/src/endian_scalar.rs:155
Methodend_table
( &mut self, off: WIPOffset<TableUnfinishedWIPOffset>, )
butte/src/builder.rs:190
Methodend_vector
(&mut self, num_elems: usize)
butte/src/builder.rs:227
Functionenum_body
(input: &str)
butte-build/src/ast/parser.rs:681
Functionenumval_decl
Parse the individual items of an enum or union.
butte-build/src/ast/parser.rs:1310
Methodeq
(&self, o: &WIPOffset<T>)
butte/src/primitives.rs:100
Methodeq
(&self, other: &VTable<'_>)
butte/src/vtable.rs:29
Functionequals
(input: &str)
butte-build/src/ast/parser.rs:96
Functionfield_offset_to_field_index
(field_o: VOffsetT)
butte/src/vtable.rs:80
Methodfinish
(&mut self, root: WIPOffset<T>, file_identifier: Option<&str>)
butte/src/builder.rs:376
Methodfinish_size_prefixed
(&mut self, root: WIPOffset<T>, file_identifier: Option<&str>)
butte/src/builder.rs:367
Methodfix_identifier
Utility function to fix identifiers that may be invalid, e.g that contain Rust keywords and would generate invalid code
butte-build/src/ir/types.rs:446
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
butte-build/src/ir/types.rs:227
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
butte/src/error.rs:23
Methodfollow
(buf: &'a [u8], loc: usize)
butte/src/primitives.rs:175
Methodfollow
(buf: &'a [u8], loc: usize)
butte/src/follow.rs:67
Methodfollow
(buf: &'a [u8], loc: usize)
butte/src/vector.rs:139
Methodfollow
(buf: &'a [u8], loc: usize)
butte/src/vtable.rs:88
Methodfollow_buf
(buf: Self::Buf, loc: usize)
butte/src/primitives.rs:193
Methodfollow_buf
(buf: Self::Buf, loc: usize)
butte/src/table.rs:80
Functionfollow_cast_ref
Follow the pointer to the Vector payload, and cast it to T # Safety A pointer to T must be safely cast from any bytes and thus have the right repres
butte/src/vector.rs:127
Functionfollow_slice_helper
(buf: &[u8], loc: usize)
butte/src/vector.rs:164
Methodfrom
(ident: ast::Ident<'a>)
butte-build/src/ir/types.rs:464
Methodfrom
Convert an array of size 1 to a `Type::Array`.
butte-build/src/ast/types.rs:270
Methodget_field
(&self, idx: usize)
butte/src/vtable.rs:48
Methodget_field_offset
(&self, vtable_offset: VOffsetT)
butte/src/vtable_writer.rs:61
Methodget_root
(buf: B)
butte/src/table.rs:42
Functionget_size_prefixed_root
(data: B)
butte/src/table.rs:94
Methodget_size_prefixed_root
(buf: B)
butte/src/table.rs:46
Functionhex_float_constant
(input: &str)
butte-build/src/ast/parser.rs:2148
Functionhex_float_exponent
Adapted from Python's tokenize.Floatnumber
butte-build/src/ast/parser.rs:2141
Methodinit
(buf: &'a mut [u8])
butte/src/vtable_writer.rs:33
Methodinit
(buf: &'a [u8], loc: usize)
butte/src/vtable.rs:35
Methodinto_namespace
(self)
butte-build/src/ir/types.rs:59
Methodis_namespace
(&self)
butte-build/src/ir/types.rs:41
Methodis_namespace
Check whether an element is a namespace.
butte-build/src/ast/types.rs:49
Methodis_scalar
Check whether a `Type` is scalar.
butte-build/src/ast/types.rs:258
Methodkeyword
Purposefully create an ident named after a keyword e.g to use `crate` or `super` for a type path
butte-build/src/ir/types.rs:456
Functionleft_brace
(input: &str)
butte-build/src/ast/parser.rs:76
Functionleft_paren
(input: &str)
butte-build/src/ast/parser.rs:68
Functionleft_square_bracket
(input: &str)
butte-build/src/ast/parser.rs:108
Functionlifted_follow
(buf: &'a [u8], loc: usize)
butte/src/follow.rs:46
Functionmain
()
butte-examples/build.rs:3
← previousnext →101–200 of 413, ranked by callers