Skip to main content

choice_native_borrow

Function choice_native_borrow 

Source
fn choice_native_borrow(ty: &Type) -> Option<TokenStream>
Expand description

The native borrow of a choice parameter (#1504): an Either<T, R> choice (under Missing / Option layers too) borrows what R borrows, for input other than character or factor. Read through EitherArmProbe, so an R without TryFromSexp adds no error of its own. None without an Either layer: a choice is owned.