Lines Matching +full:rust +full:- +full:embedded
6 - `Tagged` for explicit tagged objects,
7 - `Optional` to simplify writing subparsers with only `BerObject`
25 -fn parse_struct01(i: &[u8]) -> BerResult<(BerObjectHeader,MyStruct)> {
26 +fn parse_struct01(i: &[u8]) -> BerResult<MyStruct> {
37 Now, a header is always created and embedded in the BER object, with the following changes:
39 - To access these fields, use the header: `obj.tag` becomes `obj.header.tag`, etc.
40 - `BerObject::to_header()` is now deprecated
41 - The `len` field is now public. However, in some cases it can be 0 (when creating an object, 0 mea…
42 - As a consequence, `PartialEq` on BER objects and headers compare `len` only if set in both objects
65 OID objects have been refactored, and are now zero-copy. This has several consequences:
67 - `Oid` struct now has a lifetime, which must be propagated to objects using them
68 - This makes having globally static structs difficult. Obtaining a `'static` object is possible
71 ```rust
75 - Due to limitations of procedural macros ([rust
76 …e](https://github.com/rust-lang/rust/issues/54727)) and constants used in patterns ([rust issue](h…
79 ```rust
97 - To build an `Oid`, the `from`, `new` or `new_relative` methods can be used.
98 - The `from` method now returns a `Result` (failure can happen if the first components are too
100 - An `oid` macro has also been added in the `der-oid-macro` crate to easily build an `Oid` (see