pub struct Override {
pub name: Option<String>,
pub id: Option<u16>,
pub ty: Handle<Type>,
pub init: Option<Handle<Expression>>,
}
Expand description
Pipeline-overridable constant.
Fields§
§name: Option<String>
§id: Option<u16>
Pipeline Constant ID.
ty: Handle<Type>
§init: Option<Handle<Expression>>
The default value of the pipeline-overridable constant.
This Handle
refers to Module::global_expressions
, not
any Function::expressions
arena.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for Override
impl<'arbitrary> Arbitrary<'arbitrary> for Override
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'de> Deserialize<'de> for Override
impl<'de> Deserialize<'de> for Override
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Override
Auto Trait Implementations§
impl Freeze for Override
impl RefUnwindSafe for Override
impl Send for Override
impl Sync for Override
impl Unpin for Override
impl UnwindSafe for Override
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)