Struct tarantool::index::SeqSpec

source ·
pub struct SeqSpec { /* private fields */ }

Implementations§

source§

impl SeqSpec

source

pub fn field(field: impl Into<NumOrStr>) -> Self

source

pub fn id(id: impl Into<NumOrStr>) -> Self

source

pub fn and_field(self, field: impl Into<NumOrStr>) -> Self

source

pub fn and_id(self, id: impl Into<NumOrStr>) -> Self

Trait Implementations§

source§

impl From<SeqSpec> for SequenceOpt

source§

fn from(s: SeqSpec) -> Self

Converts to this type from the input type.
source§

impl<__AsLuaTypeParam> Push<__AsLuaTypeParam> for SeqSpec
where __AsLuaTypeParam: AsLua,

§

type Err = Void

Error that can happen when pushing a value.
source§

fn push_to_lua( &self, __lua: __AsLuaTypeParam ) -> Result<PushGuard<__AsLuaTypeParam>, (Self::Err, __AsLuaTypeParam)>

Pushes the value on the top of the stack. Read more
source§

fn push_no_err(&self, lua: L) -> PushGuard<L>
where Self::Err: Into<Void>,

Same as push_to_lua but can only succeed and is only available if Err implements Into<Void>.
source§

impl Serialize for SeqSpec

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<__AsLuaTypeParam> PushOne<__AsLuaTypeParam> for SeqSpec
where __AsLuaTypeParam: AsLua,

Auto Trait Implementations§

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> 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> Same for T

§

type Output = T

Should always be Self
source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.