Struct ocaml::Str [−][src]
pub struct Str(_);
OCaml String type
Methods
impl Str
[src]
impl Str
pub fn new(n: Size) -> Str
[src]
pub fn new(n: Size) -> Str
Create a new string of a given length
pub fn len(&self) -> Size
[src]
pub fn len(&self) -> Size
String length
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
Access OCaml string as &str
pub fn as_str_mut(&mut self) -> &mut str
[src]
pub fn as_str_mut(&mut self) -> &mut str
Access OCaml string as &mut str
pub fn data(&self) -> &[u8]
[src]
pub fn data(&self) -> &[u8]
Access OCaml string as &[u8]
pub fn data_mut(&mut self) -> &mut [u8]
[src]
pub fn data_mut(&mut self) -> &mut [u8]
Access OCaml string as &mut [u8]