[−][src]Struct concordium_std::ContractState
A type representing the constract state bytes.
Trait Implementations
impl Default for ContractState
[src]
pub fn default() -> ContractState
[src]
impl HasContractState<()> for ContractState
[src]
type ContractStateData = ()
pub fn open(_: Self::ContractStateData) -> Self
[src]
pub fn reserve(&mut self, len: u32) -> bool
[src]
pub fn size(&self) -> u32
[src]
pub fn truncate(&mut self, new_size: u32)
[src]
impl Read for ContractState
[src]
pub fn read(&mut self, buf: &mut [u8]) -> ParseResult<usize>
[src]
pub fn read_u64(&mut self) -> ParseResult<u64>
[src]
Read a u32
in little-endian format. This is optimized to not
initialize a dummy value before calling an external function.
pub fn read_u32(&mut self) -> ParseResult<u32>
[src]
Read a u32
in little-endian format. This is optimized to not
initialize a dummy value before calling an external function.
pub fn read_u8(&mut self) -> ParseResult<u8>
[src]
Read a u8
in little-endian format. This is optimized to not
initialize a dummy value before calling an external function.
pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), ParseError>
[src]
pub fn read_u16(&mut self) -> Result<u16, ParseError>
[src]
pub fn read_i64(&mut self) -> Result<i64, ParseError>
[src]
pub fn read_i32(&mut self) -> Result<i32, ParseError>
[src]
pub fn read_i16(&mut self) -> Result<i16, ParseError>
[src]
pub fn read_i8(&mut self) -> Result<i8, ParseError>
[src]
impl Seek for ContractState
[src]
impl Write for ContractState
[src]
type Err = ()
pub fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Err>
[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Err>
[src]
pub fn write_u8(&mut self, x: u8) -> Result<(), Self::Err>
[src]
pub fn write_u16(&mut self, x: u16) -> Result<(), Self::Err>
[src]
pub fn write_u32(&mut self, x: u32) -> Result<(), Self::Err>
[src]
pub fn write_u64(&mut self, x: u64) -> Result<(), Self::Err>
[src]
pub fn write_i8(&mut self, x: i8) -> Result<(), Self::Err>
[src]
pub fn write_i16(&mut self, x: i16) -> Result<(), Self::Err>
[src]
pub fn write_i32(&mut self, x: i32) -> Result<(), Self::Err>
[src]
pub fn write_i64(&mut self, x: i64) -> Result<(), Self::Err>
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContractState
[src]
impl Send for ContractState
[src]
impl Sync for ContractState
[src]
impl Unpin for ContractState
[src]
impl UnwindSafe for ContractState
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<R, T> Get<T> for R where
T: Deserial,
R: Read,
[src]
T: Deserial,
R: Read,
pub fn get(&mut self) -> Result<T, ParseError>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,