pub struct ReturnInfo { /* private fields */ }
Expand description
Return metadata for this function.
See ScalarUDFImpl::return_type_from_args
for more information
Implementations§
Source§impl ReturnInfo
impl ReturnInfo
pub fn new(return_type: DataType, nullable: bool) -> Self
pub fn new_nullable(return_type: DataType) -> Self
pub fn new_non_nullable(return_type: DataType) -> Self
pub fn return_type(&self) -> &DataType
pub fn nullable(&self) -> bool
pub fn into_parts(self) -> (DataType, bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReturnInfo
impl RefUnwindSafe for ReturnInfo
impl Send for ReturnInfo
impl Sync for ReturnInfo
impl Unpin for ReturnInfo
impl UnwindSafe for ReturnInfo
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more