Skip to main content

Sheets

Struct Sheets 

Source
pub struct Sheets { /* private fields */ }
Expand description

The sheets backend’s state: workbooks, views, and the artifacts its views show.

Implementations§

Source§

impl Sheets

Source

pub fn tool( &mut self, name: &str, args: &Value, workspace: &str, chat: Option<&str>, ) -> Result<Value, String>

A tool call: its result, or the error sentence.

Trait Implementations§

Source§

impl Default for Sheets

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl NativeBackend for Sheets

Source§

fn event(&mut self, ev: &Value, out: &Outbox)

An event (event: client, view, web, or a subscribed engine event).
Source§

fn request( &mut self, method: &str, params: &Value, _out: &Outbox, ) -> Result<Value, String>

A request (method: tool, view, hook, web): its reply’s result, or the error text. Messages sent through out meanwhile reach byob before the reply.
Source§

fn after_request(&mut self, method: &str, out: &Outbox)

After the reply to a request went out (e.g. draw views again after a tool call).
Source§

fn shutdown(&mut self)

shutdown: byob stops it (reload, switched off, removed); nothing more comes.
Source§

fn init(&mut self, init: &Value, out: &Outbox)

The init message: first after every (re)start (restart counts earlier starts).

Auto Trait Implementations§

§

impl Forget for Sheets

§

impl Freeze for Sheets

§

impl Move for Sheets

§

impl RefUnwindSafe for Sheets

§

impl Send for Sheets
where NodeRef<Owned, String, Entry, LeafOrInternal>: Send, BoxRaw<(String, Entry)>: Send, RawVecInner: Send, BoxRaw<Chunk>: Send, RawTable<((i32, i32), Link)>: Send, RawTable<(String, Table)>: Send, Arc<Node>: Send, RawTable<((Option<u32>, String), ParsedDefinedName)>: Send, RawTable<(String, usize)>: Send, &'static Locale: Send, &'static Language: Send, RawTable<(usize, CalcResult)>: Send, RawTable<(usize, (Vec<NamedVariable>, Node))>: Send, RawTable<((u32, i32, i32), CellState)>: Send, RawTable<((u32, i32, i32), ())>: Send, RawTable<((u32, i32, i32), SeenRecord)>: Send, RawTable<((u32, i32, i32), Vec<CfCellResult>)>: Send, RawTable<((u32, i32, i32), Link)>: Send, RawTable<(String, i32)>: Send, NodeRef<Owned, String, ViewState, LeafOrInternal>: Send, BoxRaw<(String, ViewState)>: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send,

§

impl Sync for Sheets
where NodeRef<Owned, String, Entry, LeafOrInternal>: Sync, BoxRaw<(String, Entry)>: Sync, RawVecInner: Sync, BoxRaw<Chunk>: Sync, RawTable<((i32, i32), Link)>: Sync, RawTable<(String, Table)>: Sync, Arc<Node>: Sync, RawTable<((Option<u32>, String), ParsedDefinedName)>: Sync, RawTable<(String, usize)>: Sync, RawTable<(usize, CalcResult)>: Sync, RawTable<(usize, (Vec<NamedVariable>, Node))>: Sync, RawTable<((u32, i32, i32), CellState)>: Sync, RawTable<((u32, i32, i32), ())>: Sync, RawTable<((u32, i32, i32), SeenRecord)>: Sync, RawTable<((u32, i32, i32), Vec<CfCellResult>)>: Sync, RawTable<((u32, i32, i32), Link)>: Sync, RawTable<(String, i32)>: Sync, NodeRef<Owned, String, ViewState, LeafOrInternal>: Sync, BoxRaw<(String, ViewState)>: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync,

§

impl Unpin for Sheets
where *const LeafNode<String, Entry> is !null: Unpin, Box<(String, Entry)>: Unpin, *const u8 is !null: Unpin, Box<Chunk>: Unpin, Arc<Node>: Unpin, Box<Node>: Unpin, &'static Locale: Unpin, &'static Language: Unpin, *const LeafNode<String, ViewState> is !null: Unpin, Box<(String, ViewState)>: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin,

§

impl UnsafeUnpin for Sheets

§

impl UnwindSafe for Sheets

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.