Expand description
Compile-time fixed-capacity string variant that is shared-memory compatible. Relocatable (inter-process shared memory compatible) string implementations.
The StaticString has a fixed capacity defined at compile time.
It is memory-layout compatible to the C++ counterpart in the iceoryx2-bb-container C++ library
and can be used for zero-copy cross-language communication.
§Example
use iceoryx2_bb_container::string::*;
const STRING_CAPACITY: usize = 123;
let mut some_string = StaticString::<STRING_CAPACITY>::new();
some_string.push_bytes(b"hello").unwrap();
some_string.push('!' as u8).unwrap();
some_string.push('!' as u8).unwrap();
println!("removed byte {:?}", some_string.remove(0));Structs§
- Static
String - Variant of the
Stringthat has a compile-time fixed capacity and is shared-memory compatible. - String
Memory Layout Metrics