pub struct AggregateSetBuilder<'a> { /* private fields */ }Expand description
Collects aggregate overloads into a function set (see
Connection::register_aggregate_function_set).
Implementations§
Source§impl AggregateSetBuilder<'_>
impl AggregateSetBuilder<'_>
Sourcepub fn add<A: VAggregate>(&mut self) -> Result<&mut Self>
pub fn add<A: VAggregate>(&mut self) -> Result<&mut Self>
Adds overload A (with a default shared state) to the set.
§Errors
Returns an error if a logical type cannot be built or the overload conflicts with one already in the set.
Sourcepub fn add_with_state<A: VAggregate>(
&mut self,
shared: A::Shared,
) -> Result<&mut Self>
pub fn add_with_state<A: VAggregate>( &mut self, shared: A::Shared, ) -> Result<&mut Self>
Auto Trait Implementations§
impl<'a> !Send for AggregateSetBuilder<'a>
impl<'a> !Sync for AggregateSetBuilder<'a>
impl<'a> Freeze for AggregateSetBuilder<'a>
impl<'a> RefUnwindSafe for AggregateSetBuilder<'a>
impl<'a> Unpin for AggregateSetBuilder<'a>
impl<'a> UnsafeUnpin for AggregateSetBuilder<'a>
impl<'a> UnwindSafe for AggregateSetBuilder<'a>
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