Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
10e1d1a6
Commit
10e1d1a6
authored
Sep 04, 2018
by
Onur Karaman
Committed by
Wouter van Oortmerssen
Sep 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rust flatbuffers create_vector docs (#4913)
Manual vector creation begins with start_vector, not create_vector.
parent
660c4912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
builder.rs
rust/flatbuffers/src/builder.rs
+2
-2
No files found.
rust/flatbuffers/src/builder.rs
View file @
10e1d1a6
...
...
@@ -264,7 +264,7 @@ impl<'fbb> FlatBufferBuilder<'fbb> {
/// Create a vector of strings.
///
/// Speed-sensitive users may wish to reduce memory usage by creating the
/// vector manually: use `
create
_vector`, `push`, and `end_vector`.
/// vector manually: use `
start
_vector`, `push`, and `end_vector`.
#[inline]
pub
fn
create_vector_of_strings
<
'a
,
'b
>
(
&
'a
mut
self
,
xs
:
&
'b
[
&
'b
str
])
->
WIPOffset
<
Vector
<
'fbb
,
ForwardsUOffset
<&
'fbb
str
>>>
{
self
.assert_not_nested
(
"create_vector_of_strings can not be called when a table or vector is under construction"
);
...
...
@@ -282,7 +282,7 @@ impl<'fbb> FlatBufferBuilder<'fbb> {
/// Create a vector of Push-able objects.
///
/// Speed-sensitive users may wish to reduce memory usage by creating the
/// vector manually: use `
create
_vector`, `push`, and `end_vector`.
/// vector manually: use `
start
_vector`, `push`, and `end_vector`.
#[inline]
pub
fn
create_vector
<
'a
:
'b
,
'b
,
T
:
Push
+
Copy
+
'b
>
(
&
'a
mut
self
,
items
:
&
'b
[
T
])
->
WIPOffset
<
Vector
<
'fbb
,
T
::
Output
>>
{
let
elem_size
=
T
::
size
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment