Skip to main content

Module borrow

Module borrow 

Source
Expand description

Native vector borrow metadata and pre-conversion alias checks.

Re-exportsΒ§

use crate::gc_protect::ProtectScope; πŸ”’
use crate::R_xlen_t; πŸ”’
use crate::SEXP; πŸ”’
use crate::SEXPTYPE; πŸ”’
use crate::SexpExt; πŸ”’

StructsΒ§

NativeBorrow
The native vector storage borrowed by a conversion.

EnumsΒ§

BorrowShape πŸ”’

FunctionsΒ§

assert_no_aliases πŸ‘» ⚠
Reject every conflicting argument pair before any Rust borrow is constructed.
assert_or_select πŸ‘» ⚠
The first pass of a generated wrapper’s alias check (#1504).
for_each_conflict πŸ”’ ⚠
Call found(i, j) (i <= j) for every argument pair whose borrows alias, an argument with itself included.
message πŸ”’
The error for a conflict between arguments i and j.
needs_check πŸ‘»
Whether any conversion pair can alias, without inspecting or allocating in R.
visit_leaves πŸ”’ ⚠
Keep each current ALTREP/list element rooted while the other argument is visited. Protection depth follows type nesting, not the number of elements.
visit_nested πŸ”’ ⚠
visit_leaves for a list, a tuple or an Either.