Skip to main content

Module strvec

Module strvec 

Source
Expand description

Thin wrapper around R character vector (STRSXP).

Provides safe construction and element insertion for string vectors.

Re-exportsยง

use std::borrow::Cow; ๐Ÿ”’
use crate::SEXPTYPE::STRSXP; ๐Ÿ”’
use crate::from_r::SexpError; ๐Ÿ”’
use crate::from_r::SexpTypeError; ๐Ÿ”’
use crate::from_r::TryFromSexp; ๐Ÿ”’
use crate::from_r::charsxp_to_borrowed_str_or_panic; ๐Ÿ”’
use crate::from_r::charsxp_to_cow_or_panic; ๐Ÿ”’
use crate::gc_protect::ChildRoots; ๐Ÿ”’
use crate::gc_protect::OwnedProtect; ๐Ÿ”’
use crate::gc_protect::ProtectScope; ๐Ÿ”’
use crate::into_r::IntoR; ๐Ÿ”’
use crate::Preserved; ๐Ÿ”’
use crate::SEXP; ๐Ÿ”’
use crate::SexpExt; ๐Ÿ”’

Structsยง

ProtectedStrVec
GC-protected view over an R character vector (STRSXP).
ProtectedStrVecCowIter
Encoding-safe iterator over ProtectedStrVec.
ProtectedStrVecIter
Iterator over ProtectedStrVec with lifetime tied to the protection guard.
StrVec
Borrowed view over an R character vector (STRSXP).
StrVecBuilder
Builder for constructing string vectors with efficient protection management.
StrVecCowIter
Iterator over StrVec elements as Option<Cow<'a, str>>.
StrVecIter
Iterator over StrVec elements as Option<&str> (leashed to 'a).