pub struct ResolvedType {
pub rust_type: String,
pub borrowed_rust_type: Option<String>,
pub copy_cheap: bool,
}Fields§
§rust_type: StringOwned Rust type used for row struct fields, array contents, and any position that takes the value by value. Always present.
borrowed_rust_type: Option<String>Borrowed Rust type used for scalar parameter positions when the
override opted into borrowed mode. None means the position should
use rust_type.
Lifetimes in this string are anonymous (&str, not &'a str); the
codegen runs a lifetime-injection pass when emitting into positions
that require a named lifetime (struct field, where clause).
copy_cheap: boolTrait Implementations§
Source§impl Clone for ResolvedType
impl Clone for ResolvedType
Source§fn clone(&self) -> ResolvedType
fn clone(&self) -> ResolvedType
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 moreAuto Trait Implementations§
impl Freeze for ResolvedType
impl RefUnwindSafe for ResolvedType
impl Send for ResolvedType
impl Sync for ResolvedType
impl Unpin for ResolvedType
impl UnsafeUnpin for ResolvedType
impl UnwindSafe for ResolvedType
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