Enum EventInstance

Source
#[non_exhaustive]
pub enum EventInstance {
Show 53 variants AcceptedPositionFeesProposal(MoveInstance<AcceptedPositionFeesProposal>), AllocatedCollateral(MoveInstance<AllocatedCollateral>), AllocatedCollateralSubAccount(MoveInstance<AllocatedCollateralSubAccount>), CanceledOrder(MoveInstance<CanceledOrder>), CanceledOrders(MoveInstance<CanceledOrders>), CreatedAccount(MoveInstance<CreatedAccount<Otw>>), CreatedClearingHouse(MoveInstance<CreatedClearingHouse>), CreatedMarginRatiosProposal(MoveInstance<CreatedMarginRatiosProposal>), CreatedOrderbook(MoveInstance<CreatedOrderbook>), CreatedPosition(MoveInstance<CreatedPosition>), CreatedPositionFeesProposal(MoveInstance<CreatedPositionFeesProposal>), CreatedStopOrderTicket(MoveInstance<CreatedStopOrderTicket>), CreatedSubAccount(MoveInstance<CreatedSubAccount>), DeallocatedCollateral(MoveInstance<DeallocatedCollateral>), DeallocatedCollateralSubAccount(MoveInstance<DeallocatedCollateralSubAccount>), DeletedMarginRatiosProposal(MoveInstance<DeletedMarginRatiosProposal>), DeletedPositionFeesProposal(MoveInstance<DeletedPositionFeesProposal>), DeletedStopOrderTicket(MoveInstance<DeletedStopOrderTicket>), DeletedSubAccount(MoveInstance<DeletedSubAccount>), DepositedCollateral(MoveInstance<DepositedCollateral<Otw>>), DepositedCollateralSubAccount(MoveInstance<DepositedCollateralSubAccount>), DonatedToInsuranceFund(MoveInstance<DonatedToInsuranceFund>), FilledMakerOrder(MoveInstance<FilledMakerOrder>), FilledTakerOrder(MoveInstance<FilledTakerOrder>), LiquidatedPosition(MoveInstance<LiquidatedPosition>), OrderbookPostReceipt(MoveInstance<OrderbookPostReceipt>), PostedOrder(MoveInstance<PostedOrder>), RegisteredCollateralInfo(MoveInstance<RegisteredCollateralInfo<Otw>>), RegisteredMarketInfo(MoveInstance<RegisteredMarketInfo<Otw>>), RejectedPositionFeesProposal(MoveInstance<RejectedPositionFeesProposal>), RemovedRegisteredMarketInfo(MoveInstance<RemovedRegisteredMarketInfo<Otw>>), ResettedPositionFees(MoveInstance<ResettedPositionFees>), SetSubAccountUser(MoveInstance<SetSubAccountUser>), SettledFunding(MoveInstance<SettledFunding>), UpdatedBaseOracleTolerance(MoveInstance<UpdatedBaseOracleTolerance>), UpdatedClearingHouseVersion(MoveInstance<UpdatedClearingHouseVersion>), UpdatedCollateralOracleTolerance(MoveInstance<UpdatedCollateralOracleTolerance>), UpdatedCumFundings(MoveInstance<UpdatedCumFundings>), UpdatedFees(MoveInstance<UpdatedFees>), UpdatedFunding(MoveInstance<UpdatedFunding>), UpdatedFundingParameters(MoveInstance<UpdatedFundingParameters>), UpdatedLiquidationTolerance(MoveInstance<UpdatedLiquidationTolerance>), UpdatedMarginRatios(MoveInstance<UpdatedMarginRatios>), UpdatedMaxPendingOrders(MoveInstance<UpdatedMaxPendingOrders>), UpdatedMinOrderUsdValue(MoveInstance<UpdatedMinOrderUsdValue>), UpdatedOpenInterestAndFeesAccrued(MoveInstance<UpdatedOpenInterestAndFeesAccrued>), UpdatedPremiumTwap(MoveInstance<UpdatedPremiumTwap>), UpdatedSpreadTwap(MoveInstance<UpdatedSpreadTwap>), UpdatedSpreadTwapParameters(MoveInstance<UpdatedSpreadTwapParameters>), WithdrewCollateral(MoveInstance<WithdrewCollateral<Otw>>), WithdrewCollateralSubAccount(MoveInstance<WithdrewCollateralSubAccount>), WithdrewFees(MoveInstance<WithdrewFees>), WithdrewInsuranceFund(MoveInstance<WithdrewInsuranceFund>),
}
Expand description

