pub struct ConstantOfShapeAttrs<'a> {
pub _tab: Table<'a>,
}
Fields§
§_tab: Table<'a>
Implementations§
Source§impl<'a> ConstantOfShapeAttrs<'a>
impl<'a> ConstantOfShapeAttrs<'a>
pub const VT_VALUE_TYPE: VOffsetT = 4u16
pub const VT_VALUE: VOffsetT = 6u16
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args ConstantOfShapeAttrsArgs, ) -> WIPOffset<ConstantOfShapeAttrs<'bldr>>
pub fn value_type(&self) -> Scalar
pub fn value(&self) -> Table<'a>
pub fn value_as_int_scalar(&self) -> Option<IntScalar<'a>>
pub fn value_as_float_scalar(&self) -> Option<FloatScalar<'a>>
Trait Implementations§
Source§impl<'a> Clone for ConstantOfShapeAttrs<'a>
impl<'a> Clone for ConstantOfShapeAttrs<'a>
Source§fn clone(&self) -> ConstantOfShapeAttrs<'a>
fn clone(&self) -> ConstantOfShapeAttrs<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConstantOfShapeAttrs<'_>
impl Debug for ConstantOfShapeAttrs<'_>
Source§impl<'a> Follow<'a> for ConstantOfShapeAttrs<'a>
impl<'a> Follow<'a> for ConstantOfShapeAttrs<'a>
Source§impl<'a> PartialEq for ConstantOfShapeAttrs<'a>
impl<'a> PartialEq for ConstantOfShapeAttrs<'a>
Source§impl Verifiable for ConstantOfShapeAttrs<'_>
impl Verifiable for ConstantOfShapeAttrs<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for ConstantOfShapeAttrs<'a>
impl<'a> StructuralPartialEq for ConstantOfShapeAttrs<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConstantOfShapeAttrs<'a>
impl<'a> RefUnwindSafe for ConstantOfShapeAttrs<'a>
impl<'a> Send for ConstantOfShapeAttrs<'a>
impl<'a> Sync for ConstantOfShapeAttrs<'a>
impl<'a> Unpin for ConstantOfShapeAttrs<'a>
impl<'a> UnwindSafe for ConstantOfShapeAttrs<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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