Update README, remove ignored files.
This commit is contained in:
parent
404a798b20
commit
a35562b168
64
.vscode/launch.json
vendored
64
.vscode/launch.json
vendored
@ -1,64 +0,0 @@
|
|||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"type": "lldb",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Debug unit tests in library 'szun'",
|
|
||||||
"cargo": {
|
|
||||||
"args": [
|
|
||||||
"test",
|
|
||||||
"--no-run",
|
|
||||||
"--lib",
|
|
||||||
"--package=szun"
|
|
||||||
],
|
|
||||||
"filter": {
|
|
||||||
"name": "szun",
|
|
||||||
"kind": "lib"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"args": [],
|
|
||||||
"cwd": "${workspaceFolder}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "lldb",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Debug executable 'main'",
|
|
||||||
"cargo": {
|
|
||||||
"args": [
|
|
||||||
"build",
|
|
||||||
"--bin=main",
|
|
||||||
"--package=szun"
|
|
||||||
],
|
|
||||||
"filter": {
|
|
||||||
"name": "main",
|
|
||||||
"kind": "bin"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"args": [],
|
|
||||||
"cwd": "${workspaceFolder}"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "lldb",
|
|
||||||
"request": "launch",
|
|
||||||
"name": "Debug unit tests in executable 'main'",
|
|
||||||
"cargo": {
|
|
||||||
"args": [
|
|
||||||
"test",
|
|
||||||
"--no-run",
|
|
||||||
"--bin=main",
|
|
||||||
"--package=szun"
|
|
||||||
],
|
|
||||||
"filter": {
|
|
||||||
"name": "main",
|
|
||||||
"kind": "bin"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"args": [],
|
|
||||||
"cwd": "${workspaceFolder}"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -57,7 +57,7 @@ Type building functions are used to generate identifiers used in the constructio
|
|||||||
* `schema()`
|
* `schema()`
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
This example produces an identifier representing block of 4 bytes, which can be used to construct a list containing that type.
|
This example produces an identifier representing a block of 4 bytes, which can be used to construct a list containing that type.
|
||||||
```
|
```
|
||||||
let type_id = block(4);
|
let type_id = block(4);
|
||||||
let list = List::new(type_id);
|
let list = List::new(type_id);
|
||||||
@ -164,7 +164,7 @@ let target = Sequence::new();
|
|||||||
println!("{}", original.get()); // prints "Hello, world!"
|
println!("{}", original.get()); // prints "Hello, world!"
|
||||||
println!("{}", target.get()); // prints ""
|
println!("{}", target.get()); // prints ""
|
||||||
|
|
||||||
transfer(target, original);
|
transfer(target, original).ok();
|
||||||
|
|
||||||
println!("{}", original.get()); // prints ""
|
println!("{}", original.get()); // prints ""
|
||||||
println!("{}", target.get()); // prints "Hello, world!"
|
println!("{}", target.get()); // prints "Hello, world!"
|
||||||
@ -182,7 +182,7 @@ let target = Sequence::new();
|
|||||||
println!("{}", original.get()); // prints "Hello, world!"
|
println!("{}", original.get()); // prints "Hello, world!"
|
||||||
println!("{}", target.get()); // prints ""
|
println!("{}", target.get()); // prints ""
|
||||||
|
|
||||||
copy(target, original);
|
copy(target, original).ok();
|
||||||
|
|
||||||
println!("{}", original.get()); // prints "Hello, world!"
|
println!("{}", original.get()); // prints "Hello, world!"
|
||||||
println!("{}", target.get()); // prints "Hello, world!"
|
println!("{}", target.get()); // prints "Hello, world!"
|
||||||
|
Reference in New Issue
Block a user