Skip to main content

BrkClient

Struct BrkClient 

Source
pub struct BrkClient { /* private fields */ }
Expand description

Main BRK client with series tree and API methods.

Implementations§

Source§

impl BrkClient

Source

pub const VERSION: &'static str = "v0.3.0-alpha.6"

Client version.

Source

pub fn new(base_url: impl Into<String>) -> Self

Create a new client with the given base URL.

Source

pub fn with_options(options: BrkClientOptions) -> Self

Create a new client with options.

Source

pub fn series(&self) -> &SeriesTree

Get the series tree for navigating series.

Source

pub fn series_endpoint( &self, series: impl Into<SeriesName>, index: Index, ) -> SeriesEndpoint<Value>

Create a dynamic series endpoint builder for any series/index combination.

Use this for programmatic access when the series name is determined at runtime. For type-safe access, use the series() tree instead.

§Example
let data = client.series("realized_price", Index::Height)
    .last(10)
    .json::<f64>()?;
Source

pub fn date_series_endpoint( &self, series: impl Into<SeriesName>, index: Index, ) -> Result<DateSeriesEndpoint<Value>>

Create a dynamic date-based series endpoint builder.

Returns Err if the index is not date-based.

Source

pub fn get_api(&self) -> Result<String>

Compact OpenAPI specification

Compact OpenAPI specification optimized for LLM consumption. Removes redundant fields while preserving essential API information. Full spec available at /openapi.json.

Endpoint: GET /api.json

Source

pub fn get_address(&self, address: Addr) -> Result<AddrStats>

Address information

Retrieve address information including balance and transaction counts. Supports all standard Bitcoin address types (P2PKH, P2SH, P2WPKH, P2WSH, P2TR).

Mempool.space docs

Endpoint: GET /api/address/{address}

Source

pub fn get_address_txs( &self, address: Addr, after_txid: Option<Txid>, ) -> Result<Vec<Transaction>>

Address transactions

Get transaction history for an address, sorted with newest first. Returns up to 50 mempool transactions plus the first 25 confirmed transactions. Use ?after_txid= for pagination.

Mempool.space docs

Endpoint: GET /api/address/{address}/txs

Source

pub fn get_address_confirmed_txs( &self, address: Addr, after_txid: Option<Txid>, ) -> Result<Vec<Transaction>>

Address confirmed transactions

Get confirmed transactions for an address, 25 per page. Use ?after_txid= for pagination.

Mempool.space docs

Endpoint: GET /api/address/{address}/txs/chain

Source

pub fn get_address_mempool_txs(&self, address: Addr) -> Result<Vec<Txid>>

Address mempool transactions

Get unconfirmed transaction IDs for an address from the mempool (up to 50).

Mempool.space docs

Endpoint: GET /api/address/{address}/txs/mempool

Source

pub fn get_address_utxos(&self, address: Addr) -> Result<Vec<Utxo>>

Address UTXOs

Get unspent transaction outputs (UTXOs) for an address. Returns txid, vout, value, and confirmation status for each UTXO.

Mempool.space docs

Endpoint: GET /api/address/{address}/utxo

Source

pub fn get_block_by_height(&self, height: Height) -> Result<String>

Block hash by height

Retrieve the block hash at a given height. Returns the hash as plain text.

Mempool.space docs

Endpoint: GET /api/block-height/{height}

Source

pub fn get_block(&self, hash: BlockHash) -> Result<BlockInfo>

Block information

Retrieve block information by block hash. Returns block metadata including height, timestamp, difficulty, size, weight, and transaction count.

Mempool.space docs

Endpoint: GET /api/block/{hash}

Source

pub fn get_block_header(&self, hash: BlockHash) -> Result<String>

Block header

Returns the hex-encoded 80-byte block header.

Mempool.space docs

Endpoint: GET /api/block/{hash}/header

Source

pub fn get_block_raw(&self, hash: BlockHash) -> Result<String>

