Struct extendr_api::wrapper::altrep::Altrep[][src]

pub struct Altrep { /* fields omitted */ }

Implementations

Safely implement R_altrep_data1, R_altrep_data2. When implementing Altrep classes, this gets the metadata.

Safely (relatively!) implement R_set_altrep_data1, R_set_altrep_data2. When implementing Altrep classes, this sets the metadata.

Safely implement ALTREP_CLASS.

Return true if the ALTREP object has been manifested (copied into memory).

Make an integer ALTREP class that can be used to make vectors.

Make a real ALTREP class that can be used to make vectors.

Make a logical ALTREP class that can be used to make vectors.

Make a raw ALTREP class that can be used to make vectors.

Make a complex ALTREP class that can be used to make vectors.

Make a complex ALTREP class that can be used to make vectors.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

as_*()

Convert a symbol object to a Symbol wrapper. Read more

Convert a CHARSXP object to a Rstr wrapper. Read more

Convert a raw object to a Rstr wrapper. Read more

Convert a language object to a Language wrapper. Read more

Convert a pair list object (LISTSXP) to a Pairlist wrapper. Read more

Convert a list object (VECSXP) to a List wrapper. Read more

Convert an expression object (EXPRSXP) to a Expr wrapper. Read more

Convert an environment object (ENVSXP) to a Env wrapper. Read more

Convert a function object (CLOSXP) to a Function wrapper. Read more

Get a wrapper for a promise.

Formats the value using the given formatter. Read more

Make an robj from a wrapper.

Get a copy of the underlying SEXP. Read more

Get a reference to a Robj for this type.

Get a mutable reference to a Robj for this type.

len() and is_empty()

Get the extended length of the object. Read more

Returns true if the Robj contains no elements. Read more

dollar() etc.

Do the equivalent of x$y Read more

Do the equivalent of x[y] Read more

Do the equivalent of x[[y]] Read more

Do the equivalent of x ~ y Read more

Do the equivalent of x :: y Read more

Do the equivalent of x(a, b, c) Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

find_var() etc.

Return true if this is the null object.

Return true if this is a symbol.

Return true if this is a boolean (logical) vector

Return true if this is a real (f64) vector.

Return true if this is a complex vector.

Return true if this is an expression.

Return true if this is an environment.

Return true if this is an environment.

Return true if this is a string.

Return true if this is an object (ie. has a class attribute).

Return true if this is a S4 object.

Return true if this is an expression.

Get the source ref.

Get the source filename.

Convert to a string vector.

Convert to vectors of many kinds.

Convert a pairlist (LISTSXP) to a vector list (VECSXP).

Convert a vector list (VECSXP) to a pair list (LISTSXP)

Convert a factor to a string vector.

Allocate a matrix object.

Do a deep copy of this object. Note that clone() only adds a reference. Read more

Find a function in an environment ignoring other variables. Read more

Find a variable in an environment. Read more

If this object is a promise, evaluate it, otherwise return the object. Read more

Number of columns of a matrix

Number of rows of a matrix

Allocated an owned object of a certain type.

Return true if two arrays have identical dims.

Return true if this is an array.

Return true if this is factor.

Return true if this is a data frame.

Return true if this is a function or a primitive (CLOSXP, BUILTINSXP or SPECIALSXP)

Return true if this is an integer vector (INTSXP) but not a factor.

Return true if this is a language object (LANGSXP).

Return true if this is NILSXP or LISTSXP.

Return true if this is a matrix.

Return true if this is NILSXP or VECSXP.

Return true if this is INTSXP, LGLSXP or REALSXP but not a factor.

Return true if this is a primitive function BUILTINSXP, SPECIALSXP.

Return true if this is a time series vector (see tsp).

Return true if this is a user defined binop.

Return true if this is a valid string.

Return true if this is a valid string.

Return true if this is a vector.

Return true if this is an atomic vector.

Return true if this is a vector list.

Return true if this is can be made into a vector.

Return true if this is RAWSXP.

Return true if this is CHARSXP.

Returns true if this is an ALTREP object.

Returns true if this is an integer ALTREP object.

Returns true if this is an real ALTREP object.

Returns true if this is an logical ALTREP object.

Returns true if this is a raw ALTREP object.

Returns true if this is an integer ALTREP object.

Generate a text representation of this object.

as_typed_slice_raw() etc.

Get an immutable slice to this object’s data. Read more

Get a mutable slice to this object’s data. Read more

Make a wrapper from a robj if it matches.

The type returned in the event of a conversion error.

rtype() and rany()

Get the type of an R object. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.