A Perpetuals event instance of any kind.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AcceptedPositionFeesProposal(MoveInstance<AcceptedPositionFeesProposal>)

§

AllocatedCollateral(MoveInstance<AllocatedCollateral>)

§

AllocatedCollateralSubAccount(MoveInstance<AllocatedCollateralSubAccount>)

§

CanceledOrder(MoveInstance<CanceledOrder>)

§

CanceledOrders(MoveInstance<CanceledOrders>)

§

CreatedAccount(MoveInstance<CreatedAccount<Otw>>)

§

CreatedClearingHouse(MoveInstance<CreatedClearingHouse>)

§

CreatedMarginRatiosProposal(MoveInstance<CreatedMarginRatiosProposal>)

§

CreatedOrderbook(MoveInstance<CreatedOrderbook>)

§

CreatedPosition(MoveInstance<CreatedPosition>)

§

CreatedPositionFeesProposal(MoveInstance<CreatedPositionFeesProposal>)

§

CreatedStopOrderTicket(MoveInstance<CreatedStopOrderTicket>)

§

CreatedSubAccount(MoveInstance<CreatedSubAccount>)

§

DeallocatedCollateral(MoveInstance<DeallocatedCollateral>)

§

DeallocatedCollateralSubAccount(MoveInstance<DeallocatedCollateralSubAccount>)

§

DeletedMarginRatiosProposal(MoveInstance<DeletedMarginRatiosProposal>)

§

DeletedPositionFeesProposal(MoveInstance<DeletedPositionFeesProposal>)

§

DeletedStopOrderTicket(MoveInstance<DeletedStopOrderTicket>)

§

DeletedSubAccount(MoveInstance<DeletedSubAccount>)

§

DepositedCollateral(MoveInstance<DepositedCollateral<Otw>>)

§

DepositedCollateralSubAccount(MoveInstance<DepositedCollateralSubAccount>)

§

DonatedToInsuranceFund(MoveInstance<DonatedToInsuranceFund>)

§

FilledMakerOrder(MoveInstance<FilledMakerOrder>)

§

FilledTakerOrder(MoveInstance<FilledTakerOrder>)

§

LiquidatedPosition(MoveInstance<LiquidatedPosition>)

§

OrderbookPostReceipt(MoveInstance<OrderbookPostReceipt>)

§

PostedOrder(MoveInstance<PostedOrder>)

§

RegisteredCollateralInfo(MoveInstance<RegisteredCollateralInfo<Otw>>)

§

RegisteredMarketInfo(MoveInstance<RegisteredMarketInfo<Otw>>)

§

RejectedPositionFeesProposal(MoveInstance<RejectedPositionFeesProposal>)

§

RemovedRegisteredMarketInfo(MoveInstance<RemovedRegisteredMarketInfo<Otw>>)

§

ResettedPositionFees(MoveInstance<ResettedPositionFees>)

§

SetSubAccountUser(MoveInstance<SetSubAccountUser>)

§

SettledFunding(MoveInstance<SettledFunding>)

§

UpdatedBaseOracleTolerance(MoveInstance<UpdatedBaseOracleTolerance>)

§

UpdatedClearingHouseVersion(MoveInstance<UpdatedClearingHouseVersion>)

§

UpdatedCollateralOracleTolerance(MoveInstance<UpdatedCollateralOracleTolerance>)

§

UpdatedCumFundings(MoveInstance<UpdatedCumFundings>)

§

UpdatedFees(MoveInstance<UpdatedFees>)

§

UpdatedFunding(MoveInstance<UpdatedFunding>)

§

UpdatedFundingParameters(MoveInstance<UpdatedFundingParameters>)

§

UpdatedLiquidationTolerance(MoveInstance<UpdatedLiquidationTolerance>)

§

UpdatedMarginRatios(MoveInstance<UpdatedMarginRatios>)

§

UpdatedMaxPendingOrders(MoveInstance<UpdatedMaxPendingOrders>)

§

UpdatedMinOrderUsdValue(MoveInstance<UpdatedMinOrderUsdValue>)

