pub struct UnaryFunc {
pub this: Expression,
pub original_name: Option<String>,
}Expand description
Generic unary function (takes a single argument)
Fields§
§this: Expression§original_name: Option<String>Original function name for round-trip preservation (e.g., CHAR_LENGTH vs LENGTH)
Implementations§
Source§impl UnaryFunc
impl UnaryFunc
Sourcepub fn new(this: Expression) -> Self
pub fn new(this: Expression) -> Self
Create a new UnaryFunc with no original_name
Sourcepub fn with_name(this: Expression, name: String) -> Self
pub fn with_name(this: Expression, name: String) -> Self
Create a new UnaryFunc with an original name for round-trip preservation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnaryFunc
impl<'de> Deserialize<'de> for UnaryFunc
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 UnaryFunc
Auto Trait Implementations§
impl Freeze for UnaryFunc
impl RefUnwindSafe for UnaryFunc
impl Send for UnaryFunc
impl Sync for UnaryFunc
impl Unpin for UnaryFunc
impl UnwindSafe for UnaryFunc
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