pub struct Array<'arr> { /* private fields */ }
Expand description
Implementations§
Source§impl<'arr> Array<'arr>
impl<'arr> Array<'arr>
Sourcepub fn get_item_type(&self, dim: &[pblong]) -> ValueType
pub fn get_item_type(&self, dim: &[pblong]) -> ValueType
获取元素类型
Sourcepub fn is_item_object(&self, _dim: &[pblong]) -> bool
pub fn is_item_object(&self, _dim: &[pblong]) -> bool
判断元素是否为对象类型
Sourcepub fn is_item_null(&self, dim: &[pblong]) -> bool
pub fn is_item_null(&self, dim: &[pblong]) -> bool
判断元素是否为NULL
Sourcepub unsafe fn get_item_int_unchecked(&self, dim: &[pblong]) -> Option<pbint>
pub unsafe fn get_item_int_unchecked(&self, dim: &[pblong]) -> Option<pbint>
Sourcepub fn get_item_uint(&self, dim: &[pblong]) -> Option<pbuint>
pub fn get_item_uint(&self, dim: &[pblong]) -> Option<pbuint>
Sourcepub unsafe fn get_item_uint_unchecked(&self, dim: &[pblong]) -> Option<pbuint>
pub unsafe fn get_item_uint_unchecked(&self, dim: &[pblong]) -> Option<pbuint>
Sourcepub fn get_item_long(&self, dim: &[pblong]) -> Option<pblong>
pub fn get_item_long(&self, dim: &[pblong]) -> Option<pblong>
Sourcepub unsafe fn get_item_long_unchecked(&self, dim: &[pblong]) -> Option<pblong>
pub unsafe fn get_item_long_unchecked(&self, dim: &[pblong]) -> Option<pblong>
Sourcepub fn get_item_ulong(&self, dim: &[pblong]) -> Option<pbulong>
pub fn get_item_ulong(&self, dim: &[pblong]) -> Option<pbulong>
Sourcepub unsafe fn get_item_ulong_unchecked(&self, dim: &[pblong]) -> Option<pbulong>
pub unsafe fn get_item_ulong_unchecked(&self, dim: &[pblong]) -> Option<pbulong>
Sourcepub fn get_item_longlong(&self, dim: &[pblong]) -> Option<pblonglong>
pub fn get_item_longlong(&self, dim: &[pblong]) -> Option<pblonglong>
Sourcepub unsafe fn get_item_longlong_unchecked(
&self,
dim: &[pblong],
) -> Option<pblonglong>
pub unsafe fn get_item_longlong_unchecked( &self, dim: &[pblong], ) -> Option<pblonglong>
Sourcepub fn get_item_real(&self, dim: &[pblong]) -> Option<pbreal>
pub fn get_item_real(&self, dim: &[pblong]) -> Option<pbreal>
Sourcepub unsafe fn get_item_real_unchecked(&self, dim: &[pblong]) -> Option<pbreal>
pub unsafe fn get_item_real_unchecked(&self, dim: &[pblong]) -> Option<pbreal>
Sourcepub fn get_item_double(&self, dim: &[pblong]) -> Option<pbdouble>
pub fn get_item_double(&self, dim: &[pblong]) -> Option<pbdouble>
Sourcepub unsafe fn get_item_double_unchecked(
&self,
dim: &[pblong],
) -> Option<pbdouble>
pub unsafe fn get_item_double_unchecked( &self, dim: &[pblong], ) -> Option<pbdouble>
Sourcepub fn get_item_dec(&self, dim: &[pblong]) -> Option<Decimal>
pub fn get_item_dec(&self, dim: &[pblong]) -> Option<Decimal>
Sourcepub unsafe fn get_item_dec_unchecked(&self, dim: &[pblong]) -> Option<Decimal>
pub unsafe fn get_item_dec_unchecked(&self, dim: &[pblong]) -> Option<Decimal>
Sourcepub unsafe fn get_item_str(&self, dim: &[pblong]) -> Option<&'arr PBStr>
pub unsafe fn get_item_str(&self, dim: &[pblong]) -> Option<&'arr PBStr>
Sourcepub unsafe fn get_item_str_unchecked(
&self,
dim: &[pblong],
) -> Option<&'arr PBStr>
pub unsafe fn get_item_str_unchecked( &self, dim: &[pblong], ) -> Option<&'arr PBStr>
Sourcepub fn get_item_string(&self, dim: &[pblong]) -> Option<PBString>
pub fn get_item_string(&self, dim: &[pblong]) -> Option<PBString>
Sourcepub unsafe fn get_item_string_unchecked(
&self,
dim: &[pblong],
) -> Option<PBString>
pub unsafe fn get_item_string_unchecked( &self, dim: &[pblong], ) -> Option<PBString>
Sourcepub fn get_item_bool(&self, dim: &[pblong]) -> Option<bool>
pub fn get_item_bool(&self, dim: &[pblong]) -> Option<bool>
Sourcepub unsafe fn get_item_bool_unchecked(&self, dim: &[pblong]) -> Option<bool>
pub unsafe fn get_item_bool_unchecked(&self, dim: &[pblong]) -> Option<bool>
Sourcepub fn get_item_char(&self, dim: &[pblong]) -> Option<WideChar>
pub fn get_item_char(&self, dim: &[pblong]) -> Option<WideChar>
Sourcepub unsafe fn get_item_char_unchecked(&self, dim: &[pblong]) -> Option<WideChar>
pub unsafe fn get_item_char_unchecked(&self, dim: &[pblong]) -> Option<WideChar>
Sourcepub fn get_item_byte(&self, dim: &[pblong]) -> Option<pbbyte>
pub fn get_item_byte(&self, dim: &[pblong]) -> Option<pbbyte>
Sourcepub unsafe fn get_item_byte_unchecked(&self, dim: &[pblong]) -> Option<pbbyte>
pub unsafe fn get_item_byte_unchecked(&self, dim: &[pblong]) -> Option<pbbyte>
Sourcepub fn get_item_date(&self, dim: &[pblong]) -> Option<NaiveDate>
pub fn get_item_date(&self, dim: &[pblong]) -> Option<NaiveDate>
Sourcepub unsafe fn get_item_date_unchecked(
&self,
dim: &[pblong],
) -> Option<NaiveDate>
pub unsafe fn get_item_date_unchecked( &self, dim: &[pblong], ) -> Option<NaiveDate>
Sourcepub fn get_item_time(&self, dim: &[pblong]) -> Option<NaiveTime>
pub fn get_item_time(&self, dim: &[pblong]) -> Option<NaiveTime>
Sourcepub unsafe fn get_item_time_unchecked(
&self,
dim: &[pblong],
) -> Option<NaiveTime>
pub unsafe fn get_item_time_unchecked( &self, dim: &[pblong], ) -> Option<NaiveTime>
Sourcepub fn get_item_datetime(&self, dim: &[pblong]) -> Option<NaiveDateTime>
pub fn get_item_datetime(&self, dim: &[pblong]) -> Option<NaiveDateTime>
Sourcepub unsafe fn get_item_datetime_unchecked(
&self,
dim: &[pblong],
) -> Option<NaiveDateTime>
pub unsafe fn get_item_datetime_unchecked( &self, dim: &[pblong], ) -> Option<NaiveDateTime>
Sourcepub fn get_item_blob(&self, dim: &[pblong]) -> Option<&'arr [u8]>
pub fn get_item_blob(&self, dim: &[pblong]) -> Option<&'arr [u8]>
Sourcepub unsafe fn get_item_blob_unchecked(
&self,
dim: &[pblong],
) -> Option<&'arr [u8]>
pub unsafe fn get_item_blob_unchecked( &self, dim: &[pblong], ) -> Option<&'arr [u8]>
Sourcepub fn get_item_object(&self, dim: &[pblong]) -> Option<Object<'arr>>
pub fn get_item_object(&self, dim: &[pblong]) -> Option<Object<'arr>>
Sourcepub unsafe fn get_item_object_unchecked(
&self,
dim: &[pblong],
) -> Option<Object<'arr>>
pub unsafe fn get_item_object_unchecked( &self, dim: &[pblong], ) -> Option<Object<'arr>>
Sourcepub fn get_item_any(&self, dim: &[pblong]) -> Option<Value<'arr>>
pub fn get_item_any(&self, dim: &[pblong]) -> Option<Value<'arr>>
Sourcepub unsafe fn get_item_any_unchecked(
&self,
dim: &[pblong],
) -> Option<Value<'arr>>
pub unsafe fn get_item_any_unchecked( &self, dim: &[pblong], ) -> Option<Value<'arr>>
Sourcepub unsafe fn set_item_int_unchecked(
&mut self,
dim: &[pblong],
value: pbint,
) -> Result<()>
pub unsafe fn set_item_int_unchecked( &mut self, dim: &[pblong], value: pbint, ) -> Result<()>
Sourcepub unsafe fn set_item_uint_unchecked(
&mut self,
dim: &[pblong],
value: pbuint,
) -> Result<()>
pub unsafe fn set_item_uint_unchecked( &mut self, dim: &[pblong], value: pbuint, ) -> Result<()>
Sourcepub unsafe fn set_item_long_unchecked(
&mut self,
dim: &[pblong],
value: pblong,
) -> Result<()>
pub unsafe fn set_item_long_unchecked( &mut self, dim: &[pblong], value: pblong, ) -> Result<()>
Sourcepub unsafe fn set_item_ulong_unchecked(
&mut self,
dim: &[pblong],
value: pbulong,
) -> Result<()>
pub unsafe fn set_item_ulong_unchecked( &mut self, dim: &[pblong], value: pbulong, ) -> Result<()>
Sourcepub fn set_item_longlong(
&mut self,
dim: &[pblong],
value: pblonglong,
) -> Result<()>
pub fn set_item_longlong( &mut self, dim: &[pblong], value: pblonglong, ) -> Result<()>
Sourcepub unsafe fn set_item_longlong_unchecked(
&mut self,
dim: &[pblong],
value: pblonglong,
) -> Result<()>
pub unsafe fn set_item_longlong_unchecked( &mut self, dim: &[pblong], value: pblonglong, ) -> Result<()>
Sourcepub unsafe fn set_item_real_unchecked(
&mut self,
dim: &[pblong],
value: pbreal,
) -> Result<()>
pub unsafe fn set_item_real_unchecked( &mut self, dim: &[pblong], value: pbreal, ) -> Result<()>
Sourcepub unsafe fn set_item_double_unchecked(
&mut self,
dim: &[pblong],
value: pbdouble,
) -> Result<()>
pub unsafe fn set_item_double_unchecked( &mut self, dim: &[pblong], value: pbdouble, ) -> Result<()>
Sourcepub unsafe fn set_item_dec_unchecked(
&mut self,
dim: &[pblong],
value: Decimal,
) -> Result<()>
pub unsafe fn set_item_dec_unchecked( &mut self, dim: &[pblong], value: Decimal, ) -> Result<()>
Sourcepub unsafe fn set_item_str_unchecked(
&mut self,
dim: &[pblong],
value: impl AsPBStr,
) -> Result<()>
pub unsafe fn set_item_str_unchecked( &mut self, dim: &[pblong], value: impl AsPBStr, ) -> Result<()>
Sourcepub unsafe fn set_item_bool_unchecked(
&mut self,
dim: &[pblong],
value: bool,
) -> Result<()>
pub unsafe fn set_item_bool_unchecked( &mut self, dim: &[pblong], value: bool, ) -> Result<()>
Sourcepub unsafe fn set_item_date_unchecked(
&mut self,
dim: &[pblong],
value: NaiveDate,
) -> Result<()>
pub unsafe fn set_item_date_unchecked( &mut self, dim: &[pblong], value: NaiveDate, ) -> Result<()>
Sourcepub unsafe fn set_item_time_unchecked(
&mut self,
dim: &[pblong],
value: NaiveTime,
) -> Result<()>
pub unsafe fn set_item_time_unchecked( &mut self, dim: &[pblong], value: NaiveTime, ) -> Result<()>
Sourcepub fn set_item_datetime(
&mut self,
dim: &[pblong],
value: NaiveDateTime,
) -> Result<()>
pub fn set_item_datetime( &mut self, dim: &[pblong], value: NaiveDateTime, ) -> Result<()>
Sourcepub unsafe fn set_item_datetime_unchecked(
&mut self,
dim: &[pblong],
value: NaiveDateTime,
) -> Result<()>
pub unsafe fn set_item_datetime_unchecked( &mut self, dim: &[pblong], value: NaiveDateTime, ) -> Result<()>
Sourcepub unsafe fn set_item_char_unchecked(
&mut self,
dim: &[pblong],
value: WideChar,
) -> Result<()>
pub unsafe fn set_item_char_unchecked( &mut self, dim: &[pblong], value: WideChar, ) -> Result<()>
Sourcepub unsafe fn set_item_byte_unchecked(
&mut self,
dim: &[pblong],
value: pbbyte,
) -> Result<()>
pub unsafe fn set_item_byte_unchecked( &mut self, dim: &[pblong], value: pbbyte, ) -> Result<()>
Sourcepub unsafe fn set_item_blob_unchecked(
&mut self,
dim: &[pblong],
value: impl AsRef<[u8]>,
) -> Result<()>
pub unsafe fn set_item_blob_unchecked( &mut self, dim: &[pblong], value: impl AsRef<[u8]>, ) -> Result<()>
Sourcepub unsafe fn set_item_object_unchecked(
&mut self,
dim: &[pblong],
value: &Object<'_>,
) -> Result<()>
pub unsafe fn set_item_object_unchecked( &mut self, dim: &[pblong], value: &Object<'_>, ) -> Result<()>
Sourcepub fn set_item_any(&mut self, dim: &[pblong], value: Value<'_>)
pub fn set_item_any(&mut self, dim: &[pblong], value: Value<'_>)
Sourcepub unsafe fn set_item_any_unchecked(
&mut self,
dim: &[pblong],
value: Value<'_>,
)
pub unsafe fn set_item_any_unchecked( &mut self, dim: &[pblong], value: Value<'_>, )
Sourcepub fn set_item_to_null(&mut self, dim: &[pblong])
pub fn set_item_to_null(&mut self, dim: &[pblong])
设置元素为NULL
Sourcepub fn acquire_item_value(&mut self, dim: &[pblong]) -> OwnedValue
pub fn acquire_item_value(&mut self, dim: &[pblong]) -> OwnedValue
拷贝元素的值
Auto Trait Implementations§
impl<'arr> Freeze for Array<'arr>
impl<'arr> RefUnwindSafe for Array<'arr>
impl<'arr> !Send for Array<'arr>
impl<'arr> !Sync for Array<'arr>
impl<'arr> Unpin for Array<'arr>
impl<'arr> UnwindSafe for Array<'arr>
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