§

UpdatedOpenInterestAndFeesAccrued(MoveInstance<UpdatedOpenInterestAndFeesAccrued>)

§

UpdatedPremiumTwap(MoveInstance<UpdatedPremiumTwap>)

§

UpdatedSpreadTwap(MoveInstance<UpdatedSpreadTwap>)

§

UpdatedSpreadTwapParameters(MoveInstance<UpdatedSpreadTwapParameters>)

§

WithdrewCollateral(MoveInstance<WithdrewCollateral<Otw>>)

§

WithdrewCollateralSubAccount(MoveInstance<WithdrewCollateralSubAccount>)

§

WithdrewFees(MoveInstance<WithdrewFees>)

§

WithdrewInsuranceFund(MoveInstance<WithdrewInsuranceFund>)

Implementations§

Source§

impl EventInstance

Source

pub const fn is_accepted_position_fees_proposal(&self) -> bool

Returns true if this value is of type AcceptedPositionFeesProposal. Returns false otherwise

Source

pub const fn is_allocated_collateral(&self) -> bool

Returns true if this value is of type AllocatedCollateral. Returns false otherwise

Source

pub const fn is_allocated_collateral_sub_account(&self) -> bool

Returns true if this value is of type AllocatedCollateralSubAccount. Returns false otherwise

Source

pub const fn is_canceled_order(&self) -> bool

Returns true if this value is of type CanceledOrder. Returns false otherwise

Source

pub const fn is_canceled_orders(&self) -> bool

Returns true if this value is of type CanceledOrders. Returns false otherwise

Source

pub const fn is_created_account(&self) -> bool

Returns true if this value is of type CreatedAccount. Returns false otherwise

Source

pub const fn is_created_clearing_house(&self) -> bool

Returns true if this value is of type CreatedClearingHouse. Returns false otherwise

Source

pub const fn is_created_margin_ratios_proposal(&self) -> bool

Returns true if this value is of type CreatedMarginRatiosProposal. Returns false otherwise

Source

pub const fn is_created_orderbook(&self) -> bool

Returns true if this value is of type CreatedOrderbook. Returns false otherwise

Source

pub const fn is_created_position(&self) -> bool

Returns true if this value is of type CreatedPosition. Returns false otherwise

Source

pub const fn is_created_position_fees_proposal(&self) -> bool

Returns true if this value is of type CreatedPositionFeesProposal. Returns false otherwise

Source

pub const fn is_created_stop_order_ticket(&self) -> bool

Returns true if this value is of type CreatedStopOrderTicket. Returns false otherwise

Source

pub const fn is_created_sub_account(&self) -> bool

Returns true if this value is of type CreatedSubAccount. Returns false otherwise

Source

pub const fn is_deallocated_collateral(&self) -> bool

Returns true if this value is of type DeallocatedCollateral. Returns false otherwise

Source

pub const fn is_deallocated_collateral_sub_account(&self) -> bool

Returns true if this value is of type DeallocatedCollateralSubAccount. Returns false otherwise

Source

pub const fn is_deleted_margin_ratios_proposal(&self) -> bool

Returns true if this value is of type DeletedMarginRatiosProposal. Returns false otherwise

Source

pub const fn is_deleted_position_fees_proposal(&self) -> bool

Returns true if this value is of type DeletedPositionFeesProposal. Returns false otherwise

Source

pub const fn is_deleted_stop_order_ticket(&self) -> bool

Returns true if this value is of type DeletedStopOrderTicket. Returns false otherwise

Source

pub const fn is_deleted_sub_account(&self) -> bool

Returns true if this value is of type DeletedSubAccount. Returns false otherwise

Source

pub const fn is_deposited_collateral(&self) -> bool

Returns true if this value is of type DepositedCollateral. Returns false otherwise

Source

pub const fn is_deposited_collateral_sub_account(&self) -> bool

Returns true if this value is of type DepositedCollateralSubAccount. Returns false otherwise

Source

pub const fn is_donated_to_insurance_fund(&self) -> bool

Returns true if this value is of type DonatedToInsuranceFund. Returns false otherwise

Source

pub const fn is_filled_maker_order(&self) -> bool

Returns true if this value is of type FilledMakerOrder. Returns false otherwise

Source

