pub struct SpecializationMap {
pub data: Vec<u8>,
pub entries: Vec<SpecializationMapEntry>,
}Expand description
Describes specialized constant values.
Fields§
§data: Vec<u8>A buffer of data which holds the constant values.
entries: Vec<SpecializationMapEntry>Mapping of locations within the constant value data which describe each individual constant.
Implementations§
Source§impl SpecializationMap
impl SpecializationMap
Sourcepub fn constant(self, constant_id: u32, offset: u32, size: usize) -> Self
pub fn constant(self, constant_id: u32, offset: u32, size: usize) -> Self
Adds a single constant offset and size to the map and returns the map for further building.
Sourcepub fn set_constant(&mut self, constant_id: u32, offset: u32, size: usize)
pub fn set_constant(&mut self, constant_id: u32, offset: u32, size: usize)
Adds a single constant offset and size to the map and returns the map for further building.
Trait Implementations§
Source§impl Clone for SpecializationMap
impl Clone for SpecializationMap
Source§fn clone(&self) -> SpecializationMap
fn clone(&self) -> SpecializationMap
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 SpecializationMap
impl Debug for SpecializationMap
Source§impl Default for SpecializationMap
impl Default for SpecializationMap
Source§fn default() -> SpecializationMap
fn default() -> SpecializationMap
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a SpecializationMap> for SpecializationInfo<'a>
impl<'a> From<&'a SpecializationMap> for SpecializationInfo<'a>
Source§fn from(value: &'a SpecializationMap) -> Self
fn from(value: &'a SpecializationMap) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SpecializationMap
impl RefUnwindSafe for SpecializationMap
impl Send for SpecializationMap
impl Sync for SpecializationMap
impl Unpin for SpecializationMap
impl UnsafeUnpin for SpecializationMap
impl UnwindSafe for SpecializationMap
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