struct Helpers {
fields: String,
get: String,
set: String,
no_field: String,
read_only: String,
error_class: String,
every_read: String,
live: String,
fallback: Option<String>,
fallback_names: Option<String>,
}Expand description
The names of the type’s field helpers.
Fields§
§fields: String§get: String§set: String§no_field: String§read_only: StringThe miniextendr_read_only_field refusal (#2268), which the writers
of r_data_accessors = "read_only" call for every field.
error_class: StringThe classes in front of the methods’ own errors (#1899), NULL
without field_error(...).
every_read: StringTRUE under restored(refuse = "every_read") (#1901): it gates the
calls of live.
live: StringThe liveness check of restored(refuse = "every_read") (#1901), a
stub that is never called without it.
fallback: Option<String>The .Call entry of the impl’s fallback = "..." (#2150), for a
name no field has (fallback_c_entries).
fallback_names: Option<String>The .Call entry of its fallback_names = "...", for
.DollarNames().
Implementations§
Source§impl Helpers
impl Helpers
fn new(parsed_impl: &ParsedImpl) -> Self
Sourcefn fallback_read(&self, receiver: &str, name: &str, indent: &str) -> Vec<String>
fn fallback_read(&self, receiver: &str, name: &str, indent: &str) -> Vec<String>
The fallback’s read of name, a name no field has, on the bare
pointer receiver (#2150): the method returns the value the fallback
has for it. The method passes its own frame (environment()) as the
value of None, which the entry hands back untouched, so no value the
fallback computes can be taken for it; the lines after these decide
what None reads. Nothing without a fallback.
Sourcefn field_write(
&self,
parsed_impl: &ParsedImpl,
receiver: &str,
name: &str,
) -> Vec<String>
fn field_write( &self, parsed_impl: &ParsedImpl, receiver: &str, name: &str, ) -> Vec<String>
The last lines of a $<- / [[<- once name is known to be a
field: under r_data_accessors the write through .rdata_set_<Type>
on receiver, checked, and the object x; under r_data_accessors = "read_only" the miniextendr_read_only_field refusal (#2268), on
the method’s call, naming the R class of x.
Sourcefn fallback_names_call(&self, receiver: &str) -> Option<String>
fn fallback_names_call(&self, receiver: &str) -> Option<String>
The call of the impl’s fallback_names entry (#2150) on the bare
pointer receiver, for .DollarNames(); None without one. The
entry gives character(0) for a pointer without its Rust value, so
completion still never raises on a restored object.
Sourcefn dollar_names_with_fallback(value: &str, known: &str) -> Vec<String>
fn dollar_names_with_fallback(value: &str, known: &str) -> Vec<String>
The last lines of a .DollarNames() with a fallback_names (#2150):
value, which reads the fallback’s names (or a list’s own), bound to
.val and checked, then pattern over known and .val, each name
once (a name the fallback shares with a field reads the field).
Sourcefn live_check(&self, receiver: &str, indent: &str) -> Vec<String>
fn live_check(&self, receiver: &str, indent: &str) -> Vec<String>
Under restored(refuse = "every_read") (#1901), the check a read
that reaches no accessor makes first on the bare pointer receiver:
a pointer without its Rust value raises the type’s restored error. A
type without the option skips it (its flag is FALSE).
Sourcefn every_read_check(&self) -> Vec<String>
fn every_read_check(&self) -> Vec<String>
The first check of every S3 reader under restored(refuse = "every_read") (#1901, #1919), on a bare pointer and on a list or
environment receiver: a pointer without its Rust value, a .ptr that
is one, and a list or environment that carries none (the shape an
earlier release may have saved) raise the type’s refusal before the
index is looked at, so a position or an unknown name is refused too.
An atomic receiver was never saved; its field reads refuse it.
Sourcefn dollar_names_guard(&self) -> String
fn dollar_names_guard(&self) -> String
The guard of the S3 .DollarNames(), which reads a list’s or
environment’s own names(): under restored(refuse = "every_read")
a receiver without a live Rust value (#1901), a restored pointer or a
list or environment carrying one or none (#1919), completes to the
field names, which need no value (#2218), since its names() would
refuse. A serde type’s restored pointer gets its value back in the
check first (#2186). .DollarNames() serves completion, so it never
raises. The S4 and env completions read only static names and the
fallback’s, whose entry gives none without a value, so they need no
guard.
Auto Trait Implementations§
impl Forget for Helpers
impl Freeze for Helpers
impl RefUnwindSafe for Helpers
impl Send for Helpers
impl Sync for Helpers
impl Unpin for Helpers
impl UnsafeUnpin for Helpers
impl UnwindSafe for Helpers
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
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
sized_type_properties)[Self]. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 240 bytes