This commit is contained in:
nicholasgodfreyclarke 2023-05-06 07:05:38 +00:00
parent 55ee84f386
commit 1d454aba35
132 changed files with 544 additions and 320 deletions

View File

@ -1 +1 @@
{"rustc_fingerprint":13763393147842196563,"outputs":{"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""},"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.69.0 (84c898d65 2023-04-16)\nbinary: rustc\ncommit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\ncommit-date: 2023-04-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.69.0\nLLVM version: 15.0.7\n","stderr":""}},"successes":{}}
{"rustc_fingerprint":7423679647707117498,"outputs":{"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.69.0 (84c898d65 2023-04-16)\nbinary: rustc\ncommit-hash: 84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\ncommit-date: 2023-04-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.69.0\nLLVM version: 15.0.7\n","stderr":""},"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.so\nlib___.so\nlib___.a\nlib___.so\n/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"gnu\"\ntarget_family=\"unix\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"linux\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"unknown\"\nunix\n","stderr":""}},"successes":{}}

View File

@ -1,3 +1,3 @@
(function() {var implementors = {
"mango_v4":[["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccount.html\" title=\"struct mango_v4::state::MangoAccount\">MangoAccount</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"]]
"mango_v4":[["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccount.html\" title=\"struct mango_v4::state::MangoAccount\">MangoAccount</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl AccountDeserialize for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
(function() {var implementors = {
"mango_v4":[["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccount.html\" title=\"struct mango_v4::state::MangoAccount\">MangoAccount</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccountFixed.html\" title=\"struct mango_v4::state::MangoAccountFixed\">MangoAccountFixed</a>"]]
"mango_v4":[["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccount.html\" title=\"struct mango_v4::state::MangoAccount\">MangoAccount</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"],["impl Owner for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccountFixed.html\" title=\"struct mango_v4::state::MangoAccountFixed\">MangoAccountFixed</a>"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

View File

@ -1,3 +1,3 @@
(function() {var implementors = {
"mango_v4":[["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccountFixed.html\" title=\"struct mango_v4::state::MangoAccountFixed\">MangoAccountFixed</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"]]
"mango_v4":[["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccountFixed.html\" title=\"struct mango_v4::state::MangoAccountFixed\">MangoAccountFixed</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl ZeroCopy for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
(function() {var implementors = {
"mango_v4":[["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.OrderTreeRoot.html\" title=\"struct mango_v4::state::OrderTreeRoot\">OrderTreeRoot</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.FreeNode.html\" title=\"struct mango_v4::state::FreeNode\">FreeNode</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.OrderTreeNodes.html\" title=\"struct mango_v4::state::OrderTreeNodes\">OrderTreeNodes</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Orders.html\" title=\"struct mango_v4::state::Serum3Orders\">Serum3Orders</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.PerpPosition.html\" title=\"struct mango_v4::state::PerpPosition\">PerpPosition</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.OracleConfig.html\" title=\"struct mango_v4::state::OracleConfig\">OracleConfig</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/serum3_cpi/struct.OrderBookStateHeader.html\" title=\"struct mango_v4::serum3_cpi::OrderBookStateHeader\">OrderBookStateHeader</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.PerpOpenOrder.html\" title=\"struct mango_v4::state::PerpOpenOrder\">PerpOpenOrder</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.FillEvent.html\" title=\"struct mango_v4::state::FillEvent\">FillEvent</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccountFixed.html\" title=\"struct mango_v4::state::MangoAccountFixed\">MangoAccountFixed</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.OutEvent.html\" title=\"struct mango_v4::state::OutEvent\">OutEvent</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.StablePriceModel.html\" title=\"struct mango_v4::state::StablePriceModel\">StablePriceModel</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueueHeader.html\" title=\"struct mango_v4::state::EventQueueHeader\">EventQueueHeader</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.TokenPosition.html\" title=\"struct mango_v4::state::TokenPosition\">TokenPosition</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.InnerNode.html\" title=\"struct mango_v4::state::InnerNode\">InnerNode</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.LeafNode.html\" title=\"struct mango_v4::state::LeafNode\">LeafNode</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.AnyNode.html\" title=\"struct mango_v4::state::AnyNode\">AnyNode</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.AnyEvent.html\" title=\"struct mango_v4::state::AnyEvent\">AnyEvent</a>"]]
"mango_v4":[["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.OrderTreeRoot.html\" title=\"struct mango_v4::state::OrderTreeRoot\">OrderTreeRoot</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.FreeNode.html\" title=\"struct mango_v4::state::FreeNode\">FreeNode</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.OrderTreeNodes.html\" title=\"struct mango_v4::state::OrderTreeNodes\">OrderTreeNodes</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Orders.html\" title=\"struct mango_v4::state::Serum3Orders\">Serum3Orders</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.PerpPosition.html\" title=\"struct mango_v4::state::PerpPosition\">PerpPosition</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.OracleConfig.html\" title=\"struct mango_v4::state::OracleConfig\">OracleConfig</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/serum3_cpi/struct.OrderBookStateHeader.html\" title=\"struct mango_v4::serum3_cpi::OrderBookStateHeader\">OrderBookStateHeader</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.PerpOpenOrder.html\" title=\"struct mango_v4::state::PerpOpenOrder\">PerpOpenOrder</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.FillEvent.html\" title=\"struct mango_v4::state::FillEvent\">FillEvent</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccountFixed.html\" title=\"struct mango_v4::state::MangoAccountFixed\">MangoAccountFixed</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.OutEvent.html\" title=\"struct mango_v4::state::OutEvent\">OutEvent</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.StablePriceModel.html\" title=\"struct mango_v4::state::StablePriceModel\">StablePriceModel</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueueHeader.html\" title=\"struct mango_v4::state::EventQueueHeader\">EventQueueHeader</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.TokenPosition.html\" title=\"struct mango_v4::state::TokenPosition\">TokenPosition</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.InnerNode.html\" title=\"struct mango_v4::state::InnerNode\">InnerNode</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.LeafNode.html\" title=\"struct mango_v4::state::LeafNode\">LeafNode</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.AnyNode.html\" title=\"struct mango_v4::state::AnyNode\">AnyNode</a>"],["impl Pod for <a class=\"struct\" href=\"mango_v4/state/struct.AnyEvent.html\" title=\"struct mango_v4::state::AnyEvent\">AnyEvent</a>"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

View File

@ -1,3 +1,3 @@
(function() {var implementors = {
"mango_v4":[["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.OutEvent.html\" title=\"struct mango_v4::state::OutEvent\">OutEvent</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.FreeNode.html\" title=\"struct mango_v4::state::FreeNode\">FreeNode</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.PerpPosition.html\" title=\"struct mango_v4::state::PerpPosition\">PerpPosition</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.LeafNode.html\" title=\"struct mango_v4::state::LeafNode\">LeafNode</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.InnerNode.html\" title=\"struct mango_v4::state::InnerNode\">InnerNode</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.OrderTreeNodes.html\" title=\"struct mango_v4::state::OrderTreeNodes\">OrderTreeNodes</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.StablePriceModel.html\" title=\"struct mango_v4::state::StablePriceModel\">StablePriceModel</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.TokenPosition.html\" title=\"struct mango_v4::state::TokenPosition\">TokenPosition</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccountFixed.html\" title=\"struct mango_v4::state::MangoAccountFixed\">MangoAccountFixed</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/serum3_cpi/struct.OrderBookStateHeader.html\" title=\"struct mango_v4::serum3_cpi::OrderBookStateHeader\">OrderBookStateHeader</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.AnyEvent.html\" title=\"struct mango_v4::state::AnyEvent\">AnyEvent</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.FillEvent.html\" title=\"struct mango_v4::state::FillEvent\">FillEvent</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.AnyNode.html\" title=\"struct mango_v4::state::AnyNode\">AnyNode</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.PerpOpenOrder.html\" title=\"struct mango_v4::state::PerpOpenOrder\">PerpOpenOrder</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Orders.html\" title=\"struct mango_v4::state::Serum3Orders\">Serum3Orders</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.OrderTreeRoot.html\" title=\"struct mango_v4::state::OrderTreeRoot\">OrderTreeRoot</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.OracleConfig.html\" title=\"struct mango_v4::state::OracleConfig\">OracleConfig</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueueHeader.html\" title=\"struct mango_v4::state::EventQueueHeader\">EventQueueHeader</a>"]]
"mango_v4":[["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.OutEvent.html\" title=\"struct mango_v4::state::OutEvent\">OutEvent</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Bank.html\" title=\"struct mango_v4::state::Bank\">Bank</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Market.html\" title=\"struct mango_v4::state::Serum3Market\">Serum3Market</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.FreeNode.html\" title=\"struct mango_v4::state::FreeNode\">FreeNode</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.PerpPosition.html\" title=\"struct mango_v4::state::PerpPosition\">PerpPosition</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3MarketIndexReservation.html\" title=\"struct mango_v4::state::Serum3MarketIndexReservation\">Serum3MarketIndexReservation</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.LeafNode.html\" title=\"struct mango_v4::state::LeafNode\">LeafNode</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.InnerNode.html\" title=\"struct mango_v4::state::InnerNode\">InnerNode</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.OrderTreeNodes.html\" title=\"struct mango_v4::state::OrderTreeNodes\">OrderTreeNodes</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Group.html\" title=\"struct mango_v4::state::Group\">Group</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.StablePriceModel.html\" title=\"struct mango_v4::state::StablePriceModel\">StablePriceModel</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.TokenPosition.html\" title=\"struct mango_v4::state::TokenPosition\">TokenPosition</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.MangoAccountFixed.html\" title=\"struct mango_v4::state::MangoAccountFixed\">MangoAccountFixed</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/serum3_cpi/struct.OrderBookStateHeader.html\" title=\"struct mango_v4::serum3_cpi::OrderBookStateHeader\">OrderBookStateHeader</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.AnyEvent.html\" title=\"struct mango_v4::state::AnyEvent\">AnyEvent</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.FillEvent.html\" title=\"struct mango_v4::state::FillEvent\">FillEvent</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.StubOracle.html\" title=\"struct mango_v4::state::StubOracle\">StubOracle</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueue.html\" title=\"struct mango_v4::state::EventQueue\">EventQueue</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.AnyNode.html\" title=\"struct mango_v4::state::AnyNode\">AnyNode</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.PerpOpenOrder.html\" title=\"struct mango_v4::state::PerpOpenOrder\">PerpOpenOrder</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.Serum3Orders.html\" title=\"struct mango_v4::state::Serum3Orders\">Serum3Orders</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.OrderTreeRoot.html\" title=\"struct mango_v4::state::OrderTreeRoot\">OrderTreeRoot</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.MintInfo.html\" title=\"struct mango_v4::state::MintInfo\">MintInfo</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.PerpMarket.html\" title=\"struct mango_v4::state::PerpMarket\">PerpMarket</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.BookSide.html\" title=\"struct mango_v4::state::BookSide\">BookSide</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.OracleConfig.html\" title=\"struct mango_v4::state::OracleConfig\">OracleConfig</a>"],["impl Zeroable for <a class=\"struct\" href=\"mango_v4/state/struct.EventQueueHeader.html\" title=\"struct mango_v4::state::EventQueueHeader\">EventQueueHeader</a>"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
(function() {var implementors = {
"mango_v4":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.Side.html\" title=\"enum mango_v4::state::Side\">Side</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/accounts_ix/enum.FlashLoanType.html\" title=\"enum mango_v4::accounts_ix::FlashLoanType\">FlashLoanType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"mango_v4/state/struct.LeafNode.html\" title=\"struct mango_v4::state::LeafNode\">LeafNode</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.SideAndOrderTree.html\" title=\"enum mango_v4::state::SideAndOrderTree\">SideAndOrderTree</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/health/enum.HealthType.html\" title=\"enum mango_v4::health::HealthType\">HealthType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.EventType.html\" title=\"enum mango_v4::state::EventType\">EventType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.PostOrderType.html\" title=\"enum mango_v4::state::PostOrderType\">PostOrderType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.CheckLiquidatable.html\" title=\"enum mango_v4::state::CheckLiquidatable\">CheckLiquidatable</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/logs/enum.LoanOriginationFeeInstruction.html\" title=\"enum mango_v4::logs::LoanOriginationFeeInstruction\">LoanOriginationFeeInstruction</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.OracleType.html\" title=\"enum mango_v4::state::OracleType\">OracleType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.OrderTreeType.html\" title=\"enum mango_v4::state::OrderTreeType\">OrderTreeType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.PlaceOrderType.html\" title=\"enum mango_v4::state::PlaceOrderType\">PlaceOrderType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.OrderState.html\" title=\"enum mango_v4::state::OrderState\">OrderState</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.BookSideOrderTree.html\" title=\"enum mango_v4::state::BookSideOrderTree\">BookSideOrderTree</a>"]],
"mango_v4":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.Side.html\" title=\"enum mango_v4::state::Side\">Side</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/logs/enum.LoanOriginationFeeInstruction.html\" title=\"enum mango_v4::logs::LoanOriginationFeeInstruction\">LoanOriginationFeeInstruction</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/accounts_ix/enum.FlashLoanType.html\" title=\"enum mango_v4::accounts_ix::FlashLoanType\">FlashLoanType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"mango_v4/state/struct.LeafNode.html\" title=\"struct mango_v4::state::LeafNode\">LeafNode</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.SideAndOrderTree.html\" title=\"enum mango_v4::state::SideAndOrderTree\">SideAndOrderTree</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/health/enum.HealthType.html\" title=\"enum mango_v4::health::HealthType\">HealthType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.EventType.html\" title=\"enum mango_v4::state::EventType\">EventType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.PostOrderType.html\" title=\"enum mango_v4::state::PostOrderType\">PostOrderType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.CheckLiquidatable.html\" title=\"enum mango_v4::state::CheckLiquidatable\">CheckLiquidatable</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.OracleType.html\" title=\"enum mango_v4::state::OracleType\">OracleType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.OrderTreeType.html\" title=\"enum mango_v4::state::OrderTreeType\">OrderTreeType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.PlaceOrderType.html\" title=\"enum mango_v4::state::PlaceOrderType\">PlaceOrderType</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.OrderState.html\" title=\"enum mango_v4::state::OrderState\">OrderState</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4/state/enum.BookSideOrderTree.html\" title=\"enum mango_v4::state::BookSideOrderTree\">BookSideOrderTree</a>"]],
"mango_v4_client":[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/1.69.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"mango_v4_client/perp_pnl/enum.Direction.html\" title=\"enum mango_v4_client::perp_pnl::Direction\">Direction</a>"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
<!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="Creates an Error with a particular message, using format!() style arguments"><title>error_msg in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="macro" href="#">error_msg</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#187-191">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>error_msg {
<!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="Creates an Error with a particular message, using format!() style arguments"><title>error_msg in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="macro" href="#">error_msg</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#189-193">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>error_msg {
($(<span class="macro-nonterminal">$arg</span>:tt)<span class="kw-2">*</span>) =&gt; { ... };
}</pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an Error with a particular message, using format!() style arguments</p>
<p>Example: error_msg!(“index {} not found”, index)</p>

View File

@ -1,4 +1,4 @@
<!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="Creates an Error with a particular message, using format!() style arguments"><title>error_msg_typed in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="macro" href="#">error_msg_typed</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#197-201">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>error_msg_typed {
<!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="Creates an Error with a particular message, using format!() style arguments"><title>error_msg_typed in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="macro" href="#">error_msg_typed</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#199-203">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>error_msg_typed {
(<span class="macro-nonterminal">$code</span>:expr, $(<span class="macro-nonterminal">$arg</span>:tt)<span class="kw-2">*</span>) =&gt; { ... };
}</pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an Error with a particular message, using format!() style arguments</p>
<p>Example: error_msg_typed!(TokenPositionMissing, “index {} not found”, index)</p>

View File

@ -1,4 +1,4 @@
<!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="Like anchors require!(), but with a customizable message"><title>require_msg in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="macro" href="#">require_msg</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#207-213">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>require_msg {
<!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="Like anchors require!(), but with a customizable message"><title>require_msg in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="macro" href="#">require_msg</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#209-215">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>require_msg {
(<span class="macro-nonterminal">$invariant</span>:expr, $(<span class="macro-nonterminal">$arg</span>:tt)<span class="kw-2">*</span>) =&gt; { ... };
}</pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Like anchors require!(), but with a customizable message</p>
<p>Example: require_msg!(condition, “the condition on account {} was violated”, account_key);</p>

View File

@ -1,4 +1,4 @@
<!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="Like anchors require!(), but with a customizable message and type"><title>require_msg_typed in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="macro" href="#">require_msg_typed</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#219-225">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>require_msg_typed {
<!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="Like anchors require!(), but with a customizable message and type"><title>require_msg_typed in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="macro" href="#">require_msg_typed</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#221-227">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>require_msg_typed {
(<span class="macro-nonterminal">$invariant</span>:expr, <span class="macro-nonterminal">$code</span>:expr, $(<span class="macro-nonterminal">$arg</span>:tt)<span class="kw-2">*</span>) =&gt; { ... };
}</pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Like anchors require!(), but with a customizable message and type</p>
<p>Example: require_msg_typed!(condition, “the condition on account {} was violated”, account_key);</p>

View File

@ -1,17 +1,17 @@
<!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 `Contextable` trait in crate `mango_v4`."><title>Contextable in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Contextable</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.context">context</a></li><li><a href="#tymethod.with_context">with_context</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Contextable-for-Error">Error</a></li><li><a href="#impl-Contextable-for-Result%3CT%3E">Result&lt;T&gt;</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="trait" href="#">Contextable</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#123-136">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Contextable {
<!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 `Contextable` trait in crate `mango_v4`."><title>Contextable in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Contextable</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.context">context</a></li><li><a href="#tymethod.with_context">with_context</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Contextable-for-Error">Error</a></li><li><a href="#impl-Contextable-for-Result%3CT%3E">Result&lt;T&gt;</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="trait" href="#">Contextable</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#125-138">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Contextable {
// Required methods
fn <a href="#tymethod.context" class="fn">context</a>(self, c: impl <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.with_context" class="fn">with_context</a>&lt;C, F&gt;(self, c: F) -&gt; Self
<span class="where">where C: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -&gt; C</span>;
}</code></pre><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.context" class="method"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#127">source</a><h4 class="code-header">fn <a href="#tymethod.context" class="fn">context</a>(self, c: impl <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Add a context string <code>c</code> to a Result or Error</p>
}</code></pre><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.context" class="method"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#129">source</a><h4 class="code-header">fn <a href="#tymethod.context" class="fn">context</a>(self, c: impl <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Add a context string <code>c</code> to a Result or Error</p>
<p>Example: foo().context(“calling foo”)?;</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.with_context" class="method"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#132-135">source</a><h4 class="code-header">fn <a href="#tymethod.with_context" class="fn">with_context</a>&lt;C, F&gt;(self, c: F) -&gt; Self<span class="where fmt-newline">where
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.with_context" class="method"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#134-137">source</a><h4 class="code-header">fn <a href="#tymethod.with_context" class="fn">with_context</a>&lt;C, F&gt;(self, c: F) -&gt; Self<span class="where fmt-newline">where
C: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -&gt; C,</span></h4></section></summary><div class="docblock"><p>Like <code>context()</code>, but evaluate the context string lazily</p>
<p>Use this if its expensive to generate, like a format!() call.</p>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Contextable-for-Result%3CT%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#162-181">source</a><a href="#impl-Contextable-for-Result%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Contextable.html" title="trait mango_v4::error::Contextable">Contextable</a> for Result&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.context" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#163-169">source</a><a href="#method.context" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.context" class="fn">context</a>(self, c: impl <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>) -&gt; Self</h4></section><section id="method.with_context" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#170-180">source</a><a href="#method.with_context" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.with_context" class="fn">with_context</a>&lt;C, F&gt;(self, c: F) -&gt; Self<span class="where fmt-newline">where
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Contextable-for-Result%3CT%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#164-183">source</a><a href="#impl-Contextable-for-Result%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Contextable.html" title="trait mango_v4::error::Contextable">Contextable</a> for Result&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.context" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#165-171">source</a><a href="#method.context" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.context" class="fn">context</a>(self, c: impl <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>) -&gt; Self</h4></section><section id="method.with_context" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#172-182">source</a><a href="#method.with_context" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.with_context" class="fn">with_context</a>&lt;C, F&gt;(self, c: F) -&gt; Self<span class="where fmt-newline">where
C: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -&gt; C,</span></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contextable-for-Error" class="impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#138-160">source</a><a href="#impl-Contextable-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contextable.html" title="trait mango_v4::error::Contextable">Contextable</a> for Error</h3></section></summary><div class="impl-items"><section id="method.context-1" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#139-152">source</a><a href="#method.context-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.context" class="fn">context</a>(self, c: impl <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>) -&gt; Self</h4></section><section id="method.with_context-1" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#153-159">source</a><a href="#method.with_context-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.with_context" class="fn">with_context</a>&lt;C, F&gt;(self, c: F) -&gt; Self<span class="where fmt-newline">where
F: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -&gt; C,</span></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contextable-for-Error" class="impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#140-162">source</a><a href="#impl-Contextable-for-Error" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contextable.html" title="trait mango_v4::error::Contextable">Contextable</a> for Error</h3></section></summary><div class="impl-items"><section id="method.context-1" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#141-154">source</a><a href="#method.context-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.context" class="fn">context</a>(self, c: impl <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>) -&gt; Self</h4></section><section id="method.with_context-1" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#155-161">source</a><a href="#method.with_context-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.with_context" class="fn">with_context</a>&lt;C, F&gt;(self, c: F) -&gt; Self<span class="where fmt-newline">where
C: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.69.0/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>() -&gt; C,</span></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../implementors/mango_v4/error/trait.Contextable.js" data-ignore-extern-crates="anchor_lang" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mango_v4" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>

View File

@ -1,4 +1,4 @@
<!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 `IsAnchorErrorWithCode` trait in crate `mango_v4`."><title>IsAnchorErrorWithCode in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">IsAnchorErrorWithCode</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.is_anchor_error_with_code">is_anchor_error_with_code</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-IsAnchorErrorWithCode-for-Result%3CT%3E">Result&lt;T&gt;</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="trait" href="#">IsAnchorErrorWithCode</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#110-112">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait IsAnchorErrorWithCode {
<!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 `IsAnchorErrorWithCode` trait in crate `mango_v4`."><title>IsAnchorErrorWithCode in mango_v4::error - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">IsAnchorErrorWithCode</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.is_anchor_error_with_code">is_anchor_error_with_code</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-IsAnchorErrorWithCode-for-Result%3CT%3E">Result&lt;T&gt;</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In mango_v4::error</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">error</a>::<wbr><a class="trait" href="#">IsAnchorErrorWithCode</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/error.rs.html#112-114">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait IsAnchorErrorWithCode {
// Required method
fn <a href="#tymethod.is_anchor_error_with_code" class="fn">is_anchor_error_with_code</a>(&amp;self, code: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a>;
}</code></pre><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.is_anchor_error_with_code" class="method"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#111">source</a><h4 class="code-header">fn <a href="#tymethod.is_anchor_error_with_code" class="fn">is_anchor_error_with_code</a>(&amp;self, code: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a></h4></section></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-IsAnchorErrorWithCode-for-Result%3CT%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#114-121">source</a><a href="#impl-IsAnchorErrorWithCode-for-Result%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.IsAnchorErrorWithCode.html" title="trait mango_v4::error::IsAnchorErrorWithCode">IsAnchorErrorWithCode</a> for Result&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.is_anchor_error_with_code" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#115-120">source</a><a href="#method.is_anchor_error_with_code" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_anchor_error_with_code" class="fn">is_anchor_error_with_code</a>(&amp;self, code: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../implementors/mango_v4/error/trait.IsAnchorErrorWithCode.js" data-ignore-extern-crates="anchor_lang" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mango_v4" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>
}</code></pre><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.is_anchor_error_with_code" class="method"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#113">source</a><h4 class="code-header">fn <a href="#tymethod.is_anchor_error_with_code" class="fn">is_anchor_error_with_code</a>(&amp;self, code: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a></h4></section></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-IsAnchorErrorWithCode-for-Result%3CT%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#116-123">source</a><a href="#impl-IsAnchorErrorWithCode-for-Result%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.IsAnchorErrorWithCode.html" title="trait mango_v4::error::IsAnchorErrorWithCode">IsAnchorErrorWithCode</a> for Result&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.is_anchor_error_with_code" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/error.rs.html#117-122">source</a><a href="#method.is_anchor_error_with_code" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_anchor_error_with_code" class="fn">is_anchor_error_with_code</a>(&amp;self, code: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.bool.html">bool</a></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../implementors/mango_v4/error/trait.IsAnchorErrorWithCode.js" data-ignore-extern-crates="anchor_lang" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mango_v4" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>

View File

@ -1,4 +1,4 @@
<!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 `new_fixed_order_account_retriever` fn in crate `mango_v4`."><title>new_fixed_order_account_retriever in mango_v4::health - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::health</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">health</a>::<wbr><a class="fn" href="#">new_fixed_order_account_retriever</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/health/account_retriever.rs.html#59-79">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn new_fixed_order_account_retriever&lt;'a, 'info&gt;(
<!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 `new_fixed_order_account_retriever` fn in crate `mango_v4`."><title>new_fixed_order_account_retriever in mango_v4::health - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::health</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">health</a>::<wbr><a class="fn" href="#">new_fixed_order_account_retriever</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/health/account_retriever.rs.html#59-83">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn new_fixed_order_account_retriever&lt;'a, 'info&gt;(
ais: &amp;'a [AccountInfo&lt;'info&gt;],
account: &amp;<a class="type" href="../state/type.MangoAccountRef.html" title="type mango_v4::state::MangoAccountRef">MangoAccountRef</a>&lt;'_&gt;
) -&gt; Result&lt;<a class="struct" href="struct.FixedOrderAccountRetriever.html" title="struct mango_v4::health::FixedOrderAccountRetriever">FixedOrderAccountRetriever</a>&lt;<a class="struct" href="../accounts_zerocopy/struct.AccountInfoRef.html" title="struct mango_v4::accounts_zerocopy::AccountInfoRef">AccountInfoRef</a>&lt;'a, 'info&gt;&gt;&gt;</code></pre></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mango_v4" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>

View File

@ -13,17 +13,17 @@
<li>PerpMarket oracle accounts, in the order of the perp market accounts</li>
<li>serum3 OpenOrders accounts, in the order of account.serum3.iter_active()</li>
</ol>
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.ais" class="structfield small-section-header"><a href="#structfield.ais" class="anchor field">§</a><code>ais: <a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt;</code></span><span id="structfield.n_banks" class="structfield small-section-header"><a href="#structfield.n_banks" class="anchor field">§</a><code>n_banks: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.n_perps" class="structfield small-section-header"><a href="#structfield.n_perps" class="anchor field">§</a><code>n_perps: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.begin_perp" class="structfield small-section-header"><a href="#structfield.begin_perp" class="anchor field">§</a><code>begin_perp: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.begin_serum3" class="structfield small-section-header"><a href="#structfield.begin_serum3" class="anchor field">§</a><code>begin_serum3: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.staleness_slot" class="structfield small-section-header"><a href="#structfield.staleness_slot" class="anchor field">§</a><code>staleness_slot: <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u64.html">u64</a>&gt;</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-AccountRetriever-for-FixedOrderAccountRetriever%3CT%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#113-190">source</a><a href="#impl-AccountRetriever-for-FixedOrderAccountRetriever%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="../accounts_zerocopy/trait.KeyedAccountReader.html" title="trait mango_v4::accounts_zerocopy::KeyedAccountReader">KeyedAccountReader</a>&gt; <a class="trait" href="trait.AccountRetriever.html" title="trait mango_v4::health::AccountRetriever">AccountRetriever</a> for <a class="struct" href="struct.FixedOrderAccountRetriever.html" title="struct mango_v4::health::FixedOrderAccountRetriever">FixedOrderAccountRetriever</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.bank_and_oracle" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#114-143">source</a><a href="#method.bank_and_oracle" class="anchor">§</a><h4 class="code-header">fn <a href="trait.AccountRetriever.html#tymethod.bank_and_oracle" class="fn">bank_and_oracle</a>(
</div></details><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.ais" class="structfield small-section-header"><a href="#structfield.ais" class="anchor field">§</a><code>ais: <a class="struct" href="https://doc.rust-lang.org/1.69.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt;</code></span><span id="structfield.n_banks" class="structfield small-section-header"><a href="#structfield.n_banks" class="anchor field">§</a><code>n_banks: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.n_perps" class="structfield small-section-header"><a href="#structfield.n_perps" class="anchor field">§</a><code>n_perps: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.begin_perp" class="structfield small-section-header"><a href="#structfield.begin_perp" class="anchor field">§</a><code>begin_perp: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.begin_serum3" class="structfield small-section-header"><a href="#structfield.begin_serum3" class="anchor field">§</a><code>begin_serum3: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a></code></span><span id="structfield.staleness_slot" class="structfield small-section-header"><a href="#structfield.staleness_slot" class="anchor field">§</a><code>staleness_slot: <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u64.html">u64</a>&gt;</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-AccountRetriever-for-FixedOrderAccountRetriever%3CT%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#117-194">source</a><a href="#impl-AccountRetriever-for-FixedOrderAccountRetriever%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="../accounts_zerocopy/trait.KeyedAccountReader.html" title="trait mango_v4::accounts_zerocopy::KeyedAccountReader">KeyedAccountReader</a>&gt; <a class="trait" href="trait.AccountRetriever.html" title="trait mango_v4::health::AccountRetriever">AccountRetriever</a> for <a class="struct" href="struct.FixedOrderAccountRetriever.html" title="struct mango_v4::health::FixedOrderAccountRetriever">FixedOrderAccountRetriever</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="method.bank_and_oracle" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#118-147">source</a><a href="#method.bank_and_oracle" class="anchor">§</a><h4 class="code-header">fn <a href="trait.AccountRetriever.html#tymethod.bank_and_oracle" class="fn">bank_and_oracle</a>(
&amp;self,
group: &amp;Pubkey,
active_token_position_index: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a>,
token_index: <a class="type" href="../state/type.TokenIndex.html" title="type mango_v4::state::TokenIndex">TokenIndex</a>
) -&gt; Result&lt;(&amp;<a class="struct" href="../state/struct.Bank.html" title="struct mango_v4::state::Bank">Bank</a>, <a class="type" href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html" title="type fixed::types::I80F48">I80F48</a>)&gt;</h4></section><section id="method.perp_market_and_oracle_price" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#145-173">source</a><a href="#method.perp_market_and_oracle_price" class="anchor">§</a><h4 class="code-header">fn <a href="trait.AccountRetriever.html#tymethod.perp_market_and_oracle_price" class="fn">perp_market_and_oracle_price</a>(
) -&gt; Result&lt;(&amp;<a class="struct" href="../state/struct.Bank.html" title="struct mango_v4::state::Bank">Bank</a>, <a class="type" href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html" title="type fixed::types::I80F48">I80F48</a>)&gt;</h4></section><section id="method.perp_market_and_oracle_price" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#149-177">source</a><a href="#method.perp_market_and_oracle_price" class="anchor">§</a><h4 class="code-header">fn <a href="trait.AccountRetriever.html#tymethod.perp_market_and_oracle_price" class="fn">perp_market_and_oracle_price</a>(
&amp;self,
group: &amp;Pubkey,
active_perp_position_index: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a>,
perp_market_index: <a class="type" href="../state/type.PerpMarketIndex.html" title="type mango_v4::state::PerpMarketIndex">PerpMarketIndex</a>
) -&gt; Result&lt;(&amp;<a class="struct" href="../state/struct.PerpMarket.html" title="struct mango_v4::state::PerpMarket">PerpMarket</a>, <a class="type" href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html" title="type fixed::types::I80F48">I80F48</a>)&gt;</h4></section><section id="method.serum_oo" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#175-189">source</a><a href="#method.serum_oo" class="anchor">§</a><h4 class="code-header">fn <a href="trait.AccountRetriever.html#tymethod.serum_oo" class="fn">serum_oo</a>(
) -&gt; Result&lt;(&amp;<a class="struct" href="../state/struct.PerpMarket.html" title="struct mango_v4::state::PerpMarket">PerpMarket</a>, <a class="type" href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html" title="type fixed::types::I80F48">I80F48</a>)&gt;</h4></section><section id="method.serum_oo" class="method trait-impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#179-193">source</a><a href="#method.serum_oo" class="anchor">§</a><h4 class="code-header">fn <a href="trait.AccountRetriever.html#tymethod.serum_oo" class="fn">serum_oo</a>(
&amp;self,
active_serum_oo_index: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a>,
key: &amp;Pubkey

File diff suppressed because one or more lines are too long

View File

@ -42,4 +42,4 @@ one instruction (such as for liquidation instructions).</li>
group: &amp;Pubkey,
active_perp_position_index: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.usize.html">usize</a>,
perp_market_index: <a class="type" href="../state/type.PerpMarketIndex.html" title="type mango_v4::state::PerpMarketIndex">PerpMarketIndex</a>
) -&gt; Result&lt;(&amp;<a class="struct" href="../state/struct.PerpMarket.html" title="struct mango_v4::state::PerpMarket">PerpMarket</a>, <a class="type" href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html" title="type fixed::types::I80F48">I80F48</a>)&gt;</h4></section></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-AccountRetriever-for-ScanningAccountRetriever%3C'a,+'info%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#386-408">source</a><a href="#impl-AccountRetriever-for-ScanningAccountRetriever%3C'a,+'info%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, 'info&gt; <a class="trait" href="trait.AccountRetriever.html" title="trait mango_v4::health::AccountRetriever">AccountRetriever</a> for <a class="struct" href="struct.ScanningAccountRetriever.html" title="struct mango_v4::health::ScanningAccountRetriever">ScanningAccountRetriever</a>&lt;'a, 'info&gt;</h3></section><section id="impl-AccountRetriever-for-FixedOrderAccountRetriever%3CT%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#113-190">source</a><a href="#impl-AccountRetriever-for-FixedOrderAccountRetriever%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="../accounts_zerocopy/trait.KeyedAccountReader.html" title="trait mango_v4::accounts_zerocopy::KeyedAccountReader">KeyedAccountReader</a>&gt; <a class="trait" href="trait.AccountRetriever.html" title="trait mango_v4::health::AccountRetriever">AccountRetriever</a> for <a class="struct" href="struct.FixedOrderAccountRetriever.html" title="struct mango_v4::health::FixedOrderAccountRetriever">FixedOrderAccountRetriever</a>&lt;T&gt;</h3></section></div><script src="../../implementors/mango_v4/health/account_retriever/trait.AccountRetriever.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mango_v4" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>
) -&gt; Result&lt;(&amp;<a class="struct" href="../state/struct.PerpMarket.html" title="struct mango_v4::state::PerpMarket">PerpMarket</a>, <a class="type" href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html" title="type fixed::types::I80F48">I80F48</a>)&gt;</h4></section></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-AccountRetriever-for-ScanningAccountRetriever%3C'a,+'info%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#390-412">source</a><a href="#impl-AccountRetriever-for-ScanningAccountRetriever%3C'a,+'info%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, 'info&gt; <a class="trait" href="trait.AccountRetriever.html" title="trait mango_v4::health::AccountRetriever">AccountRetriever</a> for <a class="struct" href="struct.ScanningAccountRetriever.html" title="struct mango_v4::health::ScanningAccountRetriever">ScanningAccountRetriever</a>&lt;'a, 'info&gt;</h3></section><section id="impl-AccountRetriever-for-FixedOrderAccountRetriever%3CT%3E" class="impl"><a class="srclink rightside" href="../../src/mango_v4/health/account_retriever.rs.html#117-194">source</a><a href="#impl-AccountRetriever-for-FixedOrderAccountRetriever%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="../accounts_zerocopy/trait.KeyedAccountReader.html" title="trait mango_v4::accounts_zerocopy::KeyedAccountReader">KeyedAccountReader</a>&gt; <a class="trait" href="trait.AccountRetriever.html" title="trait mango_v4::health::AccountRetriever">AccountRetriever</a> for <a class="struct" href="struct.FixedOrderAccountRetriever.html" title="struct mango_v4::health::FixedOrderAccountRetriever">FixedOrderAccountRetriever</a>&lt;T&gt;</h3></section></div><script src="../../implementors/mango_v4/health/account_retriever/trait.AccountRetriever.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mango_v4" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
window.SIDEBAR_ITEMS = {"enum":["LoanOriginationFeeInstruction"],"fn":["emit_perp_balances"],"struct":["AccountBuybackFeesWithMngoLog","DeactivatePerpPositionLog","DeactivateTokenPositionLog","DepositLog","FillLog","FillLogV2","FilledPerpOrderLog","FlashLoanLog","FlashLoanTokenDetail","PerpBalanceLog","PerpForceClosePositionLog","PerpLiqBankruptcyLog","PerpLiqBaseOrPositivePnlLog","PerpLiqNegativePnlOrBankruptcyLog","PerpMarketMetaDataLog","PerpSettleFeesLog","PerpSettlePnlLog","PerpUpdateFundingLog","Serum3OpenOrdersBalanceLog","Serum3OpenOrdersBalanceLogV2","Serum3RegisterMarketLog","TokenBalanceLog","TokenForceCloseBorrowsWithTokenLog","TokenLiqBankruptcyLog","TokenLiqWithTokenLog","TokenMetaDataLog","UpdateIndexLog","UpdateRateLog","WithdrawLoanOriginationFeeLog","WithdrawLog"]};
window.SIDEBAR_ITEMS = {"enum":["LoanOriginationFeeInstruction"],"fn":["emit_perp_balances"],"struct":["AccountBuybackFeesWithMngoLog","DeactivatePerpPositionLog","DeactivateTokenPositionLog","DepositLog","FillLog","FillLogV2","FilledPerpOrderLog","FlashLoanLog","FlashLoanTokenDetail","PerpBalanceLog","PerpForceClosePositionLog","PerpLiqBankruptcyLog","PerpLiqBaseOrPositivePnlLog","PerpLiqNegativePnlOrBankruptcyLog","PerpMarketMetaDataLog","PerpSettleFeesLog","PerpSettlePnlLog","PerpUpdateFundingLog","PerpUpdateFundingLogV2","Serum3OpenOrdersBalanceLog","Serum3OpenOrdersBalanceLogV2","Serum3RegisterMarketLog","TokenBalanceLog","TokenForceCloseBorrowsWithTokenLog","TokenLiqBankruptcyLog","TokenLiqWithTokenLog","TokenMetaDataLog","UpdateIndexLog","UpdateRateLog","WithdrawLoanOriginationFeeLog","WithdrawLog"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
<!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="Creates an Error with a particular message, using format!() style arguments"><title>error_msg in mango_v4 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">mango_v4</a>::<wbr><a class="macro" href="#">error_msg</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/mango_v4/error.rs.html#187-191">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>error_msg {
<!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="Creates an Error with a particular message, using format!() style arguments"><title>error_msg in mango_v4 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">mango_v4</a>::<wbr><a class="macro" href="#">error_msg</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/mango_v4/error.rs.html#189-193">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>error_msg {
($(<span class="macro-nonterminal">$arg</span>:tt)<span class="kw-2">*</span>) =&gt; { ... };
}</pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an Error with a particular message, using format!() style arguments</p>
<p>Example: error_msg!(“index {} not found”, index)</p>

View File

@ -1,4 +1,4 @@
<!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="Creates an Error with a particular message, using format!() style arguments"><title>error_msg_typed in mango_v4 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">mango_v4</a>::<wbr><a class="macro" href="#">error_msg_typed</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/mango_v4/error.rs.html#197-201">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>error_msg_typed {
<!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="Creates an Error with a particular message, using format!() style arguments"><title>error_msg_typed in mango_v4 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">mango_v4</a>::<wbr><a class="macro" href="#">error_msg_typed</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/mango_v4/error.rs.html#199-203">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>error_msg_typed {
(<span class="macro-nonterminal">$code</span>:expr, $(<span class="macro-nonterminal">$arg</span>:tt)<span class="kw-2">*</span>) =&gt; { ... };
}</pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates an Error with a particular message, using format!() style arguments</p>
<p>Example: error_msg_typed!(TokenPositionMissing, “index {} not found”, index)</p>

View File

@ -1,4 +1,4 @@
<!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="Like anchors require!(), but with a customizable message"><title>require_msg in mango_v4 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">mango_v4</a>::<wbr><a class="macro" href="#">require_msg</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/mango_v4/error.rs.html#207-213">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>require_msg {
<!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="Like anchors require!(), but with a customizable message"><title>require_msg in mango_v4 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">mango_v4</a>::<wbr><a class="macro" href="#">require_msg</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/mango_v4/error.rs.html#209-215">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>require_msg {
(<span class="macro-nonterminal">$invariant</span>:expr, $(<span class="macro-nonterminal">$arg</span>:tt)<span class="kw-2">*</span>) =&gt; { ... };
}</pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Like anchors require!(), but with a customizable message</p>
<p>Example: require_msg!(condition, “the condition on account {} was violated”, account_key);</p>

View File

@ -1,4 +1,4 @@
<!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="Like anchors require!(), but with a customizable message and type"><title>require_msg_typed in mango_v4 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">mango_v4</a>::<wbr><a class="macro" href="#">require_msg_typed</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/mango_v4/error.rs.html#219-225">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>require_msg_typed {
<!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="Like anchors require!(), but with a customizable message and type"><title>require_msg_typed in mango_v4 - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../static.files/ayu-be46fdc453a55015.css"><script src="../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[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="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../mango_v4/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">mango_v4</a>::<wbr><a class="macro" href="#">require_msg_typed</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/mango_v4/error.rs.html#221-227">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules! </span>require_msg_typed {
(<span class="macro-nonterminal">$invariant</span>:expr, <span class="macro-nonterminal">$code</span>:expr, $(<span class="macro-nonterminal">$arg</span>:tt)<span class="kw-2">*</span>) =&gt; { ... };
}</pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Like anchors require!(), but with a customizable message and type</p>
<p>Example: require_msg_typed!(condition, “the condition on account {} was violated”, account_key);</p>

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
<!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 `determine_oracle_type` fn in crate `mango_v4`."><title>determine_oracle_type in mango_v4::state - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::state</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">state</a>::<wbr><a class="fn" href="#">determine_oracle_type</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/state/oracle.rs.html#108-129">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn determine_oracle_type(
<!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 `determine_oracle_type` fn in crate `mango_v4`."><title>determine_oracle_type in mango_v4::state - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::state</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">state</a>::<wbr><a class="fn" href="#">determine_oracle_type</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/state/oracle.rs.html#114-135">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn determine_oracle_type(
acc_info: &amp;impl <a class="trait" href="../accounts_zerocopy/trait.KeyedAccountReader.html" title="trait mango_v4::accounts_zerocopy::KeyedAccountReader">KeyedAccountReader</a>
) -&gt; Result&lt;<a class="enum" href="enum.OracleType.html" title="enum mango_v4::state::OracleType">OracleType</a>&gt;</code></pre></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mango_v4" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>

View File

@ -1,10 +0,0 @@
<!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="Returns the price of one native base token, in native quote tokens"><title>oracle_price_and_slot in mango_v4::state - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::state</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">state</a>::<wbr><a class="fn" href="#">oracle_price_and_slot</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/state/oracle.rs.html#138-275">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn oracle_price_and_slot(
acc_info: &amp;impl <a class="trait" href="../accounts_zerocopy/trait.KeyedAccountReader.html" title="trait mango_v4::accounts_zerocopy::KeyedAccountReader">KeyedAccountReader</a>,
config: &amp;<a class="struct" href="struct.OracleConfig.html" title="struct mango_v4::state::OracleConfig">OracleConfig</a>,
base_decimals: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u8.html">u8</a>,
staleness_slot: <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u64.html">u64</a>&gt;
) -&gt; Result&lt;(<a class="type" href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html" title="type fixed::types::I80F48">I80F48</a>, <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u64.html">u64</a>)&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the price of one native base token, in native quote tokens</p>
<p>Example: The for SOL at 40 USDC/SOL it would return 0.04 (the unit is USDC-native/SOL-native)</p>
<p>This currently assumes that quote decimals is 6, like for USDC.</p>
<p>Pass <code>staleness_slot</code> = None to skip the staleness check</p>
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mango_v4" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>

View File

@ -0,0 +1,10 @@
<!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="Returns the price of one native base token, in native quote tokens"><title>oracle_price_and_state in mango_v4::state - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-c4dbdcde0fbd8430.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../static.files/light-db279b6232be9c13.css"><link rel="stylesheet" disabled href="../../static.files/dark-cf923f49f397b216.css"><link rel="stylesheet" disabled href="../../static.files/ayu-be46fdc453a55015.css"><script src="../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[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="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../mango_v4/index.html"><img class="rust-logo" src="../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mango_v4::state</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../index.html">mango_v4</a>::<wbr><a href="index.html">state</a>::<wbr><a class="fn" href="#">oracle_price_and_state</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/mango_v4/state/oracle.rs.html#144-309">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn oracle_price_and_state(
acc_info: &amp;impl <a class="trait" href="../accounts_zerocopy/trait.KeyedAccountReader.html" title="trait mango_v4::accounts_zerocopy::KeyedAccountReader">KeyedAccountReader</a>,
config: &amp;<a class="struct" href="struct.OracleConfig.html" title="struct mango_v4::state::OracleConfig">OracleConfig</a>,
base_decimals: <a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u8.html">u8</a>,
staleness_slot: <a class="enum" href="https://doc.rust-lang.org/1.69.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.69.0/std/primitive.u64.html">u64</a>&gt;
) -&gt; Result&lt;(<a class="type" href="https://docs.rs/fixed/~1.11/fixed/types/type.I80F48.html" title="type fixed::types::I80F48">I80F48</a>, <a class="struct" href="struct.OracleState.html" title="struct mango_v4::state::OracleState">OracleState</a>)&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the price of one native base token, in native quote tokens</p>
<p>Example: The for SOL at 40 USDC/SOL it would return 0.04 (the unit is USDC-native/SOL-native)</p>
<p>This currently assumes that quote decimals is 6, like for USDC.</p>
<p>Pass <code>staleness_slot</code> = None to skip the staleness check</p>
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="mango_v4" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0 (84c898d65 2023-04-16)" data-search-js="search-8a59a8356673ec1f.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../mango_v4/state/fn.oracle_price_and_slot.html">
<meta http-equiv="refresh" content="0;URL=../../../mango_v4/state/fn.oracle_price_and_state.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../mango_v4/state/fn.oracle_price_and_slot.html">../../../mango_v4/state/fn.oracle_price_and_slot.html</a>...</p>
<script>location.replace("../../../mango_v4/state/fn.oracle_price_and_slot.html" + location.search + location.hash);</script>
<p>Redirecting to <a href="../../../mango_v4/state/fn.oracle_price_and_state.html">../../../mango_v4/state/fn.oracle_price_and_state.html</a>...</p>
<script>location.replace("../../../mango_v4/state/fn.oracle_price_and_state.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../mango_v4/state/struct.OracleState.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../mango_v4/state/struct.OracleState.html">../../../mango_v4/state/struct.OracleState.html</a>...</p>
<script>location.replace("../../../mango_v4/state/struct.OracleState.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1 +1 @@
window.SIDEBAR_ITEMS = {"constant":["DAY","DAY_I80F48","FEE_BUYBACK_QUOTE_TOKEN_INDEX","FREE_ORDER_SLOT","HOUR","INSURANCE_TOKEN_INDEX","MAX_BANKS","MAX_NUM_EVENTS","MAX_ORDERTREE_NODES","MINIMUM_MAX_RATE","PERP_SETTLE_TOKEN_INDEX","QUOTE_DECIMALS","QUOTE_NATIVE_TO_UI","QUOTE_TOKEN_INDEX","YEAR_I80F48"],"enum":["BookSideOrderTree","CheckLiquidatable","EventType","IxGate","NodeTag","OracleType","OrderParams","OrderState","OrderTreeType","PlaceOrderType","PostOrderType","Side","SideAndOrderTree"],"fn":["compute_equity","determine_oracle_type","fixed_price_data","fixed_price_lots","new_node_key","oracle_pegged_price_data","oracle_pegged_price_offset","oracle_price_and_slot","power_of_ten","rank_orders"],"macro":["account_seeds","bank_seeds","group_seeds","serum_market_seeds"],"mod":["switchboard_v1_devnet_oracle","switchboard_v2_mainnet_oracle"],"struct":["AnyEvent","AnyNode","Bank","BookSide","BookSideIter","BookSideIterItem","BookSideOrderHandle","DynamicAccount","EventQueue","EventQueueHeader","FillEvent","FreeNode","Group","InnerNode","LeafNode","MangoAccount","MangoAccountDynamicHeader","MangoAccountFixed","MintInfo","OracleConfig","OracleConfigParams","Order","OrderTreeIter","OrderTreeNodes","OrderTreeRoot","Orderbook","OutEvent","PerpMarket","PerpOpenOrder","PerpPosition","Serum3Market","Serum3MarketIndexReservation","Serum3Orders","StablePriceModel","StubOracle","TokenPosition"],"trait":["DerefOrBorrow","DerefOrBorrowMut","DynamicHeader","MangoAccountLoader","QueueHeader"],"type":["MangoAccountLoadedRef","MangoAccountLoadedRefCell","MangoAccountLoadedRefCellMut","MangoAccountRef","MangoAccountRefMut","MangoAccountValue","NodeHandle","PerpMarketIndex","Serum3MarketIndex","TokenIndex"]};
window.SIDEBAR_ITEMS = {"constant":["DAY","DAY_I80F48","FEE_BUYBACK_QUOTE_TOKEN_INDEX","FREE_ORDER_SLOT","HOUR","INSURANCE_TOKEN_INDEX","MAX_BANKS","MAX_NUM_EVENTS","MAX_ORDERTREE_NODES","MINIMUM_MAX_RATE","PERP_SETTLE_TOKEN_INDEX","QUOTE_DECIMALS","QUOTE_NATIVE_TO_UI","QUOTE_TOKEN_INDEX","YEAR_I80F48"],"enum":["BookSideOrderTree","CheckLiquidatable","EventType","IxGate","NodeTag","OracleType","OrderParams","OrderState","OrderTreeType","PlaceOrderType","PostOrderType","Side","SideAndOrderTree"],"fn":["compute_equity","determine_oracle_type","fixed_price_data","fixed_price_lots","new_node_key","oracle_pegged_price_data","oracle_pegged_price_offset","oracle_price_and_state","power_of_ten","rank_orders"],"macro":["account_seeds","bank_seeds","group_seeds","serum_market_seeds"],"mod":["switchboard_v1_devnet_oracle","switchboard_v2_mainnet_oracle"],"struct":["AnyEvent","AnyNode","Bank","BookSide","BookSideIter","BookSideIterItem","BookSideOrderHandle","DynamicAccount","EventQueue","EventQueueHeader","FillEvent","FreeNode","Group","InnerNode","LeafNode","MangoAccount","MangoAccountDynamicHeader","MangoAccountFixed","MintInfo","OracleConfig","OracleConfigParams","OracleState","Order","OrderTreeIter","OrderTreeNodes","OrderTreeRoot","Orderbook","OutEvent","PerpMarket","PerpOpenOrder","PerpPosition","Serum3Market","Serum3MarketIndexReservation","Serum3Orders","StablePriceModel","StubOracle","TokenPosition"],"trait":["DerefOrBorrow","DerefOrBorrowMut","DynamicHeader","MangoAccountLoader","QueueHeader"],"type":["MangoAccountLoadedRef","MangoAccountLoadedRefCell","MangoAccountLoadedRefCellMut","MangoAccountRef","MangoAccountRefMut","MangoAccountValue","NodeHandle","PerpMarketIndex","Serum3MarketIndex","TokenIndex"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -228,6 +228,8 @@
<a href="#228" id="228">228</a>
<a href="#229" id="229">229</a>
<a href="#230" id="230">230</a>
<a href="#231" id="231">231</a>
<a href="#232" id="232">232</a>
</pre><pre class="rust"><code><span class="kw">use </span>anchor_lang::prelude::<span class="kw-2">*</span>;
<span class="kw">use </span>core::fmt::Display;
@ -329,6 +331,8 @@
</span>HealthRegionBadInnerInstruction,
<span class="attr">#[msg(<span class="string">&quot;token is in force close&quot;</span>)]
</span>TokenInForceClose,
<span class="attr">#[msg(<span class="string">&quot;incorrect number of health accounts&quot;</span>)]
</span>InvalidHealthAccountCount,
}
<span class="kw">impl </span>MangoError {

View File

@ -530,6 +530,10 @@
<a href="#530" id="530">530</a>
<a href="#531" id="531">531</a>
<a href="#532" id="532">532</a>
<a href="#533" id="533">533</a>
<a href="#534" id="534">534</a>
<a href="#535" id="535">535</a>
<a href="#536" id="536">536</a>
</pre><pre class="rust"><code><span class="kw">use </span>anchor_lang::prelude::<span class="kw-2">*</span>;
<span class="kw">use </span>anchor_lang::ZeroCopy;
@ -598,7 +602,11 @@
<span class="kw">let </span>expected_ais = active_token_len * <span class="number">2 </span><span class="comment">// banks + oracles
</span>+ active_perp_len * <span class="number">2 </span><span class="comment">// PerpMarkets + Oracles
</span>+ active_serum3_len; <span class="comment">// open_orders
</span><span class="macro">require_eq!</span>(ais.len(), expected_ais);
</span><span class="macro">require_msg_typed!</span>(ais.len() == expected_ais, MangoError::InvalidHealthAccountCount,
<span class="string">&quot;received {} accounts but expected {} ({} banks, {} bank oracles, {} perp markets, {} perp oracles, {} serum3 oos)&quot;</span>,
ais.len(), expected_ais,
active_token_len, active_token_len, active_perp_len, active_perp_len, active_serum3_len
);
<span class="prelude-val">Ok</span>(FixedOrderAccountRetriever {
ais: AccountInfoRef::borrow_slice(ais)<span class="question-mark">?</span>,

View File

@ -404,9 +404,26 @@
<a href="#404" id="404">404</a>
<a href="#405" id="405">405</a>
<a href="#406" id="406">406</a>
<a href="#407" id="407">407</a>
<a href="#408" id="408">408</a>
<a href="#409" id="409">409</a>
<a href="#410" id="410">410</a>
<a href="#411" id="411">411</a>
<a href="#412" id="412">412</a>
<a href="#413" id="413">413</a>
<a href="#414" id="414">414</a>
<a href="#415" id="415">415</a>
<a href="#416" id="416">416</a>
<a href="#417" id="417">417</a>
<a href="#418" id="418">418</a>
<a href="#419" id="419">419</a>
<a href="#420" id="420">420</a>
<a href="#421" id="421">421</a>
<a href="#422" id="422">422</a>
<a href="#423" id="423">423</a>
</pre><pre class="rust"><code><span class="kw">use crate</span>::{
accounts_ix::FlashLoanType,
state::{PerpMarket, PerpPosition},
state::{OracleType, PerpMarket, PerpPosition},
};
<span class="kw">use </span>anchor_lang::prelude::<span class="kw-2">*</span>;
<span class="kw">use </span>borsh::BorshSerialize;
@ -558,6 +575,23 @@
<span class="kw">pub </span>instantaneous_funding_rate: i128,
}
<span class="attr">#[event]
</span><span class="kw">pub struct </span>PerpUpdateFundingLogV2 {
<span class="kw">pub </span>mango_group: Pubkey,
<span class="kw">pub </span>market_index: u16,
<span class="kw">pub </span>long_funding: i128,
<span class="kw">pub </span>short_funding: i128,
<span class="kw">pub </span>price: i128,
<span class="kw">pub </span>oracle_slot: u64,
<span class="kw">pub </span>oracle_confidence: i128,
<span class="kw">pub </span>oracle_type: OracleType,
<span class="kw">pub </span>stable_price: i128,
<span class="kw">pub </span>fees_accrued: i128,
<span class="kw">pub </span>fees_settled: i128,
<span class="kw">pub </span>open_interest: i64,
<span class="kw">pub </span>instantaneous_funding_rate: i128,
}
<span class="attr">#[event]
</span><span class="kw">pub struct </span>UpdateIndexLog {
<span class="kw">pub </span>mango_group: Pubkey,

View File

@ -1855,7 +1855,7 @@
staleness_slot: <span class="prelude-ty">Option</span>&lt;u64&gt;,
) -&gt; <span class="prelude-ty">Result</span>&lt;I80F48&gt; {
<span class="macro">require_keys_eq!</span>(<span class="self">self</span>.oracle, <span class="kw-2">*</span>oracle_acc.key());
<span class="kw">let </span>(price, <span class="kw">_</span>) = oracle::oracle_price_and_slot(
<span class="kw">let </span>(price, <span class="kw">_</span>) = oracle::oracle_price_and_state(
oracle_acc,
<span class="kw-2">&amp;</span><span class="self">self</span>.oracle_config,
<span class="self">self</span>.mint_decimals,

View File

@ -342,6 +342,40 @@
<a href="#342" id="342">342</a>
<a href="#343" id="343">343</a>
<a href="#344" id="344">344</a>
<a href="#345" id="345">345</a>
<a href="#346" id="346">346</a>
<a href="#347" id="347">347</a>
<a href="#348" id="348">348</a>
<a href="#349" id="349">349</a>
<a href="#350" id="350">350</a>
<a href="#351" id="351">351</a>
<a href="#352" id="352">352</a>
<a href="#353" id="353">353</a>
<a href="#354" id="354">354</a>
<a href="#355" id="355">355</a>
<a href="#356" id="356">356</a>
<a href="#357" id="357">357</a>
<a href="#358" id="358">358</a>
<a href="#359" id="359">359</a>
<a href="#360" id="360">360</a>
<a href="#361" id="361">361</a>
<a href="#362" id="362">362</a>
<a href="#363" id="363">363</a>
<a href="#364" id="364">364</a>
<a href="#365" id="365">365</a>
<a href="#366" id="366">366</a>
<a href="#367" id="367">367</a>
<a href="#368" id="368">368</a>
<a href="#369" id="369">369</a>
<a href="#370" id="370">370</a>
<a href="#371" id="371">371</a>
<a href="#372" id="372">372</a>
<a href="#373" id="373">373</a>
<a href="#374" id="374">374</a>
<a href="#375" id="375">375</a>
<a href="#376" id="376">376</a>
<a href="#377" id="377">377</a>
<a href="#378" id="378">378</a>
</pre><pre class="rust"><code><span class="kw">use </span>std::mem::size_of;
<span class="kw">use </span>anchor_lang::prelude::<span class="kw-2">*</span>;
@ -427,7 +461,7 @@
}
}
<span class="attr">#[derive(PartialEq)]
<span class="attr">#[derive(PartialEq, AnchorSerialize, AnchorDeserialize)]
</span><span class="kw">pub enum </span>OracleType {
Pyth,
Stub,
@ -435,6 +469,12 @@
SwitchboardV2,
}
<span class="kw">pub struct </span>OracleState {
<span class="kw">pub </span>last_update_slot: u64,
<span class="kw">pub </span>confidence: I80F48,
<span class="kw">pub </span>oracle_type: OracleType,
}
<span class="attr">#[account(zero_copy(safe_bytemuck_derives))]
</span><span class="kw">pub struct </span>StubOracle {
<span class="comment">// ABI: Clients rely on this being at offset 8
@ -479,18 +519,25 @@
/// This currently assumes that quote decimals is 6, like for USDC.
///
/// Pass `staleness_slot` = None to skip the staleness check
</span><span class="kw">pub fn </span>oracle_price_and_slot(
</span><span class="kw">pub fn </span>oracle_price_and_state(
acc_info: <span class="kw-2">&amp;</span><span class="kw">impl </span>KeyedAccountReader,
config: <span class="kw-2">&amp;</span>OracleConfig,
base_decimals: u8,
staleness_slot: <span class="prelude-ty">Option</span>&lt;u64&gt;,
) -&gt; <span class="prelude-ty">Result</span>&lt;(I80F48, u64)&gt; {
) -&gt; <span class="prelude-ty">Result</span>&lt;(I80F48, OracleState)&gt; {
<span class="kw">let </span>data = <span class="kw-2">&amp;</span>acc_info.data();
<span class="kw">let </span>oracle_type = determine_oracle_type(acc_info)<span class="question-mark">?</span>;
<span class="kw">let </span>staleness_slot = staleness_slot.unwrap_or(<span class="number">0</span>);
<span class="prelude-val">Ok</span>(<span class="kw">match </span>oracle_type {
OracleType::Stub =&gt; (acc_info.load::&lt;StubOracle&gt;()<span class="question-mark">?</span>.price, <span class="number">0</span>),
OracleType::Stub =&gt; (
acc_info.load::&lt;StubOracle&gt;()<span class="question-mark">?</span>.price,
OracleState {
last_update_slot: <span class="number">0</span>,
confidence: I80F48::ZERO,
oracle_type: OracleType::Stub,
},
),
OracleType::Pyth =&gt; {
<span class="kw">let </span>price_account = pyth_sdk_solana::state::load_price_account(data).unwrap();
<span class="kw">let </span>price_data = price_account.to_price();
@ -531,7 +578,14 @@
<span class="kw">let </span>decimals = (price_account.expo <span class="kw">as </span>i8) + QUOTE_DECIMALS - (base_decimals <span class="kw">as </span>i8);
<span class="kw">let </span>decimal_adj = power_of_ten(decimals);
(price * decimal_adj, last_slot)
(
price * decimal_adj,
OracleState {
last_update_slot: last_slot,
confidence: I80F48::from_num(price_data.conf),
oracle_type: OracleType::Pyth,
},
)
}
OracleType::SwitchboardV2 =&gt; {
<span class="kw">fn </span>from_foreign_error(e: <span class="kw">impl </span>std::fmt::Display) -&gt; Error {
@ -577,7 +631,14 @@
<span class="kw">let </span>decimals = QUOTE_DECIMALS - (base_decimals <span class="kw">as </span>i8);
<span class="kw">let </span>decimal_adj = power_of_ten(decimals);
(price * decimal_adj, round_open_slot)
(
price * decimal_adj,
OracleState {
last_update_slot: round_open_slot,
confidence: I80F48::from_num(std_deviation_decimal),
oracle_type: OracleType::SwitchboardV2,
},
)
}
OracleType::SwitchboardV1 =&gt; {
<span class="kw">let </span>result = FastRoundResultAccountData::deserialize(data).unwrap();
@ -613,7 +674,14 @@
<span class="kw">let </span>decimals = QUOTE_DECIMALS - (base_decimals <span class="kw">as </span>i8);
<span class="kw">let </span>decimal_adj = power_of_ten(decimals);
(price * decimal_adj, round_open_slot)
(
price * decimal_adj,
OracleState {
last_update_slot: round_open_slot,
confidence: max_response - min_response,
oracle_type: OracleType::SwitchboardV1,
},
)
}
})
}

View File

@ -492,6 +492,8 @@
<a href="#492" id="492">492</a>
<a href="#493" id="493">493</a>
<a href="#494" id="494">494</a>
<a href="#495" id="495">495</a>
<a href="#496" id="496">496</a>
</pre><pre class="rust"><code><span class="kw">use </span>std::mem::size_of;
<span class="kw">use </span>anchor_lang::prelude::<span class="kw-2">*</span>;
@ -501,11 +503,11 @@
<span class="kw">use </span><span class="kw">crate</span>::accounts_zerocopy::KeyedAccountReader;
<span class="kw">use </span><span class="kw">crate</span>::error::MangoError;
<span class="kw">use </span><span class="kw">crate</span>::logs::PerpUpdateFundingLog;
<span class="kw">use </span><span class="kw">crate</span>::logs::PerpUpdateFundingLogV2;
<span class="kw">use </span><span class="kw">crate</span>::state::orderbook::Side;
<span class="kw">use </span><span class="kw">crate</span>::state::{oracle, TokenIndex};
<span class="kw">use super</span>::{orderbook, OracleConfig, Orderbook, StablePriceModel, DAY_I80F48};
<span class="kw">use super</span>::{orderbook, OracleConfig, OracleState, Orderbook, StablePriceModel, DAY_I80F48};
<span class="kw">pub type </span>PerpMarketIndex = u16;
@ -740,7 +742,7 @@
staleness_slot: <span class="prelude-ty">Option</span>&lt;u64&gt;,
) -&gt; <span class="prelude-ty">Result</span>&lt;I80F48&gt; {
<span class="macro">require_keys_eq!</span>(<span class="self">self</span>.oracle, <span class="kw-2">*</span>oracle_acc.key());
<span class="kw">let </span>(price, <span class="kw">_</span>) = oracle::oracle_price_and_slot(
<span class="kw">let </span>(price, <span class="kw">_</span>) = oracle::oracle_price_and_state(
oracle_acc,
<span class="kw-2">&amp;</span><span class="self">self</span>.oracle_config,
<span class="self">self</span>.base_decimals,
@ -750,13 +752,13 @@
<span class="prelude-val">Ok</span>(price)
}
<span class="kw">pub fn </span>oracle_price_and_slot(
<span class="kw">pub fn </span>oracle_price_and_state(
<span class="kw-2">&amp;</span><span class="self">self</span>,
oracle_acc: <span class="kw-2">&amp;</span><span class="kw">impl </span>KeyedAccountReader,
staleness_slot: <span class="prelude-ty">Option</span>&lt;u64&gt;,
) -&gt; <span class="prelude-ty">Result</span>&lt;(I80F48, u64)&gt; {
) -&gt; <span class="prelude-ty">Result</span>&lt;(I80F48, OracleState)&gt; {
<span class="macro">require_keys_eq!</span>(<span class="self">self</span>.oracle, <span class="kw-2">*</span>oracle_acc.key());
oracle::oracle_price_and_slot(
oracle::oracle_price_and_state(
oracle_acc,
<span class="kw-2">&amp;</span><span class="self">self</span>.oracle_config,
<span class="self">self</span>.base_decimals,
@ -773,7 +775,7 @@
<span class="kw-2">&amp;mut </span><span class="self">self</span>,
book: <span class="kw-2">&amp;</span>Orderbook,
oracle_price: I80F48,
oracle_slot: u64,
oracle_state: OracleState,
now_ts: u64,
) -&gt; <span class="prelude-ty">Result</span>&lt;()&gt; {
<span class="kw">if </span>now_ts &lt;= <span class="self">self</span>.funding_last_updated {
@ -825,13 +827,15 @@
<span class="self">self</span>.stable_price_model
.update(now_ts, oracle_price.to_num());
<span class="macro">emit!</span>(PerpUpdateFundingLog {
<span class="macro">emit!</span>(PerpUpdateFundingLogV2 {
mango_group: <span class="self">self</span>.group,
market_index: <span class="self">self</span>.perp_market_index,
long_funding: <span class="self">self</span>.long_funding.to_bits(),
short_funding: <span class="self">self</span>.short_funding.to_bits(),
price: oracle_price.to_bits(),
oracle_slot: oracle_slot,
oracle_slot: oracle_state.last_update_slot,
oracle_confidence: oracle_state.confidence.to_bits(),
oracle_type: oracle_state.oracle_type,
stable_price: <span class="self">self</span>.stable_price().to_bits(),
fees_accrued: <span class="self">self</span>.fees_accrued.to_bits(),
fees_settled: <span class="self">self</span>.fees_settled.to_bits(),

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More