List of all items
Structs
Describes a location in storage.
+List of all items
Structs
Traits
Trait for the addition of two values.
Trait to bitwise AND two values of the same type.
Trait to bitwise OR two values of the same type.
diff --git a/static/sway/core/codec/fn.abi_decode.html b/static/sway/core/codec/fn.abi_decode.html index 805fe5df..df2854ac 100644 --- a/static/sway/core/codec/fn.abi_decode.html +++ b/static/sway/core/codec/fn.abi_decode.html @@ -1,4 +1,4 @@ -Function core::codec::abi_decode
pub fn abi_decode<T>(data: raw_slice) -> T
+abi_decode in codec - Sway Function core::codec::abi_decode
pub fn abi_decode<T>(data: raw_slice) -> T
where
T: AbiDecode,
Expand description
\ No newline at end of file
diff --git a/static/sway/core/codec/fn.abi_decode_in_place.html b/static/sway/core/codec/fn.abi_decode_in_place.html
index e330c8f2..fa3515c0 100644
--- a/static/sway/core/codec/fn.abi_decode_in_place.html
+++ b/static/sway/core/codec/fn.abi_decode_in_place.html
@@ -1,4 +1,4 @@
-abi_decode_in_place in codec - Sway Function core::codec::abi_decode_in_place
pub fn abi_decode_in_place<T>(ptr: raw_ptr, len: u64, target: raw_ptr)
+abi_decode_in_place in codec - Sway Function core::codec::abi_decode_in_place
pub fn abi_decode_in_place<T>(ptr: raw_ptr, len: u64, target: raw_ptr)
where
T: AbiDecode,
Expand description
\ No newline at end of file
diff --git a/static/sway/core/codec/fn.contract_call.html b/static/sway/core/codec/fn.contract_call.html
index a434e8f5..991f4edf 100644
--- a/static/sway/core/codec/fn.contract_call.html
+++ b/static/sway/core/codec/fn.contract_call.html
@@ -1,4 +1,4 @@
-contract_call in codec - Sway Function core::codec::contract_call
pub fn contract_call<T, TArgs>(
+contract_call in codec - Sway Function core::codec::contract_call
pub fn contract_call<T, TArgs>(
contract_id: b256,
method_name: str,
args: TArgs,
diff --git a/static/sway/core/codec/fn.decode_first_param.html b/static/sway/core/codec/fn.decode_first_param.html
index 228a56b2..4d2c3436 100644
--- a/static/sway/core/codec/fn.decode_first_param.html
+++ b/static/sway/core/codec/fn.decode_first_param.html
@@ -1,4 +1,4 @@
-decode_first_param in codec - Sway Function core::codec::decode_first_param
pub fn decode_first_param<T>() -> T
+decode_first_param in codec - Sway Function core::codec::decode_first_param
pub fn decode_first_param<T>() -> T
where
T: AbiDecode,
\ No newline at end of file
diff --git a/static/sway/core/codec/fn.decode_predicate_data.html b/static/sway/core/codec/fn.decode_predicate_data.html
index ccdd9364..9001c99a 100644
--- a/static/sway/core/codec/fn.decode_predicate_data.html
+++ b/static/sway/core/codec/fn.decode_predicate_data.html
@@ -1,4 +1,4 @@
-decode_predicate_data in codec - Sway Function core::codec::decode_predicate_data
pub fn decode_predicate_data<T>() -> T
+decode_predicate_data in codec - Sway Function core::codec::decode_predicate_data
pub fn decode_predicate_data<T>() -> T
where
T: AbiDecode,
\ No newline at end of file
diff --git a/static/sway/core/codec/fn.decode_predicate_data_by_index.html b/static/sway/core/codec/fn.decode_predicate_data_by_index.html
index 19fa8964..83aa14a2 100644
--- a/static/sway/core/codec/fn.decode_predicate_data_by_index.html
+++ b/static/sway/core/codec/fn.decode_predicate_data_by_index.html
@@ -1,4 +1,4 @@
-decode_predicate_data_by_index in codec - Sway Function core::codec::decode_predicate_data_by_index
pub fn decode_predicate_data_by_index<T>(index: u64) -> T
+decode_predicate_data_by_index in codec - Sway Function core::codec::decode_predicate_data_by_index
pub fn decode_predicate_data_by_index<T>(index: u64) -> T
where
T: AbiDecode,
\ No newline at end of file
diff --git a/static/sway/core/codec/fn.decode_script_data.html b/static/sway/core/codec/fn.decode_script_data.html
index d7ebabac..08a39f30 100644
--- a/static/sway/core/codec/fn.decode_script_data.html
+++ b/static/sway/core/codec/fn.decode_script_data.html
@@ -1,4 +1,4 @@
-decode_script_data in codec - Sway Function core::codec::decode_script_data
pub fn decode_script_data<T>() -> T
+decode_script_data in codec - Sway Function core::codec::decode_script_data
pub fn decode_script_data<T>() -> T
where
T: AbiDecode,
\ No newline at end of file
diff --git a/static/sway/core/codec/fn.decode_second_param.html b/static/sway/core/codec/fn.decode_second_param.html
index 0c05457e..41040054 100644
--- a/static/sway/core/codec/fn.decode_second_param.html
+++ b/static/sway/core/codec/fn.decode_second_param.html
@@ -1,4 +1,4 @@
-decode_second_param in codec - Sway Function core::codec::decode_second_param
pub fn decode_second_param<T>() -> T
+decode_second_param in codec - Sway Function core::codec::decode_second_param
pub fn decode_second_param<T>() -> T
where
T: AbiDecode,
\ No newline at end of file
diff --git a/static/sway/core/codec/fn.encode.html b/static/sway/core/codec/fn.encode.html
index 01d26698..2392cdf0 100644
--- a/static/sway/core/codec/fn.encode.html
+++ b/static/sway/core/codec/fn.encode.html
@@ -1,4 +1,4 @@
-encode in codec - Sway pub fn encode<T>(item: T) -> raw_slice
+encode in codec - Sway
\ No newline at end of file
diff --git a/static/sway/core/codec/index.html b/static/sway/core/codec/index.html
index 5826184d..eae8ae2e 100644
--- a/static/sway/core/codec/index.html
+++ b/static/sway/core/codec/index.html
@@ -1 +1 @@
-codec in core - Sway
\ No newline at end of file
+codec in core - Sway
\ No newline at end of file
diff --git a/static/sway/core/codec/struct.Buffer.html b/static/sway/core/codec/struct.Buffer.html
index b6063d77..2298dcfc 100644
--- a/static/sway/core/codec/struct.Buffer.html
+++ b/static/sway/core/codec/struct.Buffer.html
@@ -1,3 +1,3 @@
-Buffer in codec - Sway pub struct Buffer {
+Buffer in codec - Sway pub struct Buffer {
buffer: (raw_ptr, u64, u64), // ptr, capacity, size
-}
Fields
buffer: (raw_ptr, u64, u64)
Implementations
fn new() -> Self
Trait Implementations
impl AsRawSlice for Buffer
fn as_raw_slice(self) -> raw_slice
\ No newline at end of file
+}
Fields
buffer: (raw_ptr, u64, u64)
Implementations
fn new() -> Self
fn with_capacity(cap: u64) -> Self
Trait Implementations
impl AsRawSlice for Buffer
fn as_raw_slice(self) -> raw_slice
\ No newline at end of file
diff --git a/static/sway/core/codec/struct.BufferReader.html b/static/sway/core/codec/struct.BufferReader.html
index 416a30bd..50b310cd 100644
--- a/static/sway/core/codec/struct.BufferReader.html
+++ b/static/sway/core/codec/struct.BufferReader.html
@@ -1,3 +1,3 @@
-BufferReader in codec - Sway Struct core::codec::BufferReader
pub struct BufferReader {
+BufferReader in codec - Sway Struct core::codec::BufferReader
pub struct BufferReader {
ptr: raw_ptr,
}
Fields
ptr: raw_ptr
Implementations
fn from_parts(ptr: raw_ptr, _len: u64) -> BufferReader
fn from_first_parameter() -> BufferReader
fn from_second_parameter() -> BufferReader
fn from_script_data() -> BufferReader
fn from_predicate_data() -> BufferReader
fn from_predicate_data_by_index(
predicate_index: u64,
) -> BufferReader
fn read_8_bytes(refmut self) -> T
fn read_32_bytes(refmut self) -> T
fn read_bytes(refmut self, count: u64) -> raw_slice
fn read(refmut self) -> T
fn decode(refmut self) -> T
\ No newline at end of file
diff --git a/static/sway/core/codec/trait.AbiDecode.html b/static/sway/core/codec/trait.AbiDecode.html
index 11279f37..0ca53213 100644
--- a/static/sway/core/codec/trait.AbiDecode.html
+++ b/static/sway/core/codec/trait.AbiDecode.html
@@ -1,3 +1,3 @@
-AbiDecode in codec - Sway pub trait AbiDecode {
+AbiDecode in codec - Sway pub trait AbiDecode {
fn abi_decode(ref mut buffer: BufferReader) -> Self;
}
Required Methods
fn abi_decode(refmut buffer: BufferReader) -> Self
\ No newline at end of file
diff --git a/static/sway/core/codec/trait.AbiEncode.html b/static/sway/core/codec/trait.AbiEncode.html
index 5a6a83e2..abaeae02 100644
--- a/static/sway/core/codec/trait.AbiEncode.html
+++ b/static/sway/core/codec/trait.AbiEncode.html
@@ -1,3 +1,3 @@
-AbiEncode in codec - Sway pub trait AbiEncode {
+AbiEncode in codec - Sway pub trait AbiEncode {
fn abi_encode(self, buffer: Buffer) -> Buffer;
}
Required Methods
fn abi_encode(self, buffer: Buffer) -> Buffer
\ No newline at end of file
diff --git a/static/sway/core/index.html b/static/sway/core/index.html
index ddf6c923..8584d88f 100644
--- a/static/sway/core/index.html
+++ b/static/sway/core/index.html
@@ -1 +1 @@
-core in core - Sway Library core
Modules
Primitives
256 bits (32 bytes), i.e. a hashBoolean true or falsestring slicefixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length string16-bit unsigned integer256-bit unsigned integer32-bit unsigned integer64-bit unsigned integer8-bit unsigned integer
\ No newline at end of file
+core in core - Sway Library core
Modules
Primitives
256 bits (32 bytes), i.e. a hashBoolean true or falsestring slicefixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length stringfixed-length string16-bit unsigned integer256-bit unsigned integer32-bit unsigned integer64-bit unsigned integer8-bit unsigned integer
\ No newline at end of file
diff --git a/static/sway/core/ops/fn.ok_str_eq.html b/static/sway/core/ops/fn.ok_str_eq.html
index 48ac23d8..1e999b17 100644
--- a/static/sway/core/ops/fn.ok_str_eq.html
+++ b/static/sway/core/ops/fn.ok_str_eq.html
@@ -1 +1 @@
-ok_str_eq in ops - Sway
\ No newline at end of file
+ok_str_eq in ops - Sway
\ No newline at end of file
diff --git a/static/sway/core/ops/index.html b/static/sway/core/ops/index.html
index 7677fe61..0069a7df 100644
--- a/static/sway/core/ops/index.html
+++ b/static/sway/core/ops/index.html
@@ -1,4 +1,4 @@
-ops in core - Sway Traits
Trait for the addition of two values.
+ops in core - Sway Traits
Trait for the addition of two values.
Trait to bitwise AND two values of the same type.
Trait to bitwise OR two values of the same type.
Trait to bitwise XOR two values of the same type.
diff --git a/static/sway/core/ops/trait.Add.html b/static/sway/core/ops/trait.Add.html
index 42afe5ba..8a9c2082 100644
--- a/static/sway/core/ops/trait.Add.html
+++ b/static/sway/core/ops/trait.Add.html
@@ -1,4 +1,4 @@
-Add in ops - Sway pub trait Add {
+Add in ops - Sway pub trait Add {
/// Add two values of the same type.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.BitwiseAnd.html b/static/sway/core/ops/trait.BitwiseAnd.html
index 29fc134c..9d670449 100644
--- a/static/sway/core/ops/trait.BitwiseAnd.html
+++ b/static/sway/core/ops/trait.BitwiseAnd.html
@@ -1,4 +1,4 @@
-BitwiseAnd in ops - Sway Trait core::ops::BitwiseAnd
pub trait BitwiseAnd {
+BitwiseAnd in ops - Sway Trait core::ops::BitwiseAnd
pub trait BitwiseAnd {
/// Bitwise AND two values of the same type.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.BitwiseOr.html b/static/sway/core/ops/trait.BitwiseOr.html
index 7122cfa2..0fd0e8d5 100644
--- a/static/sway/core/ops/trait.BitwiseOr.html
+++ b/static/sway/core/ops/trait.BitwiseOr.html
@@ -1,4 +1,4 @@
-BitwiseOr in ops - Sway pub trait BitwiseOr {
+BitwiseOr in ops - Sway pub trait BitwiseOr {
/// Bitwise OR two values of the same type.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.BitwiseXor.html b/static/sway/core/ops/trait.BitwiseXor.html
index 3e41a860..394b1cab 100644
--- a/static/sway/core/ops/trait.BitwiseXor.html
+++ b/static/sway/core/ops/trait.BitwiseXor.html
@@ -1,4 +1,4 @@
-BitwiseXor in ops - Sway Trait core::ops::BitwiseXor
pub trait BitwiseXor {
+BitwiseXor in ops - Sway Trait core::ops::BitwiseXor
pub trait BitwiseXor {
/// Bitwise XOR two values of the same type.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.Divide.html b/static/sway/core/ops/trait.Divide.html
index 8cc60f52..fcec9415 100644
--- a/static/sway/core/ops/trait.Divide.html
+++ b/static/sway/core/ops/trait.Divide.html
@@ -1,4 +1,4 @@
-Divide in ops - Sway pub trait Divide {
+Divide in ops - Sway pub trait Divide {
/// Divide two values of the same type.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.Eq.html b/static/sway/core/ops/trait.Eq.html
index f3406eb7..028ca426 100644
--- a/static/sway/core/ops/trait.Eq.html
+++ b/static/sway/core/ops/trait.Eq.html
@@ -1,4 +1,4 @@
-Eq in ops - Sway pub trait Eq {
+Eq in ops - Sway pub trait Eq {
/// Evaluates if two values of the same type are equal.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.Mod.html b/static/sway/core/ops/trait.Mod.html
index 1464bc7c..3bbce6bc 100644
--- a/static/sway/core/ops/trait.Mod.html
+++ b/static/sway/core/ops/trait.Mod.html
@@ -1,4 +1,4 @@
-Mod in ops - Sway pub trait Mod {
+Mod in ops - Sway pub trait Mod {
/// Modulo two values of the same type.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.Multiply.html b/static/sway/core/ops/trait.Multiply.html
index 2fd22cb3..2f588a82 100644
--- a/static/sway/core/ops/trait.Multiply.html
+++ b/static/sway/core/ops/trait.Multiply.html
@@ -1,4 +1,4 @@
-Multiply in ops - Sway pub trait Multiply {
+Multiply in ops - Sway pub trait Multiply {
/// Multiply two values of the same type.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.Not.html b/static/sway/core/ops/trait.Not.html
index 88e08342..e2c73c27 100644
--- a/static/sway/core/ops/trait.Not.html
+++ b/static/sway/core/ops/trait.Not.html
@@ -1,4 +1,4 @@
-Not in ops - Sway pub trait Not {
+Not in ops - Sway pub trait Not {
/// Inverts the value of the type.
///
/// # Returns
diff --git a/static/sway/core/ops/trait.Ord.html b/static/sway/core/ops/trait.Ord.html
index 64e8830c..50cc5a4b 100644
--- a/static/sway/core/ops/trait.Ord.html
+++ b/static/sway/core/ops/trait.Ord.html
@@ -1,4 +1,4 @@
-Ord in ops - Sway pub trait Ord {
+Ord in ops - Sway pub trait Ord {
/// Evaluates if one value of the same type is greater than another.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.Shift.html b/static/sway/core/ops/trait.Shift.html
index 8c18c0d2..90ee1c5f 100644
--- a/static/sway/core/ops/trait.Shift.html
+++ b/static/sway/core/ops/trait.Shift.html
@@ -1,4 +1,4 @@
-Shift in ops - Sway pub trait Shift {
+Shift in ops - Sway pub trait Shift {
/// Bit shift left by an amount.
///
/// # Arguments
diff --git a/static/sway/core/ops/trait.Subtract.html b/static/sway/core/ops/trait.Subtract.html
index 81bb315f..885c3de0 100644
--- a/static/sway/core/ops/trait.Subtract.html
+++ b/static/sway/core/ops/trait.Subtract.html
@@ -1,4 +1,4 @@
-Subtract in ops - Sway pub trait Subtract {
+Subtract in ops - Sway pub trait Subtract {
/// Subtract two values of the same type.
///
/// # Arguments
diff --git a/static/sway/core/primitive.b256.html b/static/sway/core/primitive.b256.html
index 8e1ac068..6f405040 100644
--- a/static/sway/core/primitive.b256.html
+++ b/static/sway/core/primitive.b256.html
@@ -1,4 +1,4 @@
-b256 in core - Sway