#[repr(C)]pub struct RPluginCtx {
pub sysroot: String,
pub sysroot_set: u8,
pub config_json: String,
}Expand description
R-mirror context — the FFI form of PluginCtx. sysroot is
carried as an SString paired with a sysroot_set: u8 bool flag
(kept from v2 — the v2→v3 ABI bump was driven by the stabby
release-mode match_owned bug on RUnit/RReading/RCell, not by
this struct). Migration to stabby::Option<SString> is tracked
in the open-followups doc for the next ABI revision.
Fields§
§sysroot: String§sysroot_set: u8§config_json: StringImplementations§
Trait Implementations§
Source§impl Clone for RPluginCtx
impl Clone for RPluginCtx
Source§fn clone(&self) -> RPluginCtx
fn clone(&self) -> RPluginCtx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RPluginCtx
impl Debug for RPluginCtx
Source§impl Default for RPluginCtx
impl Default for RPluginCtx
Source§fn default() -> RPluginCtx
fn default() -> RPluginCtx
Returns the “default value” for a type. Read more
Source§impl From<&PluginCtx> for RPluginCtx
impl From<&PluginCtx> for RPluginCtx
Source§impl From<&RPluginCtx> for PluginCtx
impl From<&RPluginCtx> for PluginCtx
Source§fn from(r: &RPluginCtx) -> Self
fn from(r: &RPluginCtx) -> Self
Converts to this type from the input type.
Source§impl IStable for RPluginCtx
impl IStable for RPluginCtx
Source§const REPORT: &'static TypeReport
const REPORT: &'static TypeReport
A compile-time generated report of the fields of the type, allowing for compatibility inspection.
Source§const ID: u64
const ID: u64
A stable (and ideally unique) identifier for the type. Often generated using
crate::report::gen_id, but can be manually set.Source§type ForbiddenValues = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::ForbiddenValues
type ForbiddenValues = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::ForbiddenValues
The values that the annotated type cannot occupy.
Source§type UnusedBits = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::UnusedBits
type UnusedBits = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::UnusedBits
The padding bits in the annotated types
Source§type Size = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::Size
type Size = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::Size
The size of the annotated type in bytes.
Source§type Align = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::Align
type Align = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::Align
The alignment of the annotated type in bytes.
Source§type HasExactlyOneNiche = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::HasExactlyOneNiche
type HasExactlyOneNiche = <Struct<FieldPair<FieldPair<String, u8>, String>> as IStable>::HasExactlyOneNiche
Allows the detection of whether or not
core::option::Options are stable: Read moreAuto Trait Implementations§
impl Freeze for RPluginCtx
impl RefUnwindSafe for RPluginCtx
impl Send for RPluginCtx
impl Sync for RPluginCtx
impl Unpin for RPluginCtx
impl UnsafeUnpin for RPluginCtx
impl UnwindSafe for RPluginCtx
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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