pub const fn is_filled_taker_order(&self) -> bool

Returns true if this value is of type FilledTakerOrder. Returns false otherwise

Source

pub const fn is_liquidated_position(&self) -> bool

Returns true if this value is of type LiquidatedPosition. Returns false otherwise

Source

pub const fn is_orderbook_post_receipt(&self) -> bool

Returns true if this value is of type OrderbookPostReceipt. Returns false otherwise

Source

pub const fn is_posted_order(&self) -> bool

Returns true if this value is of type PostedOrder. Returns false otherwise

Source

pub const fn is_registered_collateral_info(&self) -> bool

Returns true if this value is of type RegisteredCollateralInfo. Returns false otherwise

Source

pub const fn is_registered_market_info(&self) -> bool

Returns true if this value is of type RegisteredMarketInfo. Returns false otherwise

Source

pub const fn is_rejected_position_fees_proposal(&self) -> bool

Returns true if this value is of type RejectedPositionFeesProposal. Returns false otherwise

Source

pub const fn is_removed_registered_market_info(&self) -> bool

Returns true if this value is of type RemovedRegisteredMarketInfo. Returns false otherwise

Source

pub const fn is_resetted_position_fees(&self) -> bool

Returns true if this value is of type ResettedPositionFees. Returns false otherwise

Source

pub const fn is_set_sub_account_user(&self) -> bool

Returns true if this value is of type SetSubAccountUser. Returns false otherwise

Source

pub const fn is_settled_funding(&self) -> bool

Returns true if this value is of type SettledFunding. Returns false otherwise

Source

pub const fn is_updated_base_oracle_tolerance(&self) -> bool

Returns true if this value is of type UpdatedBaseOracleTolerance. Returns false otherwise

Source

pub const fn is_updated_clearing_house_version(&self) -> bool

Returns true if this value is of type UpdatedClearingHouseVersion. Returns false otherwise

Source

pub const fn is_updated_collateral_oracle_tolerance(&self) -> bool

Returns true if this value is of type UpdatedCollateralOracleTolerance. Returns false otherwise

Source

pub const fn is_updated_cum_fundings(&self) -> bool

Returns true if this value is of type UpdatedCumFundings. Returns false otherwise

Source

pub const fn is_updated_fees(&self) -> bool

Returns true if this value is of type UpdatedFees. Returns false otherwise

Source

pub const fn is_updated_funding(&self) -> bool

Returns true if this value is of type UpdatedFunding. Returns false otherwise

Source

pub const fn is_updated_funding_parameters(&self) -> bool

Returns true if this value is of type UpdatedFundingParameters. Returns false otherwise

Source

pub const fn is_updated_liquidation_tolerance(&self) -> bool

Returns true if this value is of type UpdatedLiquidationTolerance. Returns false otherwise

Source

pub const fn is_updated_margin_ratios(&self) -> bool

Returns true if this value is of type UpdatedMarginRatios. Returns false otherwise

Source

pub const fn is_updated_max_pending_orders(&self) -> bool

Returns true if this value is of type UpdatedMaxPendingOrders. Returns false otherwise

Source

pub const fn is_updated_min_order_usd_value(&self) -> bool

Returns true if this value is of type UpdatedMinOrderUsdValue. Returns false otherwise

Source

pub const fn is_updated_open_interest_and_fees_accrued(&self) -> bool

Returns true if this value is of type UpdatedOpenInterestAndFeesAccrued. Returns false otherwise

Source

pub const fn is_updated_premium_twap(&self) -> bool

Returns true if this value is of type UpdatedPremiumTwap. Returns false otherwise

Source

pub const fn is_updated_spread_twap(&self) -> bool

Returns true if this value is of type UpdatedSpreadTwap. Returns false otherwise

Source

pub const fn is_updated_spread_twap_parameters(&self) -> bool

Returns true if this value is of type UpdatedSpreadTwapParameters. Returns false otherwise

Source

pub const fn is_withdrew_collateral(&self) -> bool

Returns true if this value is of type WithdrewCollateral. Returns false otherwise

Source

pub const fn is_withdrew_collateral_sub_account(&self) -> bool

Returns true if this value is of type WithdrewCollateralSubAccount. Returns false otherwise

Source

pub const fn is_withdrew_fees(&self) -> bool