Raw block

Returns the raw block data in binary format.

Mempool.space docs

Endpoint: GET /api/block/{hash}/raw

Source

pub fn get_block_status(&self, hash: BlockHash) -> Result<BlockStatus>

Block status

Retrieve the status of a block. Returns whether the block is in the best chain and, if so, its height and the hash of the next block.

Mempool.space docs

Endpoint: GET /api/block/{hash}/status

Source

pub fn get_block_txid(&self, hash: BlockHash, index: TxIndex) -> Result<String>

Transaction ID at index

Retrieve a single transaction ID at a specific index within a block. Returns plain text txid.

Mempool.space docs

Endpoint: GET /api/block/{hash}/txid/{index}

Source

pub fn get_block_txids(&self, hash: BlockHash) -> Result<Vec<Txid>>

Block transaction IDs

Retrieve all transaction IDs in a block. Returns an array of txids in block order.

Mempool.space docs

Endpoint: GET /api/block/{hash}/txids

Source

pub fn get_block_txs(&self, hash: BlockHash) -> Result<Vec<Transaction>>

Block transactions

Retrieve transactions in a block by block hash. Returns up to 25 transactions starting from index 0.

Mempool.space docs

Endpoint: GET /api/block/{hash}/txs

Source

pub fn get_block_txs_from_index( &self, hash: BlockHash, start_index: TxIndex, ) -> Result<Vec<Transaction>>

Block transactions (paginated)

Retrieve transactions in a block by block hash, starting from the specified index. Returns up to 25 transactions at a time.

Mempool.space docs

Endpoint: GET /api/block/{hash}/txs/{start_index}

Source

pub fn get_blocks(&self) -> Result<Vec<BlockInfo>>

Recent blocks

Retrieve the last 10 blocks. Returns block metadata for each block.

Mempool.space docs

Endpoint: GET /api/blocks

Source

pub fn get_block_tip_hash(&self) -> Result<String>

Block tip hash

Returns the hash of the last block.

Mempool.space docs

Endpoint: GET /api/blocks/tip/hash

Source

pub fn get_block_tip_height(&self) -> Result<String>

Block tip height

Returns the height of the last block.

Mempool.space docs

Endpoint: GET /api/blocks/tip/height

Source

pub fn get_blocks_from_height(&self, height: Height) -> Result<Vec<BlockInfo>>

Blocks from height

Retrieve up to 10 blocks going backwards from the given height. For example, height=100 returns blocks 100, 99, 98, …, 91. Height=0 returns only block 0.

Mempool.space docs

Endpoint: GET /api/blocks/{height}

Source

pub fn get_mempool(&self) -> Result<MempoolInfo>

Mempool statistics

Get current mempool statistics including transaction count, total vsize, total fees, and fee histogram.

Mempool.space docs

Endpoint: GET /api/mempool

Source

pub fn get_live_price(&self) -> Result<Dollars>

Live BTC/USD price

Returns the current BTC/USD price in dollars, derived from on-chain round-dollar output patterns in the last 12 blocks plus mempool.

Endpoint: GET /api/mempool/price

Source

pub fn get_mempool_recent(&self) -> Result<Vec<MempoolRecentTx>>

Recent mempool transactions

Get the last 10 transactions to enter the mempool.

Mempool.space docs

Endpoint: GET /api/mempool/recent

Source

pub fn get_mempool_txids(&self) -> Result<Vec<Txid>>

Mempool transaction IDs

Get all transaction IDs currently in the mempool.

Mempool.space docs

Endpoint: GET /api/mempool/txids

Source

pub fn get_series_tree(&self) -> Result<TreeNode>

Series catalog

Returns the complete hierarchical catalog of available series organized as a tree structure. Series are grouped by categories and subcategories.

Endpoint: GET /api/series

Source

