Struct prql_compiler::ast::GenericTypeParam
pub struct GenericTypeParam {
pub name: String,
pub domain: Vec<Ty>,
}
Fields§
§name: String
Assigned name of this generic type argument.
domain: Vec<Ty>
Possible values of this type argument. For a given instance of this function, the argument must be exactly one of types in the domain.
Trait Implementations§
§impl Clone for GenericTypeParam
impl Clone for GenericTypeParam
§fn clone(&self) -> GenericTypeParam
fn clone(&self) -> GenericTypeParam
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GenericTypeParam
impl Debug for GenericTypeParam
§impl<'de> Deserialize<'de> for GenericTypeParam
impl<'de> Deserialize<'de> for GenericTypeParam
§fn deserialize<__D>(
__deserializer: __D
) -> Result<GenericTypeParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<GenericTypeParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for GenericTypeParam
impl PartialEq for GenericTypeParam
§fn eq(&self, other: &GenericTypeParam) -> bool
fn eq(&self, other: &GenericTypeParam) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for GenericTypeParam
impl Serialize for GenericTypeParam
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GenericTypeParam
Auto Trait Implementations§
impl RefUnwindSafe for GenericTypeParam
impl Send for GenericTypeParam
impl Sync for GenericTypeParam
impl Unpin for GenericTypeParam
impl UnwindSafe for GenericTypeParam
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