Enum databend_common_ast::ast::Window
source · pub enum Window {
WindowReference(WindowRef),
WindowSpec(WindowSpec),
}Variants§
WindowReference(WindowRef)
WindowSpec(WindowSpec)
Implementations§
source§impl Window
impl Window
sourcepub fn as_window_reference_mut(&mut self) -> Option<&mut WindowRef>
pub fn as_window_reference_mut(&mut self) -> Option<&mut WindowRef>
Optionally returns mutable references to the inner fields if this is a Window::WindowReference, otherwise None
sourcepub fn as_window_reference(&self) -> Option<&WindowRef>
pub fn as_window_reference(&self) -> Option<&WindowRef>
Optionally returns references to the inner fields if this is a Window::WindowReference, otherwise None
sourcepub fn into_window_reference(self) -> Result<WindowRef, Self>
pub fn into_window_reference(self) -> Result<WindowRef, Self>
Returns the inner fields if this is a Window::WindowReference, otherwise returns back the enum in the Err case of the result
sourcepub fn as_window_spec_mut(&mut self) -> Option<&mut WindowSpec>
pub fn as_window_spec_mut(&mut self) -> Option<&mut WindowSpec>
Optionally returns mutable references to the inner fields if this is a Window::WindowSpec, otherwise None
sourcepub fn as_window_spec(&self) -> Option<&WindowSpec>
pub fn as_window_spec(&self) -> Option<&WindowSpec>
Optionally returns references to the inner fields if this is a Window::WindowSpec, otherwise None
sourcepub fn into_window_spec(self) -> Result<WindowSpec, Self>
pub fn into_window_spec(self) -> Result<WindowSpec, Self>
Returns the inner fields if this is a Window::WindowSpec, otherwise returns back the enum in the Err case of the result
Trait Implementations§
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
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)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