mango-v4/rs/doc/mango_v4/state/index.html

9 lines
27 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `state` mod in crate `mango_v4`."><meta name="keywords" content="rust, rustlang, rust-lang, state"><title>mango_v4::state - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../mango_v4/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../mango_v4/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Module state</a></h2><div class="sidebar-elems"><section><div class="block"><ul><li><a href="#reexports">Re-exports</a></li><li><a href="#modules">Modules</a></li><li><a href="#macros">Macros</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#constants">Constants</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Module <a href="../index.html">mango_v4</a>::<wbr><a class="mod" href="#">state</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/state/mod.rs.html#1-25">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="reexports" class="small-section-header"><a href="#reexports">Re-exports</a></h2><div class="item-table"><div class="item-row"><div class="item-left import-item" id="reexport.bank_seeds"><code>pub use <a class="macro" href="../macro.bank_seeds.html" title="macro mango_v4::bank_seeds">bank_seeds</a>;</code></div></div><div class="item-row"><div class="item-left import-item" id="reexport.group_seeds"><code>pub use <a class="macro" href="../macro.group_seeds.html" title="macro mango_v4::group_seeds">group_seeds</a>;</code></div></div><div class="item-row"><div class="item-left import-item" id="reexport.account_seeds"><code>pub use <a class="macro" href="../macro.account_seeds.html" title="macro mango_v4::account_seeds">account_seeds</a>;</code></div></div><div class="item-row"><div class="item-left import-item" id="reexport.serum_market_seeds"><code>pub use <a class="macro" href="../macro.serum_market_seeds.html" title="macro mango_v4::serum_market_seeds">serum_market_seeds</a>;</code></div></div></div><h2 id="modules" class="small-section-header"><a href="#modules">Modules</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="mod" href="switchboard_v1_devnet_oracle/index.html" title="mango_v4::state::switchboard_v1_devnet_oracle mod">switchboard_v1_devnet_oracle</a></div></div><div class="item-row"><div class="item-left module-item"><a class="mod" href="switchboard_v2_mainnet_oracle/index.html" title="mango_v4::state::switchboard_v2_mainnet_oracle mod">switchboard_v2_mainnet_oracle</a></div></div></div><h2 id="macros" class="small-section-header"><a href="#macros">Macros</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="macro" href="macro.account_seeds.html" title="mango_v4::state::account_seeds macro">account_seeds</a></div></div><div class="item-row"><div class="item-left module-item"><a class="macro" href="macro.bank_seeds.html" title="mango_v4::state::bank_seeds macro">bank_seeds</a></div></div><div class="item-row"><div class="item-left module-item"><a class="macro" href="macro.group_seeds.html" title="mango_v4::state::group_seeds macro">group_seeds</a></div></div><div class="item-row"><div class="item-left module-item"><a class="macro" href="macro.serum_market_seeds.html" title="mango_v4::state::serum_market_seeds macro">serum_market_seeds</a></div></div></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AnyEvent.html" title="mango_v4::state::AnyEvent struct">AnyEvent</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.AnyNode.html" title="mango_v4::state::AnyNode struct">AnyNode</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Bank.html" title="mango_v4::state::Bank struct">Bank</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BookSide.html" title="mango_v4::state::BookSide struct">BookSide</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BookSideIter.html" title="mango_v4::state::BookSideIter struct">BookSideIter</a></div><div class="item-right docblock-short">Iterates the fixed and oracle_pegged OrderTrees simultaneously, allowing users to
walk the orderbook without caring about where an order came from.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BookSideIterItem.html" title="mango_v4::state::BookSideIterItem struct">BookSideIterItem</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BookSideOrderHandle.html" title="mango_v4::state::BookSideOrderHandle struct">BookSideOrderHandle</a></div><div class="item-right docblock-short">Reference to a node in a book side component</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.DynamicAccount.html" title="mango_v4::state::DynamicAccount struct">DynamicAccount</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EventQueue.html" title="mango_v4::state::EventQueue struct">EventQueue</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.EventQueueHeader.html" title="mango_v4::state::EventQueueHeader struct">EventQueueHeader</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.FillEvent.html" title="mango_v4::state::FillEvent struct">FillEvent</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.FreeNode.html" title="mango_v4::state::FreeNode struct">FreeNode</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Group.html" title="mango_v4::state::Group struct">Group</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.InnerNode.html" title="mango_v4::state::InnerNode struct">InnerNode</a></div><div class="item-right docblock-short">InnerNodes and LeafNodes compose the binary tree of orders.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.LeafNode.html" title="mango_v4::state::LeafNode struct">LeafNode</a></div><div class="item-right docblock-short">LeafNodes represent an order in the binary tree</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.MangoAccount.html" title="mango_v4::state::MangoAccount struct">MangoAccount</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.MangoAccountDynamicHeader.html" title="mango_v4::state::MangoAccountDynamicHeader struct">MangoAccountDynamicHeader</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.MangoAccountFixed.html" title="mango_v4::state::MangoAccountFixed struct">MangoAccountFixed</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.MintInfo.html" title="mango_v4::state::MintInfo struct">MintInfo</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.OracleConfig.html" title="mango_v4::state::OracleConfig struct">OracleConfig</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.OracleConfigParams.html" title="mango_v4::state::OracleConfigParams struct">OracleConfigParams</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.OracleState.html" title="mango_v4::state::OracleState struct">OracleState</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Order.html" title="mango_v4::state::Order struct">Order</a></div><div class="item-right docblock-short">Perp order parameters</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.OrderTreeIter.html" title="mango_v4::state::OrderTreeIter struct">OrderTreeIter</a></div><div class="item-right docblock-short">Iterate over orders in order (bids=descending, asks=ascending)</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.OrderTreeNodes.html" title="mango_v4::state::OrderTreeNodes struct">OrderTreeNodes</a></div><div class="item-right docblock-short">A binary tree on AnyNode::key()</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.OrderTreeRoot.html" title="mango_v4::state::OrderTreeRoot struct">OrderTreeRoot</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Orderbook.html" title="mango_v4::state::Orderbook struct">Orderbook</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.OutEvent.html" title="mango_v4::state::OutEvent struct">OutEvent</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PerpMarket.html" title="mango_v4::state::PerpMarket struct">PerpMarket</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PerpOpenOrder.html" title="mango_v4::state::PerpOpenOrder struct">PerpOpenOrder</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.PerpPosition.html" title="mango_v4::state::PerpPosition struct">PerpPosition</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Serum3Market.html" title="mango_v4::state::Serum3Market struct">Serum3Market</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Serum3MarketIndexReservation.html" title="mango_v4::state::Serum3MarketIndexReservation struct">Serum3MarketIndexReservation</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Serum3Orders.html" title="mango_v4::state::Serum3Orders struct">Serum3Orders</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.StablePriceModel.html" title="mango_v4::state::StablePriceModel struct">StablePriceModel</a></div><div class="item-right docblock-short">Maintains a “stable_price” based on the oracle price.</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.StubOracle.html" title="mango_v4::state::StubOracle struct">StubOracle</a></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.TokenPosition.html" title="mango_v4::state::TokenPosition struct">TokenPosition</a></div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.BookSideOrderTree.html" title="mango_v4::state::BookSideOrderTree enum">BookSideOrderTree</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.CheckLiquidatable.html" title="mango_v4::state::CheckLiquidatable enum">CheckLiquidatable</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.EventType.html" title="mango_v4::state::EventType enum">EventType</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.IxGate.html" title="mango_v4::state::IxGate enum">IxGate</a></div><div class="item-right docblock-short">Enum for lookup into ix gate
note:
total ix files 56,
ix files included 48,
ix files not included 8,</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.NodeTag.html" title="mango_v4::state::NodeTag enum">NodeTag</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.OracleType.html" title="mango_v4::state::OracleType enum">OracleType</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.OrderParams.html" title="mango_v4::state::OrderParams enum">OrderParams</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.OrderState.html" title="mango_v4::state::OrderState enum">OrderState</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.OrderTreeType.html" title="mango_v4::state::OrderTreeType enum">OrderTreeType</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.PlaceOrderType.html" title="mango_v4::state::PlaceOrderType enum">PlaceOrderType</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.PostOrderType.html" title="mango_v4::state::PostOrderType enum">PostOrderType</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.SelfTradeBehavior.html" title="mango_v4::state::SelfTradeBehavior enum">SelfTradeBehavior</a></div><div class="item-right docblock-short">Self trade behavior controls how taker orders interact with resting limit orders of the same account.
This setting has no influence on placing a resting or oracle pegged limit order that does not match
immediately, instead its the responsibility of the user to correctly configure his taker orders.</div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Side.html" title="mango_v4::state::Side enum">Side</a></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.SideAndOrderTree.html" title="mango_v4::state::SideAndOrderTree enum">SideAndOrderTree</a></div><div class="item-right docblock-short">SideAndOrderTree is a storage optimization, so we dont need two bytes for the data</div></div></div><h2 id="constants" class="small-section-header"><a href="#constants">Constants</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.DAY.html" title="mango_v4::state::DAY constant">DAY</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.DAY_I80F48.html" title="mango_v4::state::DAY_I80F48 constant">DAY_I80F48</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.FEE_BUYBACK_QUOTE_TOKEN_INDEX.html" title="mango_v4::state::FEE_BUYBACK_QUOTE_TOKEN_INDEX constant">FEE_BUYBACK_QUOTE_TOKEN_INDEX</a></div><div class="item-right docblock-short">The token index used in AccountBuybackFeesWithMngo to exchange for MNGO</div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.FREE_ORDER_SLOT.html" title="mango_v4::state::FREE_ORDER_SLOT constant">FREE_ORDER_SLOT</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.HOUR.html" title="mango_v4::state::HOUR constant">HOUR</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.INSURANCE_TOKEN_INDEX.html" title="mango_v4::state::INSURANCE_TOKEN_INDEX constant">INSURANCE_TOKEN_INDEX</a></div><div class="item-right docblock-short">The token index used for the insurance fund.</div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.MAX_BANKS.html" title="mango_v4::state::MAX_BANKS constant">MAX_BANKS</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.MAX_NUM_EVENTS.html" title="mango_v4::state::MAX_NUM_EVENTS constant">MAX_NUM_EVENTS</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.MAX_ORDERTREE_NODES.html" title="mango_v4::state::MAX_ORDERTREE_NODES constant">MAX_ORDERTREE_NODES</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.MINIMUM_MAX_RATE.html" title="mango_v4::state::MINIMUM_MAX_RATE constant">MINIMUM_MAX_RATE</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.PERP_SETTLE_TOKEN_INDEX.html" title="mango_v4::state::PERP_SETTLE_TOKEN_INDEX constant">PERP_SETTLE_TOKEN_INDEX</a></div><div class="item-right docblock-short">The token index used for settling perp markets.</div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.QUOTE_DECIMALS.html" title="mango_v4::state::QUOTE_DECIMALS constant">QUOTE_DECIMALS</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.QUOTE_NATIVE_TO_UI.html" title="mango_v4::state::QUOTE_NATIVE_TO_UI constant">QUOTE_NATIVE_TO_UI</a></div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.QUOTE_TOKEN_INDEX.html" title="mango_v4::state::QUOTE_TOKEN_INDEX constant">QUOTE_TOKEN_INDEX</a></div><div class="item-right docblock-short">This token index is supposed to be the token that oracles quote in.</div></div><div class="item-row"><div class="item-left module-item"><a class="constant" href="constant.YEAR_I80F48.html" title="mango_v4::state::YEAR_I80F48 constant">YEAR_I80F48</a></div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DerefOrBorrow.html" title="mango_v4::state::DerefOrBorrow trait">DerefOrBorrow</a></div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DerefOrBorrowMut.html" title="mango_v4::state::DerefOrBorrowMut trait">DerefOrBorrowMut</a></div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.DynamicHeader.html" title="mango_v4::state::DynamicHeader trait">DynamicHeader</a></div><div class="item-right docblock-short">Header is created by scanning and parsing the dynamic portion of the account.
This stores useful information e.g. offsets to easily seek into dynamic content.</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.MangoAccountLoader.html" title="mango_v4::state::MangoAccountLoader trait">MangoAccountLoader</a></div><div class="item-right docblock-short">Trait to allow a AccountLoader<MangoAccountFixed> to create an accessor for the full account.</div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.QueueHeader.html" title="mango_v4::state::QueueHeader trait">QueueHeader</a></div></div></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.compute_equity.html" title="mango_v4::state::compute_equity fn">compute_equity</a></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.determine_oracle_type.html" title="mango_v4::state::determine_oracle_type fn">determine_oracle_type</a></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.fixed_price_data.html" title="mango_v4::state::fixed_price_data fn">fixed_price_data</a></div><div class="item-right docblock-short">Creates price data for a fixed orders price</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.fixed_price_lots.html" title="mango_v4::state::fixed_price_lots fn">fixed_price_lots</a></div><div class="item-right docblock-short">Retrieves the price (in lots) from a fixed orders price data</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.new_node_key.html" title="mango_v4::state::new_node_key fn">new_node_key</a></div><div class="item-right docblock-short">Creates a binary tree node key.</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.oracle_pegged_price_data.html" title="mango_v4::state::oracle_pegged_price_data fn">oracle_pegged_price_data</a></div><div class="item-right docblock-short">Creates price data for an oracle pegged order from the price offset</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.oracle_pegged_price_offset.html" title="mango_v4::state::oracle_pegged_price_offset fn">oracle_pegged_price_offset</a></div><div class="item-right docblock-short">Retrieves the price offset (in lots) from an oracle pegged orders price data</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.oracle_price_and_state.html" title="mango_v4::state::oracle_price_and_state fn">oracle_price_and_state</a></div><div class="item-right docblock-short">Returns the price of one native base token, in native quote tokens</div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.power_of_ten.html" title="mango_v4::state::power_of_ten fn">power_of_ten</a></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.rank_orders.html" title="mango_v4::state::rank_orders fn">rank_orders</a></div><div class="item-right docblock-short">Compares the <code>fixed</code> and <code>oracle_pegged</code> order and returns the one that would match first.</div></div></div><h2 id="types" class="small-section-header"><a href="#types">Type Definitions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="type" href="type.MangoAccountLoadedRef.html" title="mango_v4::state::MangoAccountLoadedRef type">MangoAccountLoadedRef</a></div><div class="item-right docblock-short">Useful when loading from bytes</div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.MangoAccountLoadedRefCell.html" title="mango_v4::state::MangoAccountLoadedRefCell type">MangoAccountLoadedRefCell</a></div><div class="item-right docblock-short">Useful when loading from RefCell, like from AccountInfo</div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.MangoAccountLoadedRefCellMut.html" title="mango_v4::state::MangoAccountLoadedRefCellMut type">MangoAccountLoadedRefCellMut</a></div><div class="item-right docblock-short">Useful when loading from RefCell, like from AccountInfo</div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.MangoAccountRef.html" title="mango_v4::state::MangoAccountRef type">MangoAccountRef</a></div><div class="item-right docblock-short">Full reference type, useful for borrows</div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.MangoAccountRefMut.html" title="mango_v4::state::MangoAccountRefMut type">MangoAccountRefMut</a></div><div class="item-right docblock-short">Full reference type, useful for borrows</div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.MangoAccountValue.html" title="mango_v4::state::MangoAccountValue type">MangoAccountValue</a></div><div class="item-right docblock-short">Fully owned MangoAccount, useful for tests</div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.NodeHandle.html" title="mango_v4::state::NodeHandle type">NodeHandle</a></div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.PerpMarketIndex.html" title="mango_v4::state::PerpMarketIndex type">PerpMarketIndex</a></div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.Serum3MarketIndex.html" title="mango_v4::state::Serum3MarketIndex type">Serum3MarketIndex</a></div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.TokenIndex.html" title="mango_v4::state::TokenIndex type">TokenIndex</a></div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="mango_v4" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.65.0 (897e37553 2022-11-02)" ></div></body></html>