Type Alias repr_offset::get_field_offset::FieldType
source · pub type FieldType<This, FN> = <<This as AssertPublicField<FN>>::This as GetFieldOffset<FN>>::Type;
Expand description
Gets the type of a public field in the GetPubFieldOffset<FN>
impl for This
.
§Example
use repr_offset::{
for_examples::ReprC,
tstr::TS,
FieldType,
};
type This = ReprC<u8, &'static str, Option<usize>, bool>;
let _: FieldType<This, TS!(a)> = 3_u8;
let _: FieldType<This, TS!(b)> = "hello";
let _: FieldType<This, TS!(c)> = Some(5_usize);
let _: FieldType<This, TS!(d)> = false;