pub fn get_series_bulk( &self, series: SeriesList, index: Index, start: Option<RangeIndex>, end: Option<RangeIndex>, limit: Option<Limit>, format: Option<Format>, ) -> Result<FormatResponse<Vec<SeriesData>>>

Bulk series data

Fetch multiple series in a single request. Supports filtering by index and date range. Returns an array of SeriesData objects. For a single series, use get_series instead.

Endpoint: GET /api/series/bulk

Source

pub fn get_cost_basis_cohorts(&self) -> Result<Vec<String>>

Available cost basis cohorts

List available cohorts for cost basis distribution.

Endpoint: GET /api/series/cost-basis

Source

pub fn get_cost_basis_dates(&self, cohort: Cohort) -> Result<Vec<Date>>

Available cost basis dates

List available dates for a cohort’s cost basis distribution.

Endpoint: GET /api/series/cost-basis/{cohort}/dates

Source

pub fn get_cost_basis( &self, cohort: Cohort, date: &str, bucket: Option<CostBasisBucket>, value: Option<CostBasisValue>, ) -> Result<Value>

Cost basis distribution

Get the cost basis distribution for a cohort on a specific date.

Query params:

  • bucket: raw (default), lin200, lin500, lin1000, log10, log50, log100
  • value: supply (default, in BTC), realized (USD), unrealized (USD)

Endpoint: GET /api/series/cost-basis/{cohort}/{date}

Source

pub fn get_series_count(&self) -> Result<Vec<SeriesCount>>

Series count

Returns the number of series available per index type.

Endpoint: GET /api/series/count

Source

pub fn get_indexes(&self) -> Result<Vec<IndexInfo>>

List available indexes

Returns all available indexes with their accepted query aliases. Use any alias when querying series.

Endpoint: GET /api/series/indexes

Source

pub fn list_series( &self, page: Option<i64>, per_page: Option<i64>, ) -> Result<PaginatedSeries>

Series list

Paginated flat list of all available series names. Use page query param for pagination.

Endpoint: GET /api/series/list

Source

pub fn search_series( &self, q: SeriesName, limit: Option<Limit>, ) -> Result<Vec<String>>

Search series

Fuzzy search for series by name. Supports partial matches and typos.

Endpoint: GET /api/series/search

Source

pub fn get_series_info(&self, series: SeriesName) -> Result<SeriesInfo>

Get series info

Returns the supported indexes and value type for the specified series.

Endpoint: GET /api/series/{series}

Source

pub fn get_series( &self, series: SeriesName, index: Index, start: Option<RangeIndex>, end: Option<RangeIndex>, limit: Option<Limit>, format: Option<Format>, ) -> Result<FormatResponse<SeriesData>>

Get series data

Fetch data for a specific series at the given index. Use query parameters to filter by date range and format (json/csv).

Endpoint: GET /api/series/{series}/{index}

Source

pub fn get_series_data( &self, series: SeriesName, index: Index, start: Option<RangeIndex>, end: Option<RangeIndex>, limit: Option<Limit>, format: Option<Format>, ) -> Result<FormatResponse<Vec<bool>>>

Get raw series data

Returns just the data array without the SeriesData wrapper. Supports the same range and format parameters as the standard endpoint.

Endpoint: GET /api/series/{series}/{index}/data

Source

pub fn get_series_latest( &self, series: SeriesName, index: Index, ) -> Result<String>

Get latest series value

Returns the single most recent value for a series, unwrapped (not inside a SeriesData object).

Endpoint: GET /api/series/{series}/{index}/latest

Source

pub fn get_series_len(&self, series: SeriesName, index: Index) -> Result<f64>

Get series data length

Returns the total number of data points for a series at the given index.

Endpoint: GET /api/series/{series}/{index}/len

Source

pub fn get_series_version( &self, series: SeriesName, index: Index, ) -> Result<Version>

Get series version

Returns the current version of a series. Changes when the series data is updated.

Endpoint: GET /api/series/{series}/{index}/version