Returns true if this value is of type WithdrewFees. Returns false otherwise

Source

pub const fn is_withdrew_insurance_fund(&self) -> bool

Returns true if this value is of type WithdrewInsuranceFund. Returns false otherwise

Source§

impl EventInstance

Source

pub fn new( type_: StructTag, bcs: impl AsRef<[u8]>, ) -> Result<Self, FromRawEventError>

Source

pub fn struct_tag(&self) -> StructTag

Trait Implementations§

Source§

impl Clone for EventInstance

Source§

fn clone(&self) -> EventInstance

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventInstance

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for EventInstance

Source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<MoveInstance<AcceptedPositionFeesProposal>> for EventInstance

Source§

fn from(value: MoveInstance<AcceptedPositionFeesProposal>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<AllocatedCollateral>> for EventInstance

Source§

fn from(value: MoveInstance<AllocatedCollateral>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<AllocatedCollateralSubAccount>> for EventInstance

Source§

fn from(value: MoveInstance<AllocatedCollateralSubAccount>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CanceledOrder>> for EventInstance

Source§

fn from(value: MoveInstance<CanceledOrder>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CanceledOrders>> for EventInstance

Source§

fn from(value: MoveInstance<CanceledOrders>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CreatedAccount<Otw>>> for EventInstance

Source§

fn from(value: MoveInstance<CreatedAccount<Otw>>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CreatedClearingHouse>> for EventInstance

Source§

fn from(value: MoveInstance<CreatedClearingHouse>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CreatedMarginRatiosProposal>> for EventInstance

Source§

fn from(value: MoveInstance<CreatedMarginRatiosProposal>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CreatedOrderbook>> for EventInstance

Source§

fn from(value: MoveInstance<CreatedOrderbook>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CreatedPosition>> for EventInstance

Source§

fn from(value: MoveInstance<CreatedPosition>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CreatedPositionFeesProposal>> for EventInstance

Source§

fn from(value: MoveInstance<CreatedPositionFeesProposal>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CreatedStopOrderTicket>> for EventInstance

Source§

fn from(value: MoveInstance<CreatedStopOrderTicket>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<CreatedSubAccount>> for EventInstance

Source§

fn from(value: MoveInstance<CreatedSubAccount>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<DeallocatedCollateral>> for EventInstance

Source§

fn from(value: MoveInstance<DeallocatedCollateral>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<DeallocatedCollateralSubAccount>> for EventInstance

Source§

fn from(value: MoveInstance<DeallocatedCollateralSubAccount>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<DeletedMarginRatiosProposal>> for EventInstance

Source§

fn from(value: MoveInstance<DeletedMarginRatiosProposal>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<DeletedPositionFeesProposal>> for EventInstance

Source§

fn from(value: MoveInstance<DeletedPositionFeesProposal>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<DeletedStopOrderTicket>> for EventInstance

Source§

fn from(value: MoveInstance<DeletedStopOrderTicket>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<DeletedSubAccount>> for EventInstance

Source§

fn from(value: MoveInstance<DeletedSubAccount>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<DepositedCollateral<Otw>>> for EventInstance

Source§

fn from(value: MoveInstance<DepositedCollateral<Otw>>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<DepositedCollateralSubAccount>> for EventInstance

Source§

fn from(value: MoveInstance<DepositedCollateralSubAccount>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<DonatedToInsuranceFund>> for EventInstance

Source§

fn from(value: MoveInstance<DonatedToInsuranceFund>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<FilledMakerOrder>> for EventInstance

Source§

fn from(value: MoveInstance<FilledMakerOrder>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<FilledTakerOrder>> for EventInstance

Source§

fn from(value: MoveInstance<FilledTakerOrder>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<LiquidatedPosition>> for EventInstance

Source§

fn from(value: MoveInstance<LiquidatedPosition>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<OrderbookPostReceipt>> for EventInstance

Source§

fn from(value: MoveInstance<OrderbookPostReceipt>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<PostedOrder>> for EventInstance

Source§

fn from(value: MoveInstance<PostedOrder>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<RegisteredCollateralInfo<Otw>>> for EventInstance

Source§

fn from(value: MoveInstance<RegisteredCollateralInfo<Otw>>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<RegisteredMarketInfo<Otw>>> for EventInstance

Source§

fn from(value: MoveInstance<RegisteredMarketInfo<Otw>>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<RejectedPositionFeesProposal>> for EventInstance

Source§

fn from(value: MoveInstance<RejectedPositionFeesProposal>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<RemovedRegisteredMarketInfo<Otw>>> for EventInstance

Source§

fn from(value: MoveInstance<RemovedRegisteredMarketInfo<Otw>>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<ResettedPositionFees>> for EventInstance

Source§

fn from(value: MoveInstance<ResettedPositionFees>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<SetSubAccountUser>> for EventInstance

Source§

fn from(value: MoveInstance<SetSubAccountUser>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<SettledFunding>> for EventInstance

Source§

fn from(value: MoveInstance<SettledFunding>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedBaseOracleTolerance>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedBaseOracleTolerance>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedClearingHouseVersion>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedClearingHouseVersion>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedCollateralOracleTolerance>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedCollateralOracleTolerance>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedCumFundings>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedCumFundings>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedFees>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedFees>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedFunding>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedFunding>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedFundingParameters>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedFundingParameters>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedLiquidationTolerance>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedLiquidationTolerance>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedMarginRatios>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedMarginRatios>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedMaxPendingOrders>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedMaxPendingOrders>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedMinOrderUsdValue>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedMinOrderUsdValue>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedOpenInterestAndFeesAccrued>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedOpenInterestAndFeesAccrued>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedPremiumTwap>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedPremiumTwap>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedSpreadTwap>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedSpreadTwap>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<UpdatedSpreadTwapParameters>> for EventInstance

Source§

fn from(value: MoveInstance<UpdatedSpreadTwapParameters>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<WithdrewCollateral<Otw>>> for EventInstance

Source§

fn from(value: MoveInstance<WithdrewCollateral<Otw>>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<WithdrewCollateralSubAccount>> for EventInstance

Source§

fn from(value: MoveInstance<WithdrewCollateralSubAccount>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<WithdrewFees>> for EventInstance

Source§

fn from(value: MoveInstance<WithdrewFees>) -> Self

Converts to this type from the input type.
Source§

impl From<MoveInstance<WithdrewInsuranceFund>> for EventInstance

Source§

fn from(value: MoveInstance<WithdrewInsuranceFund>) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<EventInstance> for MoveInstance<AcceptedPositionFeesProposal>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<AllocatedCollateral>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<AllocatedCollateralSubAccount>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CanceledOrder>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CanceledOrders>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CreatedAccount<Otw>>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CreatedClearingHouse>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CreatedMarginRatiosProposal>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CreatedOrderbook>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CreatedPosition>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CreatedPositionFeesProposal>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CreatedStopOrderTicket>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<CreatedSubAccount>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<DeallocatedCollateral>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<DeallocatedCollateralSubAccount>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<DeletedMarginRatiosProposal>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<DeletedPositionFeesProposal>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<DeletedStopOrderTicket>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<DeletedSubAccount>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<DepositedCollateral<Otw>>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<DepositedCollateralSubAccount>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<DonatedToInsuranceFund>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<FilledMakerOrder>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<FilledTakerOrder>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<LiquidatedPosition>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<OrderbookPostReceipt>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<PostedOrder>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<RegisteredCollateralInfo<Otw>>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<RegisteredMarketInfo<Otw>>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<RejectedPositionFeesProposal>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<RemovedRegisteredMarketInfo<Otw>>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<ResettedPositionFees>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<SetSubAccountUser>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<SettledFunding>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedBaseOracleTolerance>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedClearingHouseVersion>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedCollateralOracleTolerance>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedCumFundings>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedFees>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedFunding>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedFundingParameters>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedLiquidationTolerance>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedMarginRatios>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedMaxPendingOrders>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedMinOrderUsdValue>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedOpenInterestAndFeesAccrued>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedPremiumTwap>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedSpreadTwap>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<UpdatedSpreadTwapParameters>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<WithdrewCollateral<Otw>>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<WithdrewCollateralSubAccount>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<WithdrewFees>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<EventInstance> for MoveInstance<WithdrewInsuranceFund>

Source§

type Error = TryIntoError<EventInstance>

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

fn try_from(value: EventInstance) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<U> As for U

Source§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> IsFieldType<T> for T