pub struct ArgumentHandle<'a, 'b> { /* private fields */ }Implementations§
Source§impl<'a, 'b> ArgumentHandle<'a, 'b>
impl<'a, 'b> ArgumentHandle<'a, 'b>
pub fn value(&self) -> Result<CowValue<'_>, ExcelError>
pub fn range(&self) -> Result<Box<dyn Range>, ExcelError>
Sourcepub fn range_view(&self) -> Result<RangeView<'_>, ExcelError>
pub fn range_view(&self) -> Result<RangeView<'_>, ExcelError>
Resolve as a RangeView (Phase 2 API). Only supports reference arguments.
pub fn value_or_range(&self) -> Result<EvaluatedArg<'_>, ExcelError>
Sourcepub fn lazy_values_owned(
&'a self,
) -> Result<Box<dyn Iterator<Item = LiteralValue> + 'a>, ExcelError>
pub fn lazy_values_owned( &'a self, ) -> Result<Box<dyn Iterator<Item = LiteralValue> + 'a>, ExcelError>
Lazily iterate values for this argument in row-major expansion order.
- Reference: stream via RangeView (row-major)
- Array literal: evaluate each element lazily per cell
- Scalar/other expressions: a single value
pub fn ast(&self) -> &'a ASTNode
Sourcepub fn as_reference(&self) -> Result<&'a ReferenceType, ExcelError>
pub fn as_reference(&self) -> Result<&'a ReferenceType, ExcelError>
Returns the raw reference from the AST when this argument is a reference. This does not evaluate the reference or materialize values.
Sourcepub fn as_reference_or_eval(&self) -> Result<ReferenceType, ExcelError>
pub fn as_reference_or_eval(&self) -> Result<ReferenceType, ExcelError>
Returns a ReferenceType if this argument is a reference or a function that
can yield a reference via eval_reference. Materializes no values.
pub fn matches_kind(&self, k: ArgKind) -> Result<bool, ExcelError>
Auto Trait Implementations§
impl<'a, 'b> Freeze for ArgumentHandle<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for ArgumentHandle<'a, 'b>
impl<'a, 'b> Send for ArgumentHandle<'a, 'b>
impl<'a, 'b> Sync for ArgumentHandle<'a, 'b>
impl<'a, 'b> Unpin for ArgumentHandle<'a, 'b>
impl<'a, 'b> !UnwindSafe for ArgumentHandle<'a, 'b>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more