pub struct BCS {
pub bytes: MoveVec<u8>,
}
Expand description
A helper struct that saves resources on operations. For better
vector performance, it stores reversed bytes of the BCS and
enables use of vector::pop_back
.
Fields§
§bytes: MoveVec<u8>
Implementations§
Source§impl BCS
impl BCS
pub fn move_instance(self) -> MoveInstance<Self>
pub fn type_() -> BCSTypeTag
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BCS
impl<'de> Deserialize<'de> for BCS
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MoveStruct for BCS
impl MoveStruct for BCS
type StructTag = BCSTypeTag
Source§impl MoveType for BCS
impl MoveType for BCS
Source§impl StaticModule for BCS
impl StaticModule for BCS
fn module() -> Identifier
Source§impl StaticName for BCS
impl StaticName for BCS
fn name() -> Identifier
Source§impl StaticTypeParams for BCS
impl StaticTypeParams for BCS
fn type_params() -> Vec<TypeTag>
impl Eq for BCS
impl StructuralPartialEq for BCS
Auto Trait Implementations§
impl Freeze for BCS
impl RefUnwindSafe for BCS
impl Send for BCS
impl Sync for BCS
impl Unpin for BCS
impl UnwindSafe for BCS
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