Source

pub fn get_disk_usage(&self) -> Result<DiskUsage>

Disk usage

Returns the disk space used by BRK and Bitcoin data.

Endpoint: GET /api/server/disk

Source

pub fn get_sync_status(&self) -> Result<SyncStatus>

Sync status

Returns the sync status of the indexer, including indexed height, tip height, blocks behind, and last indexed timestamp.

Endpoint: GET /api/server/sync

Source

pub fn get_tx(&self, txid: Txid) -> Result<Transaction>

Transaction information

Retrieve complete transaction data by transaction ID (txid). Returns inputs, outputs, fee, size, and confirmation status.

Mempool.space docs

Endpoint: GET /api/tx/{txid}

Source

pub fn get_tx_hex(&self, txid: Txid) -> Result<String>

Transaction hex

Retrieve the raw transaction as a hex-encoded string. Returns the serialized transaction in hexadecimal format.

Mempool.space docs

Endpoint: GET /api/tx/{txid}/hex

Source

pub fn get_tx_merkle_proof(&self, txid: Txid) -> Result<MerkleProof>

Transaction merkle proof

Get the merkle inclusion proof for a transaction.

Mempool.space docs

Endpoint: GET /api/tx/{txid}/merkle-proof

Source

pub fn get_tx_merkleblock_proof(&self, txid: Txid) -> Result<String>

Transaction merkleblock proof

Get the merkleblock proof for a transaction (BIP37 format, hex encoded).

Mempool.space docs

Endpoint: GET /api/tx/{txid}/merkleblock-proof

Source

pub fn get_tx_outspend(&self, txid: Txid, vout: Vout) -> Result<TxOutspend>

Output spend status

Get the spending status of a transaction output. Returns whether the output has been spent and, if so, the spending transaction details.

Mempool.space docs

Endpoint: GET /api/tx/{txid}/outspend/{vout}

Source

pub fn get_tx_outspends(&self, txid: Txid) -> Result<Vec<TxOutspend>>

All output spend statuses

Get the spending status of all outputs in a transaction. Returns an array with the spend status for each output.

Mempool.space docs

Endpoint: GET /api/tx/{txid}/outspends

Source

pub fn get_tx_raw(&self, txid: Txid) -> Result<String>

Transaction raw

Returns a transaction as binary data.

Mempool.space docs

Endpoint: GET /api/tx/{txid}/raw

Source

pub fn get_tx_status(&self, txid: Txid) -> Result<TxStatus>

Transaction status

Retrieve the confirmation status of a transaction. Returns whether the transaction is confirmed and, if so, the block height, hash, and timestamp.

Mempool.space docs

Endpoint: GET /api/tx/{txid}/status

Source

pub fn get_block_v1(&self, hash: BlockHash) -> Result<BlockInfoV1>

Block (v1)

Returns block details with extras by hash.

Mempool.space docs

Endpoint: GET /api/v1/block/{hash}

Source

pub fn get_blocks_v1(&self) -> Result<Vec<BlockInfoV1>>

Recent blocks with extras

Retrieve the last 10 blocks with extended data including pool identification and fee statistics.

Mempool.space docs

Endpoint: GET /api/v1/blocks

Source

pub fn get_blocks_v1_from_height( &self, height: Height, ) -> Result<Vec<BlockInfoV1>>

Blocks from height with extras

Retrieve up to 10 blocks with extended data going backwards from the given height.

Mempool.space docs

Endpoint: GET /api/v1/blocks/{height}

Source

pub fn get_cpfp(&self, txid: Txid) -> Result<CpfpInfo>

CPFP info

Returns ancestors and descendants for a CPFP (Child Pays For Parent) transaction, including the effective fee rate of the package.

Mempool.space docs

Endpoint: GET /api/v1/cpfp/{txid}

Source

pub fn get_difficulty_adjustment(&self) -> Result<DifficultyAdjustment>

Difficulty adjustment

Get current difficulty adjustment progress and estimates.

Mempool.space docs

Endpoint: GET /api/v1/difficulty-adjustment

Source

pub fn get_mempool_blocks(&self) -> Result<Vec<MempoolBlock>>

Projected mempool blocks

Get projected blocks from the mempool for fee estimation.

Mempool.space docs

Endpoint: GET /api/v1/fees/mempool-blocks

Source

pub fn get_precise_fees(&self) -> Result<RecommendedFees>

Precise recommended fees

Get recommended fee rates with up to 3 decimal places.

Mempool.space docs

Endpoint: GET /api/v1/fees/precise

Recommended fees

Get recommended fee rates for different confirmation targets.

Mempool.space docs

Endpoint: GET /api/v1/fees/recommended

Source

pub fn get_historical_price( &self, timestamp: Option<Timestamp>, ) -> Result<HistoricalPrice>

Historical price

Get historical BTC/USD price. Optionally specify a UNIX timestamp to get the price at that time.

Mempool.space docs

Endpoint: GET /api/v1/historical-price

Source

pub fn get_block_fee_rates( &self, time_period: TimePeriod, ) -> Result<Vec<BlockFeeRatesEntry>>

Block fee rates

Get block fee rate percentiles (min, 10th, 25th, median, 75th, 90th, max) for a time period. Valid periods: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

Mempool.space docs

Endpoint: GET /api/v1/mining/blocks/fee-rates/{time_period}

Source

pub fn get_block_fees( &self, time_period: TimePeriod, ) -> Result<Vec<BlockFeesEntry>>

Block fees

Get average total fees per block for a time period. Valid periods: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

Mempool.space docs

Endpoint: GET /api/v1/mining/blocks/fees/{time_period}

Source

pub fn get_block_rewards( &self, time_period: TimePeriod, ) -> Result<Vec<BlockRewardsEntry>>

Block rewards

Get average coinbase reward (subsidy + fees) per block for a time period. Valid periods: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

Mempool.space docs

Endpoint: GET /api/v1/mining/blocks/rewards/{time_period}

Source

pub fn get_block_sizes_weights( &self, time_period: TimePeriod, ) -> Result<BlockSizesWeights>

Block sizes and weights

Get average block sizes and weights for a time period. Valid periods: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

Mempool.space docs

Endpoint: GET /api/v1/mining/blocks/sizes-weights/{time_period}

Source

pub fn get_block_by_timestamp( &self, timestamp: Timestamp, ) -> Result<BlockTimestamp>

Block by timestamp

Find the block closest to a given UNIX timestamp.

Mempool.space docs

Endpoint: GET /api/v1/mining/blocks/timestamp/{timestamp}

Source

pub fn get_difficulty_adjustments( &self, ) -> Result<Vec<DifficultyAdjustmentEntry>>

Difficulty adjustments (all time)

Get historical difficulty adjustments including timestamp, block height, difficulty value, and percentage change.

Mempool.space docs

Endpoint: GET /api/v1/mining/difficulty-adjustments

Source

pub fn get_difficulty_adjustments_by_period( &self, time_period: TimePeriod, ) -> Result<Vec<DifficultyAdjustmentEntry>>

Difficulty adjustments

Get historical difficulty adjustments for a time period. Valid periods: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

Mempool.space docs

Endpoint: GET /api/v1/mining/difficulty-adjustments/{time_period}

Source

pub fn get_hashrate(&self) -> Result<HashrateSummary>

Network hashrate (all time)

Get network hashrate and difficulty data for all time.

Mempool.space docs

Endpoint: GET /api/v1/mining/hashrate

Source

pub fn get_pools_hashrate(&self) -> Result<Vec<PoolHashrateEntry>>

All pools hashrate (all time)

Get hashrate data for all mining pools.

Mempool.space docs

Endpoint: GET /api/v1/mining/hashrate/pools

Source

pub fn get_pools_hashrate_by_period( &self, time_period: TimePeriod, ) -> Result<Vec<PoolHashrateEntry>>

All pools hashrate

Get hashrate data for all mining pools for a time period. Valid periods: 1m, 3m, 6m, 1y, 2y, 3y.

Mempool.space docs

Endpoint: GET /api/v1/mining/hashrate/pools/{time_period}

Source

pub fn get_hashrate_by_period( &self, time_period: TimePeriod, ) -> Result<HashrateSummary>

Network hashrate

Get network hashrate and difficulty data for a time period. Valid periods: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

Mempool.space docs

Endpoint: GET /api/v1/mining/hashrate/{time_period}

Source

pub fn get_pool(&self, slug: PoolSlug) -> Result<PoolDetail>

Mining pool details

Get detailed information about a specific mining pool including block counts and shares for different time periods.

Mempool.space docs

Endpoint: GET /api/v1/mining/pool/{slug}

Source

pub fn get_pool_blocks(&self, slug: PoolSlug) -> Result<Vec<BlockInfoV1>>

Mining pool blocks

Get the 10 most recent blocks mined by a specific pool.

Mempool.space docs

Endpoint: GET /api/v1/mining/pool/{slug}/blocks

Source

pub fn get_pool_blocks_from( &self, slug: PoolSlug, height: Height, ) -> Result<Vec<BlockInfoV1>>

Mining pool blocks from height

Get 10 blocks mined by a specific pool before (and including) the given height.

Mempool.space docs

Endpoint: GET /api/v1/mining/pool/{slug}/blocks/{height}

Source

pub fn get_pool_hashrate( &self, slug: PoolSlug, ) -> Result<Vec<PoolHashrateEntry>>

Mining pool hashrate

Get hashrate history for a specific mining pool.

Mempool.space docs

Endpoint: GET /api/v1/mining/pool/{slug}/hashrate

Source

pub fn get_pools(&self) -> Result<Vec<PoolInfo>>

List all mining pools

Get list of all known mining pools with their identifiers.

Mempool.space docs

Endpoint: GET /api/v1/mining/pools

Source

pub fn get_pool_stats(&self, time_period: TimePeriod) -> Result<PoolsSummary>

Mining pool statistics

Get mining pool statistics for a time period. Valid periods: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

Mempool.space docs

Endpoint: GET /api/v1/mining/pools/{time_period}

Source

pub fn get_reward_stats(&self, block_count: i64) -> Result<RewardStats>

Mining reward statistics

Get mining reward statistics for the last N blocks including total rewards, fees, and transaction count.

Mempool.space docs

Endpoint: GET /api/v1/mining/reward-stats/{block_count}

Source

pub fn get_prices(&self) -> Result<Prices>

Current BTC price

Returns bitcoin latest price (on-chain derived, USD only).

Mempool.space docs

Endpoint: GET /api/v1/prices

Source

pub fn get_transaction_times(&self) -> Result<Vec<f64>>

Transaction first-seen times

Returns timestamps when transactions were first seen in the mempool. Returns 0 for mined or unknown transactions.

Mempool.space docs

Endpoint: GET /api/v1/transaction-times

Source

pub fn validate_address(&self, address: &str) -> Result<AddrValidation>

Validate address

Validate a Bitcoin address and get information about its type and scriptPubKey. Returns isvalid: false with an error message for invalid addresses.

Mempool.space docs

Endpoint: GET /api/v1/validate-address/{address}

Source

pub fn get_health(&self) -> Result<Health>

Health check

Returns the health status of the API server, including uptime information.

Endpoint: GET /health

Source

pub fn get_openapi(&self) -> Result<String>

OpenAPI specification

Full OpenAPI 3.1 specification for this API.

Endpoint: GET /openapi.json

Source

pub fn get_version(&self) -> Result<String>

API version

Returns the current version of the API server

Endpoint: GET /version

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.