81 |
/// Returns an error if serialization fails.
|
82 |
#[allow(clippy::wrong_self_convention)]
|
83 |
pub fn to_json_string(mut self) -> Result<String, Error> {
|
1473 |
/// to ensure that it is compatible with the functions in it.
|
1474 |
#[allow(clippy::wrong_self_convention)]
|
1475 |
pub(super) const fn from_new_ptr(&self, object: P, extra_value: EV) -> Self {
|
81 |
#[allow(clippy::wrong_self_convention)]
|
82 |
impl StartLenConverter<()> {
|
89 |
#[allow(clippy::wrong_self_convention)]
|
90 |
impl StartLenConverter<usize> {
|
97 |
#[allow(clippy::wrong_self_convention)]
|
98 |
impl StartLenConverter<Range<usize>> {
|
107 |
#[allow(clippy::wrong_self_convention)]
|
108 |
impl StartLenConverter<RangeInclusive<usize>> {
|
117 |
#[allow(clippy::wrong_self_convention)]
|
118 |
impl StartLenConverter<StartLen> {
|
652 |
#[allow(clippy::wrong_self_convention)]
|
653 |
impl FromLiteral<bool> {
|
660 |
#[allow(clippy::wrong_self_convention)]
|
661 |
impl FromLiteral<&'static str> {
|
668 |
#[allow(clippy::wrong_self_convention)]
|
669 |
impl FromLiteral<RStr<'static>> {
|
676 |
#[allow(clippy::wrong_self_convention)]
|
677 |
impl FromLiteral<i64> {
|
86 |
#[allow(clippy::wrong_self_convention)]
|
87 |
impl TestRequest {
|
320 |
#[allow(clippy::wrong_self_convention)]
|
321 |
impl TestRequest {
|
83 |
#[inline]
|
84 |
#[allow(clippy::wrong_self_convention)]
|
85 |
fn from_little_endian(self) -> Self {
|
98 |
#[inline]
|
99 |
#[allow(clippy::wrong_self_convention)]
|
100 |
fn from_little_endian(self) -> Self {
|
118 |
#[inline]
|
119 |
#[allow(clippy::wrong_self_convention)]
|
120 |
fn from_little_endian(self) -> Self {
|
22 |
/// Converts a 'Time' into a tuple of `Time` rounded to the closest actual value and register value.
|
23 |
#[allow(clippy::wrong_self_convention)]
|
24 |
pub(crate) fn from_timing(
|
46 |
/// Converts a register value into a `Time`.
|
47 |
#[allow(clippy::wrong_self_convention)]
|
48 |
pub(crate) fn into_timing(&mut self, reg_value: u16) -> Result<Time, AfeError<I2C::Error>> {
|
260 |
#[allow(clippy::wrong_self_convention)]
|
261 |
pub fn is_terminator(mut self, val: bool) -> Self {
|
266 |
#[allow(clippy::wrong_self_convention)]
|
267 |
pub fn is_branch(mut self, val: bool) -> Self {
|
272 |
#[allow(clippy::wrong_self_convention)]
|
273 |
pub fn is_indirect_branch(mut self, val: bool) -> Self {
|
278 |
#[allow(clippy::wrong_self_convention)]
|
279 |
pub fn is_call(mut self, val: bool) -> Self {
|
284 |
#[allow(clippy::wrong_self_convention)]
|
285 |
pub fn is_return(mut self, val: bool) -> Self {
|
297 |
{
|
298 |
#[allow(clippy::wrong_self_convention)]
|
299 |
pub fn to_list_mut(&self) -> AlpmListMut<'a, T> {
|
520 |
impl<'a> PacnewCreatedEvent<'a> {
|
521 |
#[allow(clippy::wrong_self_convention)]
|
522 |
pub fn from_noupgrade(&self) -> bool {
|
297 |
{
|
298 |
#[allow(clippy::wrong_self_convention)]
|
299 |
pub fn to_list_mut(&self) -> AlpmListMut<'a, T> {
|
520 |
impl<'a> PacnewCreatedEvent<'a> {
|
521 |
#[allow(clippy::wrong_self_convention)]
|
522 |
pub fn from_noupgrade(&self) -> bool {
|
10 |
/// Used to convert an amethyst `Vector3` `Quaternion` to the physics `Vector3`.
|
11 |
#[allow(clippy::wrong_self_convention)]
|
12 |
pub fn to_physics<N>(v: &Vector3<f32>) -> Vector3<N>
|
34 |
/// Used to convert an amethyst `f32` `Quaternion` to a generic `Quaternion`.
|
35 |
#[allow(clippy::wrong_self_convention)]
|
36 |
pub fn to_physics<N>(r: &Quaternion<f32>) -> Quaternion<N>
|
66 |
/// Used to convert an amethyst `f32` `Isometry` to the generic `Isometry`.
|
67 |
#[allow(clippy::wrong_self_convention)]
|
68 |
pub fn to_physics<N>(t: &Isometry3<f32>) -> Isometry3<N>
|
9 |
impl UserStatus {
|
10 |
#[allow(clippy::wrong_self_convention)]
|
11 |
pub fn to_string(_status: Vec<UserStatus>) -> String {
|
81 |
/// Returns vector representing internal slice data
|
82 |
#[allow(clippy::wrong_self_convention)]
|
83 |
#[cfg(any(test, feature = "std", feature = "alloc"))]
|
481 |
/// Invokes the `#[state]`'s `new` constructor.
|
482 |
#[allow(clippy::wrong_self_convention)]
|
483 |
#[must_use]
|
13 |
trait AsVisitableMut<'a> {
|
14 |
#[allow(clippy::wrong_self_convention)]
|
15 |
fn to_visitable_mut(self) -> &'a mut dyn VisitableMut;
|
56 |
/// ```
|
57 |
#[allow(clippy::wrong_self_convention)]
|
58 |
pub fn from_pairs<NV>(parent: Environment, names_and_values: NV) -> Self
|
14 |
/// Read whether there is valid gesture data available.
|
15 |
#[allow(clippy::wrong_self_convention)]
|
16 |
pub fn is_gesture_data_valid(&mut self) -> Result<bool, Error<E>> {
|
21 |
/// Read whether the gesture data has overflown.
|
22 |
#[allow(clippy::wrong_self_convention)]
|
23 |
pub fn has_gesture_data_overflown(&mut self) -> Result<bool, Error<E>> {
|
125 |
/// This is checked internally in the `read_light_*()` methods as well.
|
126 |
#[allow(clippy::wrong_self_convention)]
|
127 |
pub fn is_light_data_valid(&mut self) -> Result<bool, Error<E>> {
|
98 |
/// This is checked internally in `read_proximity()` as well.
|
99 |
#[allow(clippy::wrong_self_convention)]
|
100 |
pub fn is_proximity_data_valid(&mut self) -> Result<bool, Error<E>> {
|
569 |
#[must_use]
|
570 |
#[allow(clippy::wrong_self_convention)]
|
571 |
#[deprecated(since = "0.17.0", note = "use `eq_null` instead")]
|
638 |
#[must_use]
|
639 |
#[allow(clippy::wrong_self_convention)]
|
640 |
#[deprecated(since = "0.17.0", note = "use `eq_true` instead")]
|
686 |
#[must_use]
|
687 |
#[allow(clippy::wrong_self_convention)]
|
688 |
#[deprecated(since = "0.17.0", note = "use `eq_false` instead")]
|
172 |
// Associated function on purpose, because of deref
|
173 |
#[allow(clippy::wrong_self_convention)]
|
174 |
#[inline]
|
5 |
/// Wraps the passed-in value in a `Value` enum.
|
6 |
#[allow(clippy::wrong_self_convention)]
|
7 |
fn into_value(value: T) -> Value;
|
98 |
#[inline]
|
99 |
#[allow(clippy::wrong_self_convention)]
|
100 |
fn from_little_endian(v: i8) -> Self {
|
196 |
#[inline]
|
197 |
#[allow(clippy::wrong_self_convention)]
|
198 |
fn from_little_endian(v: i8) -> Self {
|
315 |
#[inline]
|
316 |
#[allow(clippy::wrong_self_convention)]
|
317 |
fn from_little_endian(v: u8) -> Self {
|
118 |
#[inline]
|
119 |
#[allow(clippy::wrong_self_convention)]
|
120 |
fn from_little_endian(v: i16) -> Self {
|
240 |
#[inline]
|
241 |
#[allow(clippy::wrong_self_convention)]
|
242 |
fn from_little_endian(v: i64) -> Self {
|
329 |
#[inline]
|
330 |
#[allow(clippy::wrong_self_convention)]
|
331 |
fn from_little_endian(v: i16) -> Self {
|
421 |
#[inline]
|
422 |
#[allow(clippy::wrong_self_convention)]
|
423 |
fn from_little_endian(v: i16) -> Self {
|
510 |
#[inline]
|
511 |
#[allow(clippy::wrong_self_convention)]
|
512 |
fn from_little_endian(v: i16) -> Self {
|
99 |
#[inline]
|
100 |
#[allow(clippy::wrong_self_convention)]
|
101 |
fn from_little_endian(v: i16) -> Self {
|
202 |
#[inline]
|
203 |
#[allow(clippy::wrong_self_convention)]
|
204 |
fn from_little_endian(v: u8) -> Self {
|
44 |
/// [`Is<'a, Self::Is>`]: enum.Is.html
|
45 |
#[allow(clippy::wrong_self_convention)]
|
46 |
fn as_is<'a>(self) -> Is<'a, Self::Is>
|
184 |
/// [`Is::Borrowed`]: enum.Is.html#variant.Borrowed
|
185 |
#[allow(clippy::wrong_self_convention)]
|
186 |
fn as_is_mut<'a>(self) -> IsMut<'a, Self::Is>
|
78 |
/// Convert the handle to a raw pointer without consuming the handle.
|
79 |
#[allow(clippy::wrong_self_convention)]
|
80 |
fn as_raw(handle: &Self::Handle) -> NonNull<Self::Target>;
|
11 |
#[allow(clippy::wrong_self_convention)]
|
12 |
impl<T: ?Sized> Carrier<T> {
|
112 |
/// The host as string. Consumes self.
|
113 |
#[allow(clippy::wrong_self_convention)]
|
114 |
pub fn as_string(self) -> String {
|
26 |
#[inline]
|
27 |
#[allow(clippy::wrong_self_convention)]
|
28 |
pub fn to_glib_none_mut(&mut self) -> (*mut ffi::AtkTextRectangle, i32) {
|
76 |
#[inline]
|
77 |
#[allow(clippy::wrong_self_convention)]
|
78 |
pub fn to_physical(&self, window_info: &WindowInfo) -> PhyPoint {
|
100 |
#[inline]
|
101 |
#[allow(clippy::wrong_self_convention)]
|
102 |
pub fn to_logical(&self, window_info: &WindowInfo) -> Point {
|
124 |
#[inline]
|
125 |
#[allow(clippy::wrong_self_convention)]
|
126 |
pub fn to_physical(&self, window_info: &WindowInfo) -> PhySize {
|
148 |
#[inline]
|
149 |
#[allow(clippy::wrong_self_convention)]
|
150 |
pub fn to_logical(&self, window_info: &WindowInfo) -> Size {
|
320 |
#[allow(clippy::wrong_self_convention)]
|
321 |
#[must_use]
|
78 |
// Converts the error to an IoError
|
79 |
#[allow(clippy::wrong_self_convention)]
|
80 |
pub fn as_ioerror(self) -> IOError {
|
48 |
/// ```
|
49 |
#[allow(clippy::wrong_self_convention)]
|
50 |
pub fn to_with_name<T, U>(mut self, email: T, name: U) -> MessageBuilder
|
468 |
/// ```
|
469 |
#[allow(clippy::wrong_self_convention)]
|
470 |
pub fn from_with_name<T, U>(mut self, email: T, name: U) -> MessageBuilder
|
1 |
# [allow (dead_code)] pub mod erc20 { # [rustfmt :: skip] use ethcontract as ethcontract ; # [doc = "Generated by `ethcontract`"] # [derive (Clone)] pub struct Contract { methods : Methods , } impl Contract { # [doc = r" Retrieves the raw contract instance used to generate the type safe"] # [doc = r" API for this contract."] pub fn raw_contract () -> & 'static self :: ethcontract :: Contract { use self :: ethcontract :: common :: artifact :: truffle :: TruffleLoader ; use self :: ethcontract :: private :: lazy_static ; use self :: ethcontract :: Contract ; lazy_static ! { pub static ref CONTRACT : Contract = { # [allow (unused_mut)] let mut contract = TruffleLoader :: new () . load_contract_from_str ("{\"contractName\":\"ERC20\",\"abi\":[{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"constant\":true,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"_spender\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"}],\"outputs\":[{\"name\":\"balance\",\"type\":\"uint256\"}],\"constant\":true,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\"constant\":true,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"constant\":true,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"constant\":true,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"constant\":true,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"fallback\"}],\"bytecode\":\"\",\"networks\":{},\"devdoc\":{\"details\":null,\"methods\":{}},\"userdoc\":{\"details\":null,\"methods\":{}}}") . expect ("valid contract JSON") ; contract } ; } & CONTRACT } # [doc = r" Creates a new contract instance with the specified `web3`"] # [doc = r" provider at the given `Address`."] # [doc = r""] # [doc = r" Note that this does not verify that a contract with a matching"] # [doc = r" `Abi` is actually deployed at the given address."] pub fn at < F , B , T > (web3 : & self :: ethcontract :: web3 :: api :: Web3 < T > , address : self :: ethcontract :: Address ,) -> Self where F : std :: future :: Future < Output = Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , B : std :: future :: Future < Output = Result < Vec < Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , T : self :: ethcontract :: web3 :: Transport < Out = F > + self :: ethcontract :: web3 :: BatchTransport < Batch = B > + Send + Sync + 'static , { Contract :: with_deployment_info (web3 , address , None) } # [doc = r" Creates a new contract instance with the specified `web3` provider with"] # [doc = r" the given `Abi` at the given `Address` and an optional transaction hash."] # [doc = r" This hash is used to retrieve contract related information such as the"] # [doc = r" creation block (which is useful for fetching all historic events)."] # [doc = r""] # [doc = r" Note that this does not verify that a contract with a matching `Abi` is"] # [doc = r" actually deployed at the given address nor that the transaction hash,"] # [doc = r" when provided, is actually for this contract deployment."] pub fn with_deployment_info < F , B , T > (web3 : & self :: ethcontract :: web3 :: api :: Web3 < T > , address : self :: ethcontract :: Address , deployment_information : Option < ethcontract :: common :: DeploymentInformation > ,) -> Self where F : std :: future :: Future < Output = Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , B : std :: future :: Future < Output = Result < Vec < Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , T : self :: ethcontract :: web3 :: Transport < Out = F > + self :: ethcontract :: web3 :: BatchTransport < Batch = B > + Send + Sync + 'static , { use self :: ethcontract :: Instance ; use self :: ethcontract :: transport :: DynTransport ; use self :: ethcontract :: web3 :: api :: Web3 ; let transport = DynTransport :: new (web3 . transport () . clone ()) ; let web3 = Web3 :: new (transport) ; let abi = Self :: raw_contract () . abi . clone () ; let instance = Instance :: with_deployment_info (web3 , abi , address , deployment_information) ; Contract :: from_raw (instance) } # [doc = r" Creates a contract from a raw instance."] fn from_raw (instance : self :: ethcontract :: dyns :: DynInstance) -> Self { let methods = Methods { instance } ; Contract { methods } } # [doc = r" Returns the contract address being used by this instance."] pub fn address (& self) -> self :: ethcontract :: Address { self . raw_instance () . address () } # [doc = r" Returns the deployment information of the contract"] # [doc = r" if it is known, `None` otherwise."] pub fn deployment_information (& self) -> Option < ethcontract :: common :: DeploymentInformation > { self . raw_instance () . deployment_information () } # [doc = r" Returns a reference to the default method options used by this"] # [doc = r" contract."] pub fn defaults (& self) -> & self :: ethcontract :: contract :: MethodDefaults { & self . raw_instance () . defaults } # [doc = r" Returns a mutable reference to the default method options used"] # [doc = r" by this contract."] pub fn defaults_mut (& mut self) -> & mut self :: ethcontract :: contract :: MethodDefaults { & mut self . raw_instance_mut () . defaults } # [doc = r" Returns a reference to the raw runtime instance used by this"] # [doc = r" contract."] pub fn raw_instance (& self) -> & self :: ethcontract :: dyns :: DynInstance { & self . methods . instance } # [doc = r" Returns a mutable reference to the raw runtime instance used by"] # [doc = r" this contract."] fn raw_instance_mut (& mut self) -> & mut self :: ethcontract :: dyns :: DynInstance { & mut self . methods . instance } } impl std :: fmt :: Debug for Contract { fn fmt (& self , f : & mut std :: fmt :: Formatter) -> std :: fmt :: Result { f . debug_tuple (stringify ! (ERC20)) . field (& self . address ()) . finish () } } impl Contract { # [doc = r" Returns an object that allows accessing typed method signatures."] pub fn signatures () -> Signatures { Signatures } # [doc = r" Retrieves a reference to type containing all the generated"] # [doc = r" contract methods. This can be used for methods where the name"] # [doc = r" would collide with a common method (like `at` or `deployed`)."] pub fn methods (& self) -> & Methods { & self . methods } } # [doc = r" Type containing signatures for all methods for generated contract type."] # [derive (Clone , Copy)] pub struct Signatures ; impl Signatures { # [doc = "Returns signature for method `allowance(address,address):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn allowance (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: Address ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([221 , 98 , 237 , 62]) } # [doc = "Returns signature for method `approve(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn approve (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([9 , 94 , 167 , 179]) } # [doc = "Returns signature for method `balanceOf(address):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn balance_of (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([112 , 160 , 130 , 49]) } # [doc = "Returns signature for method `decimals():(uint8)`."] # [allow (clippy :: type_complexity)] pub fn decimals (& self) -> self :: ethcontract :: contract :: Signature < () , u8 > { self :: ethcontract :: contract :: Signature :: new ([49 , 60 , 229 , 103]) } # [doc = "Returns signature for method `name():(string)`."] # [allow (clippy :: type_complexity)] pub fn name (& self) -> self :: ethcontract :: contract :: Signature < () , String > { self :: ethcontract :: contract :: Signature :: new ([6 , 253 , 222 , 3]) } # [doc = "Returns signature for method `symbol():(string)`."] # [allow (clippy :: type_complexity)] pub fn symbol (& self) -> self :: ethcontract :: contract :: Signature < () , String > { self :: ethcontract :: contract :: Signature :: new ([149 , 216 , 155 , 65]) } # [doc = "Returns signature for method `totalSupply():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn total_supply (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([24 , 22 , 13 , 221]) } # [doc = "Returns signature for method `transfer(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn transfer (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([169 , 5 , 156 , 187]) } # [doc = "Returns signature for method `transferFrom(address,address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn transfer_from (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([35 , 184 , 114 , 221]) } } # [doc = r" Type containing all contract methods for generated contract type."] # [derive (Clone)] pub struct Methods { instance : self :: ethcontract :: dyns :: DynInstance , } # [allow (clippy :: too_many_arguments , clippy :: type_complexity)] impl Methods { # [doc = "Generated by `ethcontract`"] pub fn allowance (& self , owner : self :: ethcontract :: Address , spender : self :: ethcontract :: Address) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([221 , 98 , 237 , 62] , (owner , spender ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn approve (& self , spender : self :: ethcontract :: Address , value : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([9 , 94 , 167 , 179] , (spender , value ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn balance_of (& self , owner : self :: ethcontract :: Address) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([112 , 160 , 130 , 49] , (owner ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn decimals (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < u8 > { self . instance . view_method ([49 , 60 , 229 , 103] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn name (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < String > { self . instance . view_method ([6 , 253 , 222 , 3] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn symbol (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < String > { self . instance . view_method ([149 , 216 , 155 , 65] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn total_supply (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([24 , 22 , 13 , 221] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn transfer (& self , to : self :: ethcontract :: Address , value : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([169 , 5 , 156 , 187] , (to , value ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn transfer_from (& self , from : self :: ethcontract :: Address , to : self :: ethcontract :: Address , value : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([35 , 184 , 114 , 221] , (from , to , value ,)) . expect ("generated call") } } impl std :: ops :: Deref for Contract { type Target = Methods ; fn deref (& self) -> & Self :: Target { & self . methods } } impl Contract { # [doc = r" Returns a method builder to setup a call to a smart"] # [doc = r" contract's fallback function."] pub fn fallback < D > (& self , data : D) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > where D : Into < Vec < u8 >> , { self . raw_instance () . fallback (data) . expect ("generated fallback method") } } # [doc = r" Module containing all generated data models for this contract's"] # [doc = r" events."] pub mod event_data { use super :: ethcontract ; # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct Approval { pub owner : self :: ethcontract :: Address , pub spender : self :: ethcontract :: Address , pub value : self :: ethcontract :: U256 , } impl Approval { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`Approval(address,address,uint256)`"] pub fn abi_signature () -> & 'static str { "Approval(address,address,uint256)" } } impl self :: ethcontract :: tokens :: Tokenize for Approval { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (owner , spender , value ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (Approval { owner , spender , value }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct Transfer { pub from : self :: ethcontract :: Address , pub to : self :: ethcontract :: Address , pub value : self :: ethcontract :: U256 , } impl Transfer { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`Transfer(address,address,uint256)`"] pub fn abi_signature () -> & 'static str { "Transfer(address,address,uint256)" } } impl self :: ethcontract :: tokens :: Tokenize for Transfer { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (from , to , value ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (Transfer { from , to , value }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } } impl Contract { # [doc = r" Retrieves a handle to a type containing for creating event"] # [doc = r" streams for all the contract events."] pub fn events (& self) -> Events < '_ > { Events { instance : self . raw_instance () , } } } pub struct Events < 'a > { instance : & 'a self :: ethcontract :: dyns :: DynInstance , } impl Events < '_ > { # [doc = r" Generated by `ethcontract`."] pub fn approval (& self) -> self :: event_builders :: ApprovalBuilder { self :: event_builders :: ApprovalBuilder (self . instance . event (self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn transfer (& self) -> self :: event_builders :: TransferBuilder { self :: event_builders :: TransferBuilder (self . instance . event (self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239])) . expect ("generated event filter") ,) } } # [doc = r" Module containing the generated event stream builders with type safe"] # [doc = r" filter methods for this contract's events."] pub mod event_builders { use super :: ethcontract ; use super :: event_data ; # [doc = "A builder for creating a filtered stream of `Approval` events."] pub struct ApprovalBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: Approval > ,) ; impl ApprovalBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = "Adds a filter for the owner event parameter."] pub fn owner (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic0 (topic) ; self } # [doc = "Adds a filter for the spender event parameter."] pub fn spender (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic1 (topic) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: Approval >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: Approval > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `Transfer` events."] pub struct TransferBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: Transfer > ,) ; impl TransferBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = "Adds a filter for the from event parameter."] pub fn from (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic0 (topic) ; self } # [doc = "Adds a filter for the to event parameter."] pub fn to (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic1 (topic) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: Transfer >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: Transfer > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } } impl Contract { # [doc = r" Returns a log stream with all events."] pub fn all_events (& self) -> self :: ethcontract :: dyns :: DynAllEventsBuilder < Event > { self :: ethcontract :: dyns :: DynAllEventsBuilder :: new (self . raw_instance () . web3 () , self . address () , self . deployment_information () ,) } } # [doc = r" A contract event."] # [derive (Clone , Debug , Eq , PartialEq ,)] pub enum Event { Approval (self :: event_data :: Approval) , Transfer (self :: event_data :: Transfer) , } impl self :: ethcontract :: contract :: ParseLog for Event { fn parse_log (log : self :: ethcontract :: RawLog ,) -> Result < Self , self :: ethcontract :: errors :: ExecutionError > { let standard_event = log . topics . get (0) . copied () . map (| topic | match topic { self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37]) => Ok (Event :: Approval (log . clone () . decode (Contract :: raw_contract () . abi . event ("Approval") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239]) => Ok (Event :: Transfer (log . clone () . decode (Contract :: raw_contract () . abi . event ("Transfer") . expect ("generated event decode")) ?)) , _ => Err (self :: ethcontract :: errors :: ExecutionError :: from (self :: ethcontract :: common :: abi :: Error :: InvalidData)) , }) ; if let Some (Ok (data)) = standard_event { return Ok (data) ; } Err (self :: ethcontract :: errors :: ExecutionError :: from (self :: ethcontract :: common :: abi :: Error :: InvalidData)) } } } pub use self :: erc20 :: Contract as ERC20 ;
|
1 |
# [allow (dead_code)] pub mod liquidity_bootstrapping_pool { # [rustfmt :: skip] use ethcontract as ethcontract ; # [doc = "Generated by `ethcontract`"] # [derive (Clone)] pub struct Contract { methods : Methods , } impl Contract { # [doc = r" Retrieves the raw contract instance used to generate the type safe"] # [doc = r" API for this contract."] pub fn raw_contract () -> & 'static self :: ethcontract :: Contract { use self :: ethcontract :: common :: artifact :: truffle :: TruffleLoader ; use self :: ethcontract :: private :: lazy_static ; use self :: ethcontract :: Contract ; lazy_static ! { pub static ref CONTRACT : Contract = { # [allow (unused_mut)] let mut contract = TruffleLoader :: new () . load_contract_from_str ("{\"contractName\":\"LiquidityBootstrappingPool\",\"abi\":[{\"type\":\"constructor\",\"inputs\":[{\"internalType\":\"contract IVault\",\"name\":\"vault\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"normalizedWeights\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowDuration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodDuration\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"swapEnabledOnStart\",\"type\":\"bool\"}]},{\"type\":\"function\",\"name\":\"DOMAIN_SEPARATOR\",\"inputs\":[],\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decreaseAllowance\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getActionId\",\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getAuthorizer\",\"inputs\":[],\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getGradualWeightUpdateParams\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"endWeights\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getInvariant\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getLastInvariant\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNormalizedWeights\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getOwner\",\"inputs\":[],\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPausedState\",\"inputs\":[],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPoolId\",\"inputs\":[],\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRate\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getSwapEnabled\",\"inputs\":[],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getSwapFeePercentage\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getVault\",\"inputs\":[],\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"increaseAllowance\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"nonces\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onExitPool\",\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onJoinPool\",\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onSwap\",\"inputs\":[{\"internalType\":\"struct IPoolSwapStructs.SwapRequest\",\"name\":\"request\",\"type\":\"tuple\",\"components\":[{\"type\":\"uint8\"},{\"type\":\"address\"},{\"type\":\"address\"},{\"type\":\"uint256\"},{\"type\":\"bytes32\"},{\"type\":\"uint256\"},{\"type\":\"address\"},{\"type\":\"address\"},{\"type\":\"bytes\"}]},{\"internalType\":\"uint256\",\"name\":\"balanceTokenIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balanceTokenOut\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"permit\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"queryExit\",\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"queryJoin\",\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setAssetManagerPoolConfig\",\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"poolConfig\",\"type\":\"bytes\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPaused\",\"inputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setSwapEnabled\",\"inputs\":[{\"internalType\":\"bool\",\"name\":\"swapEnabled\",\"type\":\"bool\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setSwapFeePercentage\",\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"updateWeightsGradually\",\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"endWeights\",\"type\":\"uint256[]\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"GradualWeightUpdateScheduled\",\"inputs\":[{\"name\":\"startTime\",\"type\":\"uint256\",\"indexed\":false},{\"name\":\"endTime\",\"type\":\"uint256\",\"indexed\":false},{\"name\":\"startWeights\",\"type\":\"uint256[]\",\"indexed\":false},{\"name\":\"endWeights\",\"type\":\"uint256[]\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"PausedStateChanged\",\"inputs\":[{\"name\":\"paused\",\"type\":\"bool\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SwapEnabledSet\",\"inputs\":[{\"name\":\"swapEnabled\",\"type\":\"bool\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SwapFeePercentageChanged\",\"inputs\":[{\"name\":\"swapFeePercentage\",\"type\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false}],\"anonymous\":false}],\"bytecode\":\"\",\"networks\":{},\"devdoc\":{\"details\":null,\"methods\":{}},\"userdoc\":{\"details\":null,\"methods\":{}}}") . expect ("valid contract JSON") ; contract } ; } & CONTRACT } # [doc = r" Creates a new contract instance with the specified `web3`"] # [doc = r" provider at the given `Address`."] # [doc = r""] # [doc = r" Note that this does not verify that a contract with a matching"] # [doc = r" `Abi` is actually deployed at the given address."] pub fn at < F , B , T > (web3 : & self :: ethcontract :: web3 :: api :: Web3 < T > , address : self :: ethcontract :: Address ,) -> Self where F : std :: future :: Future < Output = Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , B : std :: future :: Future < Output = Result < Vec < Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , T : self :: ethcontract :: web3 :: Transport < Out = F > + self :: ethcontract :: web3 :: BatchTransport < Batch = B > + Send + Sync + 'static , { Contract :: with_deployment_info (web3 , address , None) } # [doc = r" Creates a new contract instance with the specified `web3` provider with"] # [doc = r" the given `Abi` at the given `Address` and an optional transaction hash."] # [doc = r" This hash is used to retrieve contract related information such as the"] # [doc = r" creation block (which is useful for fetching all historic events)."] # [doc = r""] # [doc = r" Note that this does not verify that a contract with a matching `Abi` is"] # [doc = r" actually deployed at the given address nor that the transaction hash,"] # [doc = r" when provided, is actually for this contract deployment."] pub fn with_deployment_info < F , B , T > (web3 : & self :: ethcontract :: web3 :: api :: Web3 < T > , address : self :: ethcontract :: Address , deployment_information : Option < ethcontract :: common :: DeploymentInformation > ,) -> Self where F : std :: future :: Future < Output = Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , B : std :: future :: Future < Output = Result < Vec < Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , T : self :: ethcontract :: web3 :: Transport < Out = F > + self :: ethcontract :: web3 :: BatchTransport < Batch = B > + Send + Sync + 'static , { use self :: ethcontract :: Instance ; use self :: ethcontract :: transport :: DynTransport ; use self :: ethcontract :: web3 :: api :: Web3 ; let transport = DynTransport :: new (web3 . transport () . clone ()) ; let web3 = Web3 :: new (transport) ; let abi = Self :: raw_contract () . abi . clone () ; let instance = Instance :: with_deployment_info (web3 , abi , address , deployment_information) ; Contract :: from_raw (instance) } # [doc = r" Creates a contract from a raw instance."] fn from_raw (instance : self :: ethcontract :: dyns :: DynInstance) -> Self { let methods = Methods { instance } ; Contract { methods } } # [doc = r" Returns the contract address being used by this instance."] pub fn address (& self) -> self :: ethcontract :: Address { self . raw_instance () . address () } # [doc = r" Returns the deployment information of the contract"] # [doc = r" if it is known, `None` otherwise."] pub fn deployment_information (& self) -> Option < ethcontract :: common :: DeploymentInformation > { self . raw_instance () . deployment_information () } # [doc = r" Returns a reference to the default method options used by this"] # [doc = r" contract."] pub fn defaults (& self) -> & self :: ethcontract :: contract :: MethodDefaults { & self . raw_instance () . defaults } # [doc = r" Returns a mutable reference to the default method options used"] # [doc = r" by this contract."] pub fn defaults_mut (& mut self) -> & mut self :: ethcontract :: contract :: MethodDefaults { & mut self . raw_instance_mut () . defaults } # [doc = r" Returns a reference to the raw runtime instance used by this"] # [doc = r" contract."] pub fn raw_instance (& self) -> & self :: ethcontract :: dyns :: DynInstance { & self . methods . instance } # [doc = r" Returns a mutable reference to the raw runtime instance used by"] # [doc = r" this contract."] fn raw_instance_mut (& mut self) -> & mut self :: ethcontract :: dyns :: DynInstance { & mut self . methods . instance } } impl std :: fmt :: Debug for Contract { fn fmt (& self , f : & mut std :: fmt :: Formatter) -> std :: fmt :: Result { f . debug_tuple (stringify ! (LiquidityBootstrappingPool)) . field (& self . address ()) . finish () } } impl Contract { # [doc = r" Returns an object that allows accessing typed method signatures."] pub fn signatures () -> Signatures { Signatures } # [doc = r" Retrieves a reference to type containing all the generated"] # [doc = r" contract methods. This can be used for methods where the name"] # [doc = r" would collide with a common method (like `at` or `deployed`)."] pub fn methods (& self) -> & Methods { & self . methods } } # [doc = r" Type containing signatures for all methods for generated contract type."] # [derive (Clone , Copy)] pub struct Signatures ; impl Signatures { # [doc = "Returns signature for method `DOMAIN_SEPARATOR():(bytes32)`."] # [allow (clippy :: type_complexity)] pub fn domain_separator (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self :: ethcontract :: contract :: Signature :: new ([54 , 68 , 229 , 21]) } # [doc = "Returns signature for method `allowance(address,address):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn allowance (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: Address ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([221 , 98 , 237 , 62]) } # [doc = "Returns signature for method `approve(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn approve (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([9 , 94 , 167 , 179]) } # [doc = "Returns signature for method `balanceOf(address):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn balance_of (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([112 , 160 , 130 , 49]) } # [doc = "Returns signature for method `decimals():(uint8)`."] # [allow (clippy :: type_complexity)] pub fn decimals (& self) -> self :: ethcontract :: contract :: Signature < () , u8 > { self :: ethcontract :: contract :: Signature :: new ([49 , 60 , 229 , 103]) } # [doc = "Returns signature for method `decreaseAllowance(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn decrease_allowance (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([164 , 87 , 194 , 215]) } # [doc = "Returns signature for method `getActionId(bytes4):(bytes32)`."] # [allow (clippy :: type_complexity)] pub fn get_action_id (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 4] > ,) , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self :: ethcontract :: contract :: Signature :: new ([133 , 28 , 27 , 179]) } # [doc = "Returns signature for method `getAuthorizer():(address)`."] # [allow (clippy :: type_complexity)] pub fn get_authorizer (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: Address > { self :: ethcontract :: contract :: Signature :: new ([170 , 171 , 173 , 197]) } # [doc = "Returns signature for method `getGradualWeightUpdateParams():(uint256,uint256,uint256[])`."] # [allow (clippy :: type_complexity)] pub fn get_gradual_weight_update_params (& self) -> self :: ethcontract :: contract :: Signature < () , (self :: ethcontract :: U256 , self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([123 , 238 , 210 , 32]) } # [doc = "Returns signature for method `getInvariant():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_invariant (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([192 , 255 , 26 , 21]) } # [doc = "Returns signature for method `getLastInvariant():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_last_invariant (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([155 , 2 , 205 , 222]) } # [doc = "Returns signature for method `getNormalizedWeights():(uint256[])`."] # [allow (clippy :: type_complexity)] pub fn get_normalized_weights (& self) -> self :: ethcontract :: contract :: Signature < () , Vec < self :: ethcontract :: U256 > > { self :: ethcontract :: contract :: Signature :: new ([248 , 159 , 39 , 237]) } # [doc = "Returns signature for method `getOwner():(address)`."] # [allow (clippy :: type_complexity)] pub fn get_owner (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: Address > { self :: ethcontract :: contract :: Signature :: new ([137 , 61 , 32 , 232]) } # [doc = "Returns signature for method `getPausedState():(bool,uint256,uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_paused_state (& self) -> self :: ethcontract :: contract :: Signature < () , (bool , self :: ethcontract :: U256 , self :: ethcontract :: U256) > { self :: ethcontract :: contract :: Signature :: new ([28 , 13 , 224 , 81]) } # [doc = "Returns signature for method `getPoolId():(bytes32)`."] # [allow (clippy :: type_complexity)] pub fn get_pool_id (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self :: ethcontract :: contract :: Signature :: new ([56 , 255 , 242 , 208]) } # [doc = "Returns signature for method `getRate():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_rate (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([103 , 154 , 239 , 206]) } # [doc = "Returns signature for method `getSwapEnabled():(bool)`."] # [allow (clippy :: type_complexity)] pub fn get_swap_enabled (& self) -> self :: ethcontract :: contract :: Signature < () , bool > { self :: ethcontract :: contract :: Signature :: new ([71 , 188 , 77 , 146]) } # [doc = "Returns signature for method `getSwapFeePercentage():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_swap_fee_percentage (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([85 , 198 , 118 , 40]) } # [doc = "Returns signature for method `getVault():(address)`."] # [allow (clippy :: type_complexity)] pub fn get_vault (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: Address > { self :: ethcontract :: contract :: Signature :: new ([141 , 146 , 138 , 248]) } # [doc = "Returns signature for method `increaseAllowance(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn increase_allowance (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([57 , 80 , 147 , 81]) } # [doc = "Returns signature for method `name():(string)`."] # [allow (clippy :: type_complexity)] pub fn name (& self) -> self :: ethcontract :: contract :: Signature < () , String > { self :: ethcontract :: contract :: Signature :: new ([6 , 253 , 222 , 3]) } # [doc = "Returns signature for method `nonces(address):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn nonces (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([126 , 206 , 190 , 0]) } # [doc = "Returns signature for method `onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes):(uint256[],uint256[])`."] # [allow (clippy :: type_complexity)] pub fn on_exit_pool (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: Address , self :: ethcontract :: Address , Vec < self :: ethcontract :: U256 > , self :: ethcontract :: U256 , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , (Vec < self :: ethcontract :: U256 > , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([116 , 243 , 176 , 9]) } # [doc = "Returns signature for method `onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes):(uint256[],uint256[])`."] # [allow (clippy :: type_complexity)] pub fn on_join_pool (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: Address , self :: ethcontract :: Address , Vec < self :: ethcontract :: U256 > , self :: ethcontract :: U256 , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , (Vec < self :: ethcontract :: U256 > , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([213 , 192 , 150 , 196]) } # [doc = "Returns signature for method `onSwap((uint8,address,address,uint256,bytes32,uint256,address,address,bytes),uint256,uint256):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn on_swap (& self) -> self :: ethcontract :: contract :: Signature < ((u8 , self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: U256 , self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , self :: ethcontract :: U256 , self :: ethcontract :: U256 ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([157 , 44 , 17 , 12]) } # [doc = "Returns signature for method `permit(address,address,uint256,uint256,uint8,bytes32,bytes32)`."] # [allow (clippy :: type_complexity)] pub fn permit (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: U256 , self :: ethcontract :: U256 , u8 , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > ,) , () > { self :: ethcontract :: contract :: Signature :: new ([213 , 5 , 172 , 207]) } # [doc = "Returns signature for method `queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes):(uint256,uint256[])`."] # [allow (clippy :: type_complexity)] pub fn query_exit (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: Address , self :: ethcontract :: Address , Vec < self :: ethcontract :: U256 > , self :: ethcontract :: U256 , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , (self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([96 , 40 , 191 , 212]) } # [doc = "Returns signature for method `queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes):(uint256,uint256[])`."] # [allow (clippy :: type_complexity)] pub fn query_join (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: Address , self :: ethcontract :: Address , Vec < self :: ethcontract :: U256 > , self :: ethcontract :: U256 , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , (self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([135 , 236 , 104 , 23]) } # [doc = "Returns signature for method `setAssetManagerPoolConfig(address,bytes)`."] # [allow (clippy :: type_complexity)] pub fn set_asset_manager_pool_config (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , () > { self :: ethcontract :: contract :: Signature :: new ([80 , 221 , 110 , 217]) } # [doc = "Returns signature for method `setPaused(bool)`."] # [allow (clippy :: type_complexity)] pub fn set_paused (& self) -> self :: ethcontract :: contract :: Signature < (bool ,) , () > { self :: ethcontract :: contract :: Signature :: new ([22 , 195 , 139 , 60]) } # [doc = "Returns signature for method `setSwapEnabled(bool)`."] # [allow (clippy :: type_complexity)] pub fn set_swap_enabled (& self) -> self :: ethcontract :: contract :: Signature < (bool ,) , () > { self :: ethcontract :: contract :: Signature :: new ([224 , 26 , 249 , 44]) } # [doc = "Returns signature for method `setSwapFeePercentage(uint256)`."] # [allow (clippy :: type_complexity)] pub fn set_swap_fee_percentage (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: U256 ,) , () > { self :: ethcontract :: contract :: Signature :: new ([56 , 233 , 146 , 46]) } # [doc = "Returns signature for method `symbol():(string)`."] # [allow (clippy :: type_complexity)] pub fn symbol (& self) -> self :: ethcontract :: contract :: Signature < () , String > { self :: ethcontract :: contract :: Signature :: new ([149 , 216 , 155 , 65]) } # [doc = "Returns signature for method `totalSupply():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn total_supply (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([24 , 22 , 13 , 221]) } # [doc = "Returns signature for method `transfer(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn transfer (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([169 , 5 , 156 , 187]) } # [doc = "Returns signature for method `transferFrom(address,address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn transfer_from (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([35 , 184 , 114 , 221]) } # [doc = "Returns signature for method `updateWeightsGradually(uint256,uint256,uint256[])`."] # [allow (clippy :: type_complexity)] pub fn update_weights_gradually (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: U256 , self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 > ,) , () > { self :: ethcontract :: contract :: Signature :: new ([62 , 86 , 146 , 5]) } } # [doc = r" Type containing all contract methods for generated contract type."] # [derive (Clone)] pub struct Methods { instance : self :: ethcontract :: dyns :: DynInstance , } # [allow (clippy :: too_many_arguments , clippy :: type_complexity)] impl Methods { # [doc = "Generated by `ethcontract`"] pub fn domain_separator (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self . instance . view_method ([54 , 68 , 229 , 21] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn allowance (& self , owner : self :: ethcontract :: Address , spender : self :: ethcontract :: Address) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([221 , 98 , 237 , 62] , (owner , spender ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn approve (& self , spender : self :: ethcontract :: Address , amount : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([9 , 94 , 167 , 179] , (spender , amount ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn balance_of (& self , account : self :: ethcontract :: Address) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([112 , 160 , 130 , 49] , (account ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn decimals (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < u8 > { self . instance . view_method ([49 , 60 , 229 , 103] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn decrease_allowance (& self , spender : self :: ethcontract :: Address , amount : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([164 , 87 , 194 , 215] , (spender , amount ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_action_id (& self , selector : self :: ethcontract :: tokens :: Bytes < [u8 ; 4] >) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self . instance . view_method ([133 , 28 , 27 , 179] , (selector ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_authorizer (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: Address > { self . instance . view_method ([170 , 171 , 173 , 197] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_gradual_weight_update_params (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < (self :: ethcontract :: U256 , self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self . instance . view_method ([123 , 238 , 210 , 32] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_invariant (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([192 , 255 , 26 , 21] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_last_invariant (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([155 , 2 , 205 , 222] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_normalized_weights (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < Vec < self :: ethcontract :: U256 > > { self . instance . view_method ([248 , 159 , 39 , 237] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_owner (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: Address > { self . instance . view_method ([137 , 61 , 32 , 232] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_paused_state (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < (bool , self :: ethcontract :: U256 , self :: ethcontract :: U256) > { self . instance . view_method ([28 , 13 , 224 , 81] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_pool_id (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self . instance . view_method ([56 , 255 , 242 , 208] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_rate (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([103 , 154 , 239 , 206] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_swap_enabled (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < bool > { self . instance . view_method ([71 , 188 , 77 , 146] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_swap_fee_percentage (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([85 , 198 , 118 , 40] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_vault (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: Address > { self . instance . view_method ([141 , 146 , 138 , 248] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn increase_allowance (& self , spender : self :: ethcontract :: Address , added_value : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([57 , 80 , 147 , 81] , (spender , added_value ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn name (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < String > { self . instance . view_method ([6 , 253 , 222 , 3] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn nonces (& self , owner : self :: ethcontract :: Address) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([126 , 206 , 190 , 0] , (owner ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn on_exit_pool (& self , pool_id : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , balances : Vec < self :: ethcontract :: U256 > , last_change_block : self :: ethcontract :: U256 , protocol_swap_fee_percentage : self :: ethcontract :: U256 , user_data : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < (Vec < self :: ethcontract :: U256 > , Vec < self :: ethcontract :: U256 >) > { self . instance . method ([116 , 243 , 176 , 9] , (pool_id , sender , recipient , balances , last_change_block , protocol_swap_fee_percentage , user_data ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn on_join_pool (& self , pool_id : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , balances : Vec < self :: ethcontract :: U256 > , last_change_block : self :: ethcontract :: U256 , protocol_swap_fee_percentage : self :: ethcontract :: U256 , user_data : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < (Vec < self :: ethcontract :: U256 > , Vec < self :: ethcontract :: U256 >) > { self . instance . method ([213 , 192 , 150 , 196] , (pool_id , sender , recipient , balances , last_change_block , protocol_swap_fee_percentage , user_data ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn on_swap (& self , request : (u8 , self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: U256 , self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , balance_token_in : self :: ethcontract :: U256 , balance_token_out : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([157 , 44 , 17 , 12] , (request , balance_token_in , balance_token_out ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn permit (& self , owner : self :: ethcontract :: Address , spender : self :: ethcontract :: Address , value : self :: ethcontract :: U256 , deadline : self :: ethcontract :: U256 , v : u8 , r : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , s : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] >) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([213 , 5 , 172 , 207] , (owner , spender , value , deadline , v , r , s ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn query_exit (& self , pool_id : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , balances : Vec < self :: ethcontract :: U256 > , last_change_block : self :: ethcontract :: U256 , protocol_swap_fee_percentage : self :: ethcontract :: U256 , user_data : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < (self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self . instance . method ([96 , 40 , 191 , 212] , (pool_id , sender , recipient , balances , last_change_block , protocol_swap_fee_percentage , user_data ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn query_join (& self , pool_id : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , balances : Vec < self :: ethcontract :: U256 > , last_change_block : self :: ethcontract :: U256 , protocol_swap_fee_percentage : self :: ethcontract :: U256 , user_data : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < (self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self . instance . method ([135 , 236 , 104 , 23] , (pool_id , sender , recipient , balances , last_change_block , protocol_swap_fee_percentage , user_data ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn set_asset_manager_pool_config (& self , token : self :: ethcontract :: Address , pool_config : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([80 , 221 , 110 , 217] , (token , pool_config ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn set_paused (& self , paused : bool) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([22 , 195 , 139 , 60] , (paused ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn set_swap_enabled (& self , swap_enabled : bool) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([224 , 26 , 249 , 44] , (swap_enabled ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn set_swap_fee_percentage (& self , swap_fee_percentage : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([56 , 233 , 146 , 46] , (swap_fee_percentage ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn symbol (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < String > { self . instance . view_method ([149 , 216 , 155 , 65] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn total_supply (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([24 , 22 , 13 , 221] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn transfer (& self , recipient : self :: ethcontract :: Address , amount : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([169 , 5 , 156 , 187] , (recipient , amount ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn transfer_from (& self , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , amount : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([35 , 184 , 114 , 221] , (sender , recipient , amount ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn update_weights_gradually (& self , start_time : self :: ethcontract :: U256 , end_time : self :: ethcontract :: U256 , end_weights : Vec < self :: ethcontract :: U256 >) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([62 , 86 , 146 , 5] , (start_time , end_time , end_weights ,)) . expect ("generated call") } } impl std :: ops :: Deref for Contract { type Target = Methods ; fn deref (& self) -> & Self :: Target { & self . methods } } # [doc = r" Module containing all generated data models for this contract's"] # [doc = r" events."] pub mod event_data { use super :: ethcontract ; # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct Approval { pub owner : self :: ethcontract :: Address , pub spender : self :: ethcontract :: Address , pub value : self :: ethcontract :: U256 , } impl Approval { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`Approval(address,address,uint256)`"] pub fn abi_signature () -> & 'static str { "Approval(address,address,uint256)" } } impl self :: ethcontract :: tokens :: Tokenize for Approval { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (owner , spender , value ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (Approval { owner , spender , value }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct GradualWeightUpdateScheduled { pub start_time : self :: ethcontract :: U256 , pub end_time : self :: ethcontract :: U256 , pub start_weights : Vec < self :: ethcontract :: U256 > , pub end_weights : Vec < self :: ethcontract :: U256 > , } impl GradualWeightUpdateScheduled { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([15 , 54 , 49 , 249 , 218 , 176 , 129 , 105 , 209 , 219 , 33 , 198 , 220 , 95 , 50 , 83 , 111 , 178 , 176 , 166 , 185 , 187 , 83 , 48 , 215 , 28 , 82 , 19 , 47 , 150 , 139 , 224]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`GradualWeightUpdateScheduled(uint256,uint256,uint256[],uint256[])`"] pub fn abi_signature () -> & 'static str { "GradualWeightUpdateScheduled(uint256,uint256,uint256[],uint256[])" } } impl self :: ethcontract :: tokens :: Tokenize for GradualWeightUpdateScheduled { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (start_time , end_time , start_weights , end_weights ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (GradualWeightUpdateScheduled { start_time , end_time , start_weights , end_weights }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct PausedStateChanged { pub paused : bool , } impl PausedStateChanged { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([158 , 58 , 94 , 55 , 34 , 69 , 50 , 222 , 166 , 123 , 137 , 250 , 206 , 24 , 87 , 3 , 115 , 138 , 34 , 138 , 110 , 138 , 35 , 222 , 229 , 70 , 150 , 1 , 128 , 211 , 190 , 100]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`PausedStateChanged(bool)`"] pub fn abi_signature () -> & 'static str { "PausedStateChanged(bool)" } } impl self :: ethcontract :: tokens :: Tokenize for PausedStateChanged { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (paused ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (PausedStateChanged { paused }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct SwapEnabledSet { pub swap_enabled : bool , } impl SwapEnabledSet { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([90 , 158 , 132 , 247 , 143 , 121 , 87 , 203 , 78 , 215 , 71 , 142 , 176 , 252 , 173 , 53 , 238 , 78 , 203 , 226 , 224 , 242 , 152 , 66 , 11 , 40 , 163 , 149 , 83 , 146 , 87 , 63]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`SwapEnabledSet(bool)`"] pub fn abi_signature () -> & 'static str { "SwapEnabledSet(bool)" } } impl self :: ethcontract :: tokens :: Tokenize for SwapEnabledSet { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (swap_enabled ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (SwapEnabledSet { swap_enabled }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct SwapFeePercentageChanged { pub swap_fee_percentage : self :: ethcontract :: U256 , } impl SwapFeePercentageChanged { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([169 , 186 , 63 , 254 , 11 , 108 , 54 , 107 , 129 , 35 , 44 , 170 , 179 , 134 , 5 , 160 , 105 , 154 , 213 , 57 , 141 , 108 , 206 , 118 , 249 , 30 , 232 , 9 , 227 , 34 , 218 , 252]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`SwapFeePercentageChanged(uint256)`"] pub fn abi_signature () -> & 'static str { "SwapFeePercentageChanged(uint256)" } } impl self :: ethcontract :: tokens :: Tokenize for SwapFeePercentageChanged { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (swap_fee_percentage ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (SwapFeePercentageChanged { swap_fee_percentage }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct Transfer { pub from : self :: ethcontract :: Address , pub to : self :: ethcontract :: Address , pub value : self :: ethcontract :: U256 , } impl Transfer { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`Transfer(address,address,uint256)`"] pub fn abi_signature () -> & 'static str { "Transfer(address,address,uint256)" } } impl self :: ethcontract :: tokens :: Tokenize for Transfer { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (from , to , value ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (Transfer { from , to , value }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } } impl Contract { # [doc = r" Retrieves a handle to a type containing for creating event"] # [doc = r" streams for all the contract events."] pub fn events (& self) -> Events < '_ > { Events { instance : self . raw_instance () , } } } pub struct Events < 'a > { instance : & 'a self :: ethcontract :: dyns :: DynInstance , } impl Events < '_ > { # [doc = r" Generated by `ethcontract`."] pub fn approval (& self) -> self :: event_builders :: ApprovalBuilder { self :: event_builders :: ApprovalBuilder (self . instance . event (self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn gradual_weight_update_scheduled (& self) -> self :: event_builders :: GradualWeightUpdateScheduledBuilder { self :: event_builders :: GradualWeightUpdateScheduledBuilder (self . instance . event (self :: ethcontract :: H256 ([15 , 54 , 49 , 249 , 218 , 176 , 129 , 105 , 209 , 219 , 33 , 198 , 220 , 95 , 50 , 83 , 111 , 178 , 176 , 166 , 185 , 187 , 83 , 48 , 215 , 28 , 82 , 19 , 47 , 150 , 139 , 224])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn paused_state_changed (& self) -> self :: event_builders :: PausedStateChangedBuilder { self :: event_builders :: PausedStateChangedBuilder (self . instance . event (self :: ethcontract :: H256 ([158 , 58 , 94 , 55 , 34 , 69 , 50 , 222 , 166 , 123 , 137 , 250 , 206 , 24 , 87 , 3 , 115 , 138 , 34 , 138 , 110 , 138 , 35 , 222 , 229 , 70 , 150 , 1 , 128 , 211 , 190 , 100])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn swap_enabled_set (& self) -> self :: event_builders :: SwapEnabledSetBuilder { self :: event_builders :: SwapEnabledSetBuilder (self . instance . event (self :: ethcontract :: H256 ([90 , 158 , 132 , 247 , 143 , 121 , 87 , 203 , 78 , 215 , 71 , 142 , 176 , 252 , 173 , 53 , 238 , 78 , 203 , 226 , 224 , 242 , 152 , 66 , 11 , 40 , 163 , 149 , 83 , 146 , 87 , 63])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn swap_fee_percentage_changed (& self) -> self :: event_builders :: SwapFeePercentageChangedBuilder { self :: event_builders :: SwapFeePercentageChangedBuilder (self . instance . event (self :: ethcontract :: H256 ([169 , 186 , 63 , 254 , 11 , 108 , 54 , 107 , 129 , 35 , 44 , 170 , 179 , 134 , 5 , 160 , 105 , 154 , 213 , 57 , 141 , 108 , 206 , 118 , 249 , 30 , 232 , 9 , 227 , 34 , 218 , 252])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn transfer (& self) -> self :: event_builders :: TransferBuilder { self :: event_builders :: TransferBuilder (self . instance . event (self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239])) . expect ("generated event filter") ,) } } # [doc = r" Module containing the generated event stream builders with type safe"] # [doc = r" filter methods for this contract's events."] pub mod event_builders { use super :: ethcontract ; use super :: event_data ; # [doc = "A builder for creating a filtered stream of `Approval` events."] pub struct ApprovalBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: Approval > ,) ; impl ApprovalBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = "Adds a filter for the owner event parameter."] pub fn owner (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic0 (topic) ; self } # [doc = "Adds a filter for the spender event parameter."] pub fn spender (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic1 (topic) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: Approval >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: Approval > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `GradualWeightUpdateScheduled` events."] pub struct GradualWeightUpdateScheduledBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: GradualWeightUpdateScheduled > ,) ; impl GradualWeightUpdateScheduledBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: GradualWeightUpdateScheduled >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: GradualWeightUpdateScheduled > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `PausedStateChanged` events."] pub struct PausedStateChangedBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: PausedStateChanged > ,) ; impl PausedStateChangedBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: PausedStateChanged >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: PausedStateChanged > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `SwapEnabledSet` events."] pub struct SwapEnabledSetBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: SwapEnabledSet > ,) ; impl SwapEnabledSetBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: SwapEnabledSet >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: SwapEnabledSet > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `SwapFeePercentageChanged` events."] pub struct SwapFeePercentageChangedBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: SwapFeePercentageChanged > ,) ; impl SwapFeePercentageChangedBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: SwapFeePercentageChanged >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: SwapFeePercentageChanged > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `Transfer` events."] pub struct TransferBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: Transfer > ,) ; impl TransferBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = "Adds a filter for the from event parameter."] pub fn from (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic0 (topic) ; self } # [doc = "Adds a filter for the to event parameter."] pub fn to (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic1 (topic) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: Transfer >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: Transfer > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } } impl Contract { # [doc = r" Returns a log stream with all events."] pub fn all_events (& self) -> self :: ethcontract :: dyns :: DynAllEventsBuilder < Event > { self :: ethcontract :: dyns :: DynAllEventsBuilder :: new (self . raw_instance () . web3 () , self . address () , self . deployment_information () ,) } } # [doc = r" A contract event."] # [derive (Clone , Debug , Eq , PartialEq ,)] pub enum Event { Approval (self :: event_data :: Approval) , GradualWeightUpdateScheduled (self :: event_data :: GradualWeightUpdateScheduled) , PausedStateChanged (self :: event_data :: PausedStateChanged) , SwapEnabledSet (self :: event_data :: SwapEnabledSet) , SwapFeePercentageChanged (self :: event_data :: SwapFeePercentageChanged) , Transfer (self :: event_data :: Transfer) , } impl self :: ethcontract :: contract :: ParseLog for Event { fn parse_log (log : self :: ethcontract :: RawLog ,) -> Result < Self , self :: ethcontract :: errors :: ExecutionError > { let standard_event = log . topics . get (0) . copied () . map (| topic | match topic { self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37]) => Ok (Event :: Approval (log . clone () . decode (Contract :: raw_contract () . abi . event ("Approval") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([15 , 54 , 49 , 249 , 218 , 176 , 129 , 105 , 209 , 219 , 33 , 198 , 220 , 95 , 50 , 83 , 111 , 178 , 176 , 166 , 185 , 187 , 83 , 48 , 215 , 28 , 82 , 19 , 47 , 150 , 139 , 224]) => Ok (Event :: GradualWeightUpdateScheduled (log . clone () . decode (Contract :: raw_contract () . abi . event ("GradualWeightUpdateScheduled") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([158 , 58 , 94 , 55 , 34 , 69 , 50 , 222 , 166 , 123 , 137 , 250 , 206 , 24 , 87 , 3 , 115 , 138 , 34 , 138 , 110 , 138 , 35 , 222 , 229 , 70 , 150 , 1 , 128 , 211 , 190 , 100]) => Ok (Event :: PausedStateChanged (log . clone () . decode (Contract :: raw_contract () . abi . event ("PausedStateChanged") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([90 , 158 , 132 , 247 , 143 , 121 , 87 , 203 , 78 , 215 , 71 , 142 , 176 , 252 , 173 , 53 , 238 , 78 , 203 , 226 , 224 , 242 , 152 , 66 , 11 , 40 , 163 , 149 , 83 , 146 , 87 , 63]) => Ok (Event :: SwapEnabledSet (log . clone () . decode (Contract :: raw_contract () . abi . event ("SwapEnabledSet") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([169 , 186 , 63 , 254 , 11 , 108 , 54 , 107 , 129 , 35 , 44 , 170 , 179 , 134 , 5 , 160 , 105 , 154 , 213 , 57 , 141 , 108 , 206 , 118 , 249 , 30 , 232 , 9 , 227 , 34 , 218 , 252]) => Ok (Event :: SwapFeePercentageChanged (log . clone () . decode (Contract :: raw_contract () . abi . event ("SwapFeePercentageChanged") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239]) => Ok (Event :: Transfer (log . clone () . decode (Contract :: raw_contract () . abi . event ("Transfer") . expect ("generated event decode")) ?)) , _ => Err (self :: ethcontract :: errors :: ExecutionError :: from (self :: ethcontract :: common :: abi :: Error :: InvalidData)) , }) ; if let Some (Ok (data)) = standard_event { return Ok (data) ; } Err (self :: ethcontract :: errors :: ExecutionError :: from (self :: ethcontract :: common :: abi :: Error :: InvalidData)) } } } pub use self :: liquidity_bootstrapping_pool :: Contract as LiquidityBootstrappingPool ;
|
1 |
# [allow (dead_code)] pub mod managed_pool { # [rustfmt :: skip] use ethcontract as ethcontract ; # [doc = "Generated by `ethcontract`"] # [derive (Clone)] pub struct Contract { methods : Methods , } impl Contract { # [doc = r" Retrieves the raw contract instance used to generate the type safe"] # [doc = r" API for this contract."] pub fn raw_contract () -> & 'static self :: ethcontract :: Contract { use self :: ethcontract :: common :: artifact :: truffle :: TruffleLoader ; use self :: ethcontract :: private :: lazy_static ; use self :: ethcontract :: Contract ; lazy_static ! { pub static ref CONTRACT : Contract = { # [allow (unused_mut)] let mut contract = TruffleLoader :: new () . load_contract_from_str ("{\"contractName\":\"ManagedPool\",\"abi\":[{\"type\":\"constructor\",\"inputs\":[{\"internalType\":\"struct InvestmentPool.NewPoolParams\",\"name\":\"params\",\"type\":\"tuple\",\"components\":[{\"type\":\"address\"},{\"type\":\"string\"},{\"type\":\"string\"},{\"type\":\"address[]\"},{\"type\":\"uint256[]\"},{\"type\":\"address[]\"},{\"type\":\"uint256\"},{\"type\":\"uint256\"},{\"type\":\"uint256\"},{\"type\":\"address\"},{\"type\":\"bool\"},{\"type\":\"uint256\"}]}]},{\"type\":\"function\",\"name\":\"DOMAIN_SEPARATOR\",\"inputs\":[],\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"allowance\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decimals\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decreaseAllowance\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getActionId\",\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"}],\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getAuthorizer\",\"inputs\":[],\"outputs\":[{\"internalType\":\"contract IAuthorizer\",\"name\":\"\",\"type\":\"address\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getCollectedManagementFees\",\"inputs\":[],\"outputs\":[{\"internalType\":\"contract IERC20[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"collectedFees\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getGradualWeightUpdateParams\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"endWeights\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getInvariant\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getLastInvariant\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getManagementSwapFeePercentage\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMinimumWeightChangeDuration\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getNormalizedWeights\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getOwner\",\"inputs\":[],\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPausedState\",\"inputs\":[],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"pauseWindowEndTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bufferPeriodEndTime\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPoolId\",\"inputs\":[],\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRate\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getScalingFactors\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getSwapEnabled\",\"inputs\":[],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getSwapFeePercentage\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getVault\",\"inputs\":[],\"outputs\":[{\"internalType\":\"contract IVault\",\"name\":\"\",\"type\":\"address\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"increaseAllowance\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"nonces\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"onExitPool\",\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onJoinPool\",\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"onSwap\",\"inputs\":[{\"internalType\":\"struct IPoolSwapStructs.SwapRequest\",\"name\":\"swapRequest\",\"type\":\"tuple\",\"components\":[{\"type\":\"uint8\"},{\"type\":\"address\"},{\"type\":\"address\"},{\"type\":\"uint256\"},{\"type\":\"bytes32\"},{\"type\":\"uint256\"},{\"type\":\"address\"},{\"type\":\"address\"},{\"type\":\"bytes\"}]},{\"internalType\":\"uint256\",\"name\":\"currentBalanceTokenIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentBalanceTokenOut\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"permit\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"queryExit\",\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsOut\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"queryJoin\",\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"poolId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"balances\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"lastChangeBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"protocolSwapFeePercentage\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bptOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsIn\",\"type\":\"uint256[]\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setAssetManagerPoolConfig\",\"inputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"poolConfig\",\"type\":\"bytes\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPaused\",\"inputs\":[{\"internalType\":\"bool\",\"name\":\"paused\",\"type\":\"bool\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setSwapEnabled\",\"inputs\":[{\"internalType\":\"bool\",\"name\":\"swapEnabled\",\"type\":\"bool\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setSwapFeePercentage\",\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"swapFeePercentage\",\"type\":\"uint256\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalSupply\",\"inputs\":[],\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"constant\":false,\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transfer\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"updateWeightsGradually\",\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256[]\",\"name\":\"endWeights\",\"type\":\"uint256[]\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdrawCollectedManagementFees\",\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"outputs\":[],\"constant\":false,\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true},{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"GradualWeightUpdateScheduled\",\"inputs\":[{\"name\":\"startTime\",\"type\":\"uint256\",\"indexed\":false},{\"name\":\"endTime\",\"type\":\"uint256\",\"indexed\":false},{\"name\":\"startWeights\",\"type\":\"uint256[]\",\"indexed\":false},{\"name\":\"endWeights\",\"type\":\"uint256[]\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ManagementFeePercentageChanged\",\"inputs\":[{\"name\":\"managementFeePercentage\",\"type\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ManagementFeesCollected\",\"inputs\":[{\"name\":\"tokens\",\"type\":\"address[]\",\"indexed\":false},{\"name\":\"amounts\",\"type\":\"uint256[]\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"PausedStateChanged\",\"inputs\":[{\"name\":\"paused\",\"type\":\"bool\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SwapEnabledSet\",\"inputs\":[{\"name\":\"swapEnabled\",\"type\":\"bool\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SwapFeePercentageChanged\",\"inputs\":[{\"name\":\"swapFeePercentage\",\"type\":\"uint256\",\"indexed\":false}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true},{\"name\":\"value\",\"type\":\"uint256\",\"indexed\":false}],\"anonymous\":false}],\"bytecode\":\"\",\"networks\":{},\"devdoc\":{\"details\":null,\"methods\":{}},\"userdoc\":{\"details\":null,\"methods\":{}}}") . expect ("valid contract JSON") ; contract } ; } & CONTRACT } # [doc = r" Creates a new contract instance with the specified `web3`"] # [doc = r" provider at the given `Address`."] # [doc = r""] # [doc = r" Note that this does not verify that a contract with a matching"] # [doc = r" `Abi` is actually deployed at the given address."] pub fn at < F , B , T > (web3 : & self :: ethcontract :: web3 :: api :: Web3 < T > , address : self :: ethcontract :: Address ,) -> Self where F : std :: future :: Future < Output = Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , B : std :: future :: Future < Output = Result < Vec < Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , T : self :: ethcontract :: web3 :: Transport < Out = F > + self :: ethcontract :: web3 :: BatchTransport < Batch = B > + Send + Sync + 'static , { Contract :: with_deployment_info (web3 , address , None) } # [doc = r" Creates a new contract instance with the specified `web3` provider with"] # [doc = r" the given `Abi` at the given `Address` and an optional transaction hash."] # [doc = r" This hash is used to retrieve contract related information such as the"] # [doc = r" creation block (which is useful for fetching all historic events)."] # [doc = r""] # [doc = r" Note that this does not verify that a contract with a matching `Abi` is"] # [doc = r" actually deployed at the given address nor that the transaction hash,"] # [doc = r" when provided, is actually for this contract deployment."] pub fn with_deployment_info < F , B , T > (web3 : & self :: ethcontract :: web3 :: api :: Web3 < T > , address : self :: ethcontract :: Address , deployment_information : Option < ethcontract :: common :: DeploymentInformation > ,) -> Self where F : std :: future :: Future < Output = Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , B : std :: future :: Future < Output = Result < Vec < Result < self :: ethcontract :: json :: Value , self :: ethcontract :: web3 :: Error , > , > , self :: ethcontract :: web3 :: Error , > , > + Send + 'static , T : self :: ethcontract :: web3 :: Transport < Out = F > + self :: ethcontract :: web3 :: BatchTransport < Batch = B > + Send + Sync + 'static , { use self :: ethcontract :: Instance ; use self :: ethcontract :: transport :: DynTransport ; use self :: ethcontract :: web3 :: api :: Web3 ; let transport = DynTransport :: new (web3 . transport () . clone ()) ; let web3 = Web3 :: new (transport) ; let abi = Self :: raw_contract () . abi . clone () ; let instance = Instance :: with_deployment_info (web3 , abi , address , deployment_information) ; Contract :: from_raw (instance) } # [doc = r" Creates a contract from a raw instance."] fn from_raw (instance : self :: ethcontract :: dyns :: DynInstance) -> Self { let methods = Methods { instance } ; Contract { methods } } # [doc = r" Returns the contract address being used by this instance."] pub fn address (& self) -> self :: ethcontract :: Address { self . raw_instance () . address () } # [doc = r" Returns the deployment information of the contract"] # [doc = r" if it is known, `None` otherwise."] pub fn deployment_information (& self) -> Option < ethcontract :: common :: DeploymentInformation > { self . raw_instance () . deployment_information () } # [doc = r" Returns a reference to the default method options used by this"] # [doc = r" contract."] pub fn defaults (& self) -> & self :: ethcontract :: contract :: MethodDefaults { & self . raw_instance () . defaults } # [doc = r" Returns a mutable reference to the default method options used"] # [doc = r" by this contract."] pub fn defaults_mut (& mut self) -> & mut self :: ethcontract :: contract :: MethodDefaults { & mut self . raw_instance_mut () . defaults } # [doc = r" Returns a reference to the raw runtime instance used by this"] # [doc = r" contract."] pub fn raw_instance (& self) -> & self :: ethcontract :: dyns :: DynInstance { & self . methods . instance } # [doc = r" Returns a mutable reference to the raw runtime instance used by"] # [doc = r" this contract."] fn raw_instance_mut (& mut self) -> & mut self :: ethcontract :: dyns :: DynInstance { & mut self . methods . instance } } impl std :: fmt :: Debug for Contract { fn fmt (& self , f : & mut std :: fmt :: Formatter) -> std :: fmt :: Result { f . debug_tuple (stringify ! (ManagedPool)) . field (& self . address ()) . finish () } } impl Contract { # [doc = r" Returns an object that allows accessing typed method signatures."] pub fn signatures () -> Signatures { Signatures } # [doc = r" Retrieves a reference to type containing all the generated"] # [doc = r" contract methods. This can be used for methods where the name"] # [doc = r" would collide with a common method (like `at` or `deployed`)."] pub fn methods (& self) -> & Methods { & self . methods } } # [doc = r" Type containing signatures for all methods for generated contract type."] # [derive (Clone , Copy)] pub struct Signatures ; impl Signatures { # [doc = "Returns signature for method `DOMAIN_SEPARATOR():(bytes32)`."] # [allow (clippy :: type_complexity)] pub fn domain_separator (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self :: ethcontract :: contract :: Signature :: new ([54 , 68 , 229 , 21]) } # [doc = "Returns signature for method `allowance(address,address):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn allowance (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: Address ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([221 , 98 , 237 , 62]) } # [doc = "Returns signature for method `approve(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn approve (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([9 , 94 , 167 , 179]) } # [doc = "Returns signature for method `balanceOf(address):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn balance_of (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([112 , 160 , 130 , 49]) } # [doc = "Returns signature for method `decimals():(uint8)`."] # [allow (clippy :: type_complexity)] pub fn decimals (& self) -> self :: ethcontract :: contract :: Signature < () , u8 > { self :: ethcontract :: contract :: Signature :: new ([49 , 60 , 229 , 103]) } # [doc = "Returns signature for method `decreaseAllowance(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn decrease_allowance (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([164 , 87 , 194 , 215]) } # [doc = "Returns signature for method `getActionId(bytes4):(bytes32)`."] # [allow (clippy :: type_complexity)] pub fn get_action_id (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 4] > ,) , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self :: ethcontract :: contract :: Signature :: new ([133 , 28 , 27 , 179]) } # [doc = "Returns signature for method `getAuthorizer():(address)`."] # [allow (clippy :: type_complexity)] pub fn get_authorizer (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: Address > { self :: ethcontract :: contract :: Signature :: new ([170 , 171 , 173 , 197]) } # [doc = "Returns signature for method `getCollectedManagementFees():(address[],uint256[])`."] # [allow (clippy :: type_complexity)] pub fn get_collected_management_fees (& self) -> self :: ethcontract :: contract :: Signature < () , (Vec < self :: ethcontract :: Address > , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([50 , 241 , 68 , 245]) } # [doc = "Returns signature for method `getGradualWeightUpdateParams():(uint256,uint256,uint256[])`."] # [allow (clippy :: type_complexity)] pub fn get_gradual_weight_update_params (& self) -> self :: ethcontract :: contract :: Signature < () , (self :: ethcontract :: U256 , self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([123 , 238 , 210 , 32]) } # [doc = "Returns signature for method `getInvariant():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_invariant (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([192 , 255 , 26 , 21]) } # [doc = "Returns signature for method `getLastInvariant():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_last_invariant (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([155 , 2 , 205 , 222]) } # [doc = "Returns signature for method `getManagementSwapFeePercentage():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_management_swap_fee_percentage (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([144 , 96 , 95 , 58]) } # [doc = "Returns signature for method `getMinimumWeightChangeDuration():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_minimum_weight_change_duration (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([179 , 34 , 199 , 155]) } # [doc = "Returns signature for method `getNormalizedWeights():(uint256[])`."] # [allow (clippy :: type_complexity)] pub fn get_normalized_weights (& self) -> self :: ethcontract :: contract :: Signature < () , Vec < self :: ethcontract :: U256 > > { self :: ethcontract :: contract :: Signature :: new ([248 , 159 , 39 , 237]) } # [doc = "Returns signature for method `getOwner():(address)`."] # [allow (clippy :: type_complexity)] pub fn get_owner (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: Address > { self :: ethcontract :: contract :: Signature :: new ([137 , 61 , 32 , 232]) } # [doc = "Returns signature for method `getPausedState():(bool,uint256,uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_paused_state (& self) -> self :: ethcontract :: contract :: Signature < () , (bool , self :: ethcontract :: U256 , self :: ethcontract :: U256) > { self :: ethcontract :: contract :: Signature :: new ([28 , 13 , 224 , 81]) } # [doc = "Returns signature for method `getPoolId():(bytes32)`."] # [allow (clippy :: type_complexity)] pub fn get_pool_id (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self :: ethcontract :: contract :: Signature :: new ([56 , 255 , 242 , 208]) } # [doc = "Returns signature for method `getRate():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_rate (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([103 , 154 , 239 , 206]) } # [doc = "Returns signature for method `getScalingFactors():(uint256[])`."] # [allow (clippy :: type_complexity)] pub fn get_scaling_factors (& self) -> self :: ethcontract :: contract :: Signature < () , Vec < self :: ethcontract :: U256 > > { self :: ethcontract :: contract :: Signature :: new ([29 , 215 , 70 , 234]) } # [doc = "Returns signature for method `getSwapEnabled():(bool)`."] # [allow (clippy :: type_complexity)] pub fn get_swap_enabled (& self) -> self :: ethcontract :: contract :: Signature < () , bool > { self :: ethcontract :: contract :: Signature :: new ([71 , 188 , 77 , 146]) } # [doc = "Returns signature for method `getSwapFeePercentage():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn get_swap_fee_percentage (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([85 , 198 , 118 , 40]) } # [doc = "Returns signature for method `getVault():(address)`."] # [allow (clippy :: type_complexity)] pub fn get_vault (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: Address > { self :: ethcontract :: contract :: Signature :: new ([141 , 146 , 138 , 248]) } # [doc = "Returns signature for method `increaseAllowance(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn increase_allowance (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([57 , 80 , 147 , 81]) } # [doc = "Returns signature for method `name():(string)`."] # [allow (clippy :: type_complexity)] pub fn name (& self) -> self :: ethcontract :: contract :: Signature < () , String > { self :: ethcontract :: contract :: Signature :: new ([6 , 253 , 222 , 3]) } # [doc = "Returns signature for method `nonces(address):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn nonces (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([126 , 206 , 190 , 0]) } # [doc = "Returns signature for method `onExitPool(bytes32,address,address,uint256[],uint256,uint256,bytes):(uint256[],uint256[])`."] # [allow (clippy :: type_complexity)] pub fn on_exit_pool (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: Address , self :: ethcontract :: Address , Vec < self :: ethcontract :: U256 > , self :: ethcontract :: U256 , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , (Vec < self :: ethcontract :: U256 > , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([116 , 243 , 176 , 9]) } # [doc = "Returns signature for method `onJoinPool(bytes32,address,address,uint256[],uint256,uint256,bytes):(uint256[],uint256[])`."] # [allow (clippy :: type_complexity)] pub fn on_join_pool (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: Address , self :: ethcontract :: Address , Vec < self :: ethcontract :: U256 > , self :: ethcontract :: U256 , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , (Vec < self :: ethcontract :: U256 > , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([213 , 192 , 150 , 196]) } # [doc = "Returns signature for method `onSwap((uint8,address,address,uint256,bytes32,uint256,address,address,bytes),uint256,uint256):(uint256)`."] # [allow (clippy :: type_complexity)] pub fn on_swap (& self) -> self :: ethcontract :: contract :: Signature < ((u8 , self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: U256 , self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , self :: ethcontract :: U256 , self :: ethcontract :: U256 ,) , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([157 , 44 , 17 , 12]) } # [doc = "Returns signature for method `permit(address,address,uint256,uint256,uint8,bytes32,bytes32)`."] # [allow (clippy :: type_complexity)] pub fn permit (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: U256 , self :: ethcontract :: U256 , u8 , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > ,) , () > { self :: ethcontract :: contract :: Signature :: new ([213 , 5 , 172 , 207]) } # [doc = "Returns signature for method `queryExit(bytes32,address,address,uint256[],uint256,uint256,bytes):(uint256,uint256[])`."] # [allow (clippy :: type_complexity)] pub fn query_exit (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: Address , self :: ethcontract :: Address , Vec < self :: ethcontract :: U256 > , self :: ethcontract :: U256 , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , (self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([96 , 40 , 191 , 212]) } # [doc = "Returns signature for method `queryJoin(bytes32,address,address,uint256[],uint256,uint256,bytes):(uint256,uint256[])`."] # [allow (clippy :: type_complexity)] pub fn query_join (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: Address , self :: ethcontract :: Address , Vec < self :: ethcontract :: U256 > , self :: ethcontract :: U256 , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , (self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self :: ethcontract :: contract :: Signature :: new ([135 , 236 , 104 , 23]) } # [doc = "Returns signature for method `setAssetManagerPoolConfig(address,bytes)`."] # [allow (clippy :: type_complexity)] pub fn set_asset_manager_pool_config (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , () > { self :: ethcontract :: contract :: Signature :: new ([80 , 221 , 110 , 217]) } # [doc = "Returns signature for method `setPaused(bool)`."] # [allow (clippy :: type_complexity)] pub fn set_paused (& self) -> self :: ethcontract :: contract :: Signature < (bool ,) , () > { self :: ethcontract :: contract :: Signature :: new ([22 , 195 , 139 , 60]) } # [doc = "Returns signature for method `setSwapEnabled(bool)`."] # [allow (clippy :: type_complexity)] pub fn set_swap_enabled (& self) -> self :: ethcontract :: contract :: Signature < (bool ,) , () > { self :: ethcontract :: contract :: Signature :: new ([224 , 26 , 249 , 44]) } # [doc = "Returns signature for method `setSwapFeePercentage(uint256)`."] # [allow (clippy :: type_complexity)] pub fn set_swap_fee_percentage (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: U256 ,) , () > { self :: ethcontract :: contract :: Signature :: new ([56 , 233 , 146 , 46]) } # [doc = "Returns signature for method `symbol():(string)`."] # [allow (clippy :: type_complexity)] pub fn symbol (& self) -> self :: ethcontract :: contract :: Signature < () , String > { self :: ethcontract :: contract :: Signature :: new ([149 , 216 , 155 , 65]) } # [doc = "Returns signature for method `totalSupply():(uint256)`."] # [allow (clippy :: type_complexity)] pub fn total_supply (& self) -> self :: ethcontract :: contract :: Signature < () , self :: ethcontract :: U256 > { self :: ethcontract :: contract :: Signature :: new ([24 , 22 , 13 , 221]) } # [doc = "Returns signature for method `transfer(address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn transfer (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([169 , 5 , 156 , 187]) } # [doc = "Returns signature for method `transferFrom(address,address,uint256):(bool)`."] # [allow (clippy :: type_complexity)] pub fn transfer_from (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: U256 ,) , bool > { self :: ethcontract :: contract :: Signature :: new ([35 , 184 , 114 , 221]) } # [doc = "Returns signature for method `updateWeightsGradually(uint256,uint256,uint256[])`."] # [allow (clippy :: type_complexity)] pub fn update_weights_gradually (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: U256 , self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 > ,) , () > { self :: ethcontract :: contract :: Signature :: new ([62 , 86 , 146 , 5]) } # [doc = "Returns signature for method `withdrawCollectedManagementFees(address)`."] # [allow (clippy :: type_complexity)] pub fn withdraw_collected_management_fees (& self) -> self :: ethcontract :: contract :: Signature < (self :: ethcontract :: Address ,) , () > { self :: ethcontract :: contract :: Signature :: new ([91 , 119 , 21 , 94]) } } # [doc = r" Type containing all contract methods for generated contract type."] # [derive (Clone)] pub struct Methods { instance : self :: ethcontract :: dyns :: DynInstance , } # [allow (clippy :: too_many_arguments , clippy :: type_complexity)] impl Methods { # [doc = "Generated by `ethcontract`"] pub fn domain_separator (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self . instance . view_method ([54 , 68 , 229 , 21] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn allowance (& self , owner : self :: ethcontract :: Address , spender : self :: ethcontract :: Address) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([221 , 98 , 237 , 62] , (owner , spender ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn approve (& self , spender : self :: ethcontract :: Address , amount : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([9 , 94 , 167 , 179] , (spender , amount ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn balance_of (& self , account : self :: ethcontract :: Address) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([112 , 160 , 130 , 49] , (account ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn decimals (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < u8 > { self . instance . view_method ([49 , 60 , 229 , 103] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn decrease_allowance (& self , spender : self :: ethcontract :: Address , amount : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([164 , 87 , 194 , 215] , (spender , amount ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_action_id (& self , selector : self :: ethcontract :: tokens :: Bytes < [u8 ; 4] >) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self . instance . view_method ([133 , 28 , 27 , 179] , (selector ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_authorizer (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: Address > { self . instance . view_method ([170 , 171 , 173 , 197] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_collected_management_fees (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < (Vec < self :: ethcontract :: Address > , Vec < self :: ethcontract :: U256 >) > { self . instance . view_method ([50 , 241 , 68 , 245] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_gradual_weight_update_params (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < (self :: ethcontract :: U256 , self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self . instance . view_method ([123 , 238 , 210 , 32] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_invariant (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([192 , 255 , 26 , 21] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_last_invariant (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([155 , 2 , 205 , 222] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_management_swap_fee_percentage (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([144 , 96 , 95 , 58] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_minimum_weight_change_duration (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([179 , 34 , 199 , 155] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_normalized_weights (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < Vec < self :: ethcontract :: U256 > > { self . instance . view_method ([248 , 159 , 39 , 237] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_owner (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: Address > { self . instance . view_method ([137 , 61 , 32 , 232] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_paused_state (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < (bool , self :: ethcontract :: U256 , self :: ethcontract :: U256) > { self . instance . view_method ([28 , 13 , 224 , 81] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_pool_id (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > > { self . instance . view_method ([56 , 255 , 242 , 208] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_rate (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([103 , 154 , 239 , 206] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_scaling_factors (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < Vec < self :: ethcontract :: U256 > > { self . instance . view_method ([29 , 215 , 70 , 234] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_swap_enabled (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < bool > { self . instance . view_method ([71 , 188 , 77 , 146] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_swap_fee_percentage (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([85 , 198 , 118 , 40] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn get_vault (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: Address > { self . instance . view_method ([141 , 146 , 138 , 248] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn increase_allowance (& self , spender : self :: ethcontract :: Address , added_value : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([57 , 80 , 147 , 81] , (spender , added_value ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn name (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < String > { self . instance . view_method ([6 , 253 , 222 , 3] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn nonces (& self , owner : self :: ethcontract :: Address) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([126 , 206 , 190 , 0] , (owner ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn on_exit_pool (& self , pool_id : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , balances : Vec < self :: ethcontract :: U256 > , last_change_block : self :: ethcontract :: U256 , protocol_swap_fee_percentage : self :: ethcontract :: U256 , user_data : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < (Vec < self :: ethcontract :: U256 > , Vec < self :: ethcontract :: U256 >) > { self . instance . method ([116 , 243 , 176 , 9] , (pool_id , sender , recipient , balances , last_change_block , protocol_swap_fee_percentage , user_data ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn on_join_pool (& self , pool_id : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , balances : Vec < self :: ethcontract :: U256 > , last_change_block : self :: ethcontract :: U256 , protocol_swap_fee_percentage : self :: ethcontract :: U256 , user_data : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < (Vec < self :: ethcontract :: U256 > , Vec < self :: ethcontract :: U256 >) > { self . instance . method ([213 , 192 , 150 , 196] , (pool_id , sender , recipient , balances , last_change_block , protocol_swap_fee_percentage , user_data ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn on_swap (& self , swap_request : (u8 , self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: U256 , self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , self :: ethcontract :: U256 , self :: ethcontract :: Address , self :: ethcontract :: Address , self :: ethcontract :: tokens :: Bytes < Vec < u8 >> ,) , current_balance_token_in : self :: ethcontract :: U256 , current_balance_token_out : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < self :: ethcontract :: U256 > { self . instance . method ([157 , 44 , 17 , 12] , (swap_request , current_balance_token_in , current_balance_token_out ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn permit (& self , owner : self :: ethcontract :: Address , spender : self :: ethcontract :: Address , value : self :: ethcontract :: U256 , deadline : self :: ethcontract :: U256 , v : u8 , r : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , s : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] >) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([213 , 5 , 172 , 207] , (owner , spender , value , deadline , v , r , s ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn query_exit (& self , pool_id : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , balances : Vec < self :: ethcontract :: U256 > , last_change_block : self :: ethcontract :: U256 , protocol_swap_fee_percentage : self :: ethcontract :: U256 , user_data : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < (self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self . instance . method ([96 , 40 , 191 , 212] , (pool_id , sender , recipient , balances , last_change_block , protocol_swap_fee_percentage , user_data ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn query_join (& self , pool_id : self :: ethcontract :: tokens :: Bytes < [u8 ; 32] > , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , balances : Vec < self :: ethcontract :: U256 > , last_change_block : self :: ethcontract :: U256 , protocol_swap_fee_percentage : self :: ethcontract :: U256 , user_data : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < (self :: ethcontract :: U256 , Vec < self :: ethcontract :: U256 >) > { self . instance . method ([135 , 236 , 104 , 23] , (pool_id , sender , recipient , balances , last_change_block , protocol_swap_fee_percentage , user_data ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn set_asset_manager_pool_config (& self , token : self :: ethcontract :: Address , pool_config : self :: ethcontract :: tokens :: Bytes < Vec < u8 >>) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([80 , 221 , 110 , 217] , (token , pool_config ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn set_paused (& self , paused : bool) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([22 , 195 , 139 , 60] , (paused ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn set_swap_enabled (& self , swap_enabled : bool) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([224 , 26 , 249 , 44] , (swap_enabled ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn set_swap_fee_percentage (& self , swap_fee_percentage : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([56 , 233 , 146 , 46] , (swap_fee_percentage ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn symbol (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < String > { self . instance . view_method ([149 , 216 , 155 , 65] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn total_supply (& self) -> self :: ethcontract :: dyns :: DynViewMethodBuilder < self :: ethcontract :: U256 > { self . instance . view_method ([24 , 22 , 13 , 221] , ()) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn transfer (& self , recipient : self :: ethcontract :: Address , amount : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([169 , 5 , 156 , 187] , (recipient , amount ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn transfer_from (& self , sender : self :: ethcontract :: Address , recipient : self :: ethcontract :: Address , amount : self :: ethcontract :: U256) -> self :: ethcontract :: dyns :: DynMethodBuilder < bool > { self . instance . method ([35 , 184 , 114 , 221] , (sender , recipient , amount ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn update_weights_gradually (& self , start_time : self :: ethcontract :: U256 , end_time : self :: ethcontract :: U256 , end_weights : Vec < self :: ethcontract :: U256 >) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([62 , 86 , 146 , 5] , (start_time , end_time , end_weights ,)) . expect ("generated call") } # [doc = "Generated by `ethcontract`"] pub fn withdraw_collected_management_fees (& self , recipient : self :: ethcontract :: Address) -> self :: ethcontract :: dyns :: DynMethodBuilder < () > { self . instance . method ([91 , 119 , 21 , 94] , (recipient ,)) . expect ("generated call") } } impl std :: ops :: Deref for Contract { type Target = Methods ; fn deref (& self) -> & Self :: Target { & self . methods } } # [doc = r" Module containing all generated data models for this contract's"] # [doc = r" events."] pub mod event_data { use super :: ethcontract ; # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct Approval { pub owner : self :: ethcontract :: Address , pub spender : self :: ethcontract :: Address , pub value : self :: ethcontract :: U256 , } impl Approval { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`Approval(address,address,uint256)`"] pub fn abi_signature () -> & 'static str { "Approval(address,address,uint256)" } } impl self :: ethcontract :: tokens :: Tokenize for Approval { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (owner , spender , value ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (Approval { owner , spender , value }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct GradualWeightUpdateScheduled { pub start_time : self :: ethcontract :: U256 , pub end_time : self :: ethcontract :: U256 , pub start_weights : Vec < self :: ethcontract :: U256 > , pub end_weights : Vec < self :: ethcontract :: U256 > , } impl GradualWeightUpdateScheduled { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([15 , 54 , 49 , 249 , 218 , 176 , 129 , 105 , 209 , 219 , 33 , 198 , 220 , 95 , 50 , 83 , 111 , 178 , 176 , 166 , 185 , 187 , 83 , 48 , 215 , 28 , 82 , 19 , 47 , 150 , 139 , 224]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`GradualWeightUpdateScheduled(uint256,uint256,uint256[],uint256[])`"] pub fn abi_signature () -> & 'static str { "GradualWeightUpdateScheduled(uint256,uint256,uint256[],uint256[])" } } impl self :: ethcontract :: tokens :: Tokenize for GradualWeightUpdateScheduled { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (start_time , end_time , start_weights , end_weights ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (GradualWeightUpdateScheduled { start_time , end_time , start_weights , end_weights }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct ManagementFeePercentageChanged { pub management_fee_percentage : self :: ethcontract :: U256 , } impl ManagementFeePercentageChanged { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([235 , 169 , 158 , 158 , 54 , 223 , 121 , 3 , 20 , 147 , 239 , 216 , 71 , 60 , 252 , 229 , 71 , 93 , 58 , 19 , 88 , 120 , 102 , 84 , 144 , 223 , 139 , 1 , 64 , 105 , 50 , 16]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`ManagementFeePercentageChanged(uint256)`"] pub fn abi_signature () -> & 'static str { "ManagementFeePercentageChanged(uint256)" } } impl self :: ethcontract :: tokens :: Tokenize for ManagementFeePercentageChanged { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (management_fee_percentage ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (ManagementFeePercentageChanged { management_fee_percentage }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct ManagementFeesCollected { pub tokens : Vec < self :: ethcontract :: Address > , pub amounts : Vec < self :: ethcontract :: U256 > , } impl ManagementFeesCollected { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([92 , 248 , 221 , 77 , 222 , 173 , 237 , 33 , 197 , 227 , 220 , 64 , 67 , 7 , 63 , 167 , 101 , 144 , 137 , 224 , 209 , 29 , 132 , 128 , 52 , 70 , 99 , 0 , 141 , 255 , 6 , 15]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`ManagementFeesCollected(address[],uint256[])`"] pub fn abi_signature () -> & 'static str { "ManagementFeesCollected(address[],uint256[])" } } impl self :: ethcontract :: tokens :: Tokenize for ManagementFeesCollected { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (tokens , amounts ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (ManagementFeesCollected { tokens , amounts }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct PausedStateChanged { pub paused : bool , } impl PausedStateChanged { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([158 , 58 , 94 , 55 , 34 , 69 , 50 , 222 , 166 , 123 , 137 , 250 , 206 , 24 , 87 , 3 , 115 , 138 , 34 , 138 , 110 , 138 , 35 , 222 , 229 , 70 , 150 , 1 , 128 , 211 , 190 , 100]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`PausedStateChanged(bool)`"] pub fn abi_signature () -> & 'static str { "PausedStateChanged(bool)" } } impl self :: ethcontract :: tokens :: Tokenize for PausedStateChanged { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (paused ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (PausedStateChanged { paused }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct SwapEnabledSet { pub swap_enabled : bool , } impl SwapEnabledSet { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([90 , 158 , 132 , 247 , 143 , 121 , 87 , 203 , 78 , 215 , 71 , 142 , 176 , 252 , 173 , 53 , 238 , 78 , 203 , 226 , 224 , 242 , 152 , 66 , 11 , 40 , 163 , 149 , 83 , 146 , 87 , 63]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`SwapEnabledSet(bool)`"] pub fn abi_signature () -> & 'static str { "SwapEnabledSet(bool)" } } impl self :: ethcontract :: tokens :: Tokenize for SwapEnabledSet { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (swap_enabled ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (SwapEnabledSet { swap_enabled }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct SwapFeePercentageChanged { pub swap_fee_percentage : self :: ethcontract :: U256 , } impl SwapFeePercentageChanged { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([169 , 186 , 63 , 254 , 11 , 108 , 54 , 107 , 129 , 35 , 44 , 170 , 179 , 134 , 5 , 160 , 105 , 154 , 213 , 57 , 141 , 108 , 206 , 118 , 249 , 30 , 232 , 9 , 227 , 34 , 218 , 252]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`SwapFeePercentageChanged(uint256)`"] pub fn abi_signature () -> & 'static str { "SwapFeePercentageChanged(uint256)" } } impl self :: ethcontract :: tokens :: Tokenize for SwapFeePercentageChanged { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (swap_fee_percentage ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (SwapFeePercentageChanged { swap_fee_percentage }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } # [derive (Clone , Debug , Default , Eq , PartialEq ,)] pub struct Transfer { pub from : self :: ethcontract :: Address , pub to : self :: ethcontract :: Address , pub value : self :: ethcontract :: U256 , } impl Transfer { # [doc = r" Retrieves the signature for the event this data corresponds to."] # [doc = r" This signature is the Keccak-256 hash of the ABI signature of"] # [doc = r" this event."] pub fn signature () -> self :: ethcontract :: H256 { self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239]) } # [doc = r" Retrieves the ABI signature for the event this data corresponds"] # [doc = r" to. For this event the value should always be:"] # [doc = r""] # [doc = "`Transfer(address,address,uint256)`"] pub fn abi_signature () -> & 'static str { "Transfer(address,address,uint256)" } } impl self :: ethcontract :: tokens :: Tokenize for Transfer { fn from_token (token : self :: ethcontract :: common :: abi :: Token ,) -> Result < Self , self :: ethcontract :: tokens :: Error > { let (from , to , value ,) = self :: ethcontract :: tokens :: Tokenize :: from_token (token) ? ; Ok (Transfer { from , to , value }) } fn into_token (self) -> self :: ethcontract :: common :: abi :: Token { unimplemented ! ("events are only decoded, not encoded") } } } impl Contract { # [doc = r" Retrieves a handle to a type containing for creating event"] # [doc = r" streams for all the contract events."] pub fn events (& self) -> Events < '_ > { Events { instance : self . raw_instance () , } } } pub struct Events < 'a > { instance : & 'a self :: ethcontract :: dyns :: DynInstance , } impl Events < '_ > { # [doc = r" Generated by `ethcontract`."] pub fn approval (& self) -> self :: event_builders :: ApprovalBuilder { self :: event_builders :: ApprovalBuilder (self . instance . event (self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn gradual_weight_update_scheduled (& self) -> self :: event_builders :: GradualWeightUpdateScheduledBuilder { self :: event_builders :: GradualWeightUpdateScheduledBuilder (self . instance . event (self :: ethcontract :: H256 ([15 , 54 , 49 , 249 , 218 , 176 , 129 , 105 , 209 , 219 , 33 , 198 , 220 , 95 , 50 , 83 , 111 , 178 , 176 , 166 , 185 , 187 , 83 , 48 , 215 , 28 , 82 , 19 , 47 , 150 , 139 , 224])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn management_fee_percentage_changed (& self) -> self :: event_builders :: ManagementFeePercentageChangedBuilder { self :: event_builders :: ManagementFeePercentageChangedBuilder (self . instance . event (self :: ethcontract :: H256 ([235 , 169 , 158 , 158 , 54 , 223 , 121 , 3 , 20 , 147 , 239 , 216 , 71 , 60 , 252 , 229 , 71 , 93 , 58 , 19 , 88 , 120 , 102 , 84 , 144 , 223 , 139 , 1 , 64 , 105 , 50 , 16])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn management_fees_collected (& self) -> self :: event_builders :: ManagementFeesCollectedBuilder { self :: event_builders :: ManagementFeesCollectedBuilder (self . instance . event (self :: ethcontract :: H256 ([92 , 248 , 221 , 77 , 222 , 173 , 237 , 33 , 197 , 227 , 220 , 64 , 67 , 7 , 63 , 167 , 101 , 144 , 137 , 224 , 209 , 29 , 132 , 128 , 52 , 70 , 99 , 0 , 141 , 255 , 6 , 15])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn paused_state_changed (& self) -> self :: event_builders :: PausedStateChangedBuilder { self :: event_builders :: PausedStateChangedBuilder (self . instance . event (self :: ethcontract :: H256 ([158 , 58 , 94 , 55 , 34 , 69 , 50 , 222 , 166 , 123 , 137 , 250 , 206 , 24 , 87 , 3 , 115 , 138 , 34 , 138 , 110 , 138 , 35 , 222 , 229 , 70 , 150 , 1 , 128 , 211 , 190 , 100])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn swap_enabled_set (& self) -> self :: event_builders :: SwapEnabledSetBuilder { self :: event_builders :: SwapEnabledSetBuilder (self . instance . event (self :: ethcontract :: H256 ([90 , 158 , 132 , 247 , 143 , 121 , 87 , 203 , 78 , 215 , 71 , 142 , 176 , 252 , 173 , 53 , 238 , 78 , 203 , 226 , 224 , 242 , 152 , 66 , 11 , 40 , 163 , 149 , 83 , 146 , 87 , 63])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn swap_fee_percentage_changed (& self) -> self :: event_builders :: SwapFeePercentageChangedBuilder { self :: event_builders :: SwapFeePercentageChangedBuilder (self . instance . event (self :: ethcontract :: H256 ([169 , 186 , 63 , 254 , 11 , 108 , 54 , 107 , 129 , 35 , 44 , 170 , 179 , 134 , 5 , 160 , 105 , 154 , 213 , 57 , 141 , 108 , 206 , 118 , 249 , 30 , 232 , 9 , 227 , 34 , 218 , 252])) . expect ("generated event filter") ,) } # [doc = r" Generated by `ethcontract`."] pub fn transfer (& self) -> self :: event_builders :: TransferBuilder { self :: event_builders :: TransferBuilder (self . instance . event (self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239])) . expect ("generated event filter") ,) } } # [doc = r" Module containing the generated event stream builders with type safe"] # [doc = r" filter methods for this contract's events."] pub mod event_builders { use super :: ethcontract ; use super :: event_data ; # [doc = "A builder for creating a filtered stream of `Approval` events."] pub struct ApprovalBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: Approval > ,) ; impl ApprovalBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = "Adds a filter for the owner event parameter."] pub fn owner (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic0 (topic) ; self } # [doc = "Adds a filter for the spender event parameter."] pub fn spender (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic1 (topic) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: Approval >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: Approval > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `GradualWeightUpdateScheduled` events."] pub struct GradualWeightUpdateScheduledBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: GradualWeightUpdateScheduled > ,) ; impl GradualWeightUpdateScheduledBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: GradualWeightUpdateScheduled >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: GradualWeightUpdateScheduled > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `ManagementFeePercentageChanged` events."] pub struct ManagementFeePercentageChangedBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: ManagementFeePercentageChanged > ,) ; impl ManagementFeePercentageChangedBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: ManagementFeePercentageChanged >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: ManagementFeePercentageChanged > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `ManagementFeesCollected` events."] pub struct ManagementFeesCollectedBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: ManagementFeesCollected > ,) ; impl ManagementFeesCollectedBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: ManagementFeesCollected >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: ManagementFeesCollected > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `PausedStateChanged` events."] pub struct PausedStateChangedBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: PausedStateChanged > ,) ; impl PausedStateChangedBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: PausedStateChanged >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: PausedStateChanged > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `SwapEnabledSet` events."] pub struct SwapEnabledSetBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: SwapEnabledSet > ,) ; impl SwapEnabledSetBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: SwapEnabledSet >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: SwapEnabledSet > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `SwapFeePercentageChanged` events."] pub struct SwapFeePercentageChangedBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: SwapFeePercentageChanged > ,) ; impl SwapFeePercentageChangedBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: SwapFeePercentageChanged >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: SwapFeePercentageChanged > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } # [doc = "A builder for creating a filtered stream of `Transfer` events."] pub struct TransferBuilder (# [doc = r" The inner event builder."] pub self :: ethcontract :: dyns :: DynEventBuilder < self :: event_data :: Transfer > ,) ; impl TransferBuilder { # [doc = r" Sets the starting block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the latest block."] # [allow (clippy :: wrong_self_convention)] pub fn from_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . from_block (block) ; self } # [doc = r" Sets the last block from which to stream logs for."] # [doc = r""] # [doc = r" If left unset defaults to the streaming until the end of days."] # [allow (clippy :: wrong_self_convention)] pub fn to_block (mut self , block : self :: ethcontract :: BlockNumber) -> Self { self . 0 = (self . 0) . to_block (block) ; self } # [doc = r" Limits the number of events that can be retrieved by this filter."] # [doc = r""] # [doc = r" Note that this parameter is non-standard."] pub fn limit (mut self , value : usize) -> Self { self . 0 = (self . 0) . limit (value) ; self } # [doc = r" Sets the polling interval. This is used as the interval between"] # [doc = r" consecutive `eth_getFilterChanges` calls to get filter updates."] pub fn poll_interval (mut self , value : std :: time :: Duration) -> Self { self . 0 = (self . 0) . poll_interval (value) ; self } # [doc = "Adds a filter for the from event parameter."] pub fn from (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic0 (topic) ; self } # [doc = "Adds a filter for the to event parameter."] pub fn to (mut self , topic : self :: ethcontract :: Topic < self :: ethcontract :: Address >) -> Self { self . 0 = (self . 0) . topic1 (topic) ; self } # [doc = r" Returns a future that resolves with a collection of all existing"] # [doc = r" logs matching the builder parameters."] pub async fn query (self) -> std :: result :: Result < std :: vec :: Vec < self :: ethcontract :: Event < self :: event_data :: Transfer >> , self :: ethcontract :: errors :: EventError , > { (self . 0) . query () . await } # [doc = r" Creates an event stream from the current event builder."] pub fn stream (self) -> impl self :: ethcontract :: futures :: stream :: Stream < Item = std :: result :: Result < self :: ethcontract :: StreamEvent < self :: event_data :: Transfer > , self :: ethcontract :: errors :: EventError , > , > { (self . 0) . stream () } } } impl Contract { # [doc = r" Returns a log stream with all events."] pub fn all_events (& self) -> self :: ethcontract :: dyns :: DynAllEventsBuilder < Event > { self :: ethcontract :: dyns :: DynAllEventsBuilder :: new (self . raw_instance () . web3 () , self . address () , self . deployment_information () ,) } } # [doc = r" A contract event."] # [derive (Clone , Debug , Eq , PartialEq ,)] pub enum Event { Approval (self :: event_data :: Approval) , GradualWeightUpdateScheduled (self :: event_data :: GradualWeightUpdateScheduled) , ManagementFeePercentageChanged (self :: event_data :: ManagementFeePercentageChanged) , ManagementFeesCollected (self :: event_data :: ManagementFeesCollected) , PausedStateChanged (self :: event_data :: PausedStateChanged) , SwapEnabledSet (self :: event_data :: SwapEnabledSet) , SwapFeePercentageChanged (self :: event_data :: SwapFeePercentageChanged) , Transfer (self :: event_data :: Transfer) , } impl self :: ethcontract :: contract :: ParseLog for Event { fn parse_log (log : self :: ethcontract :: RawLog ,) -> Result < Self , self :: ethcontract :: errors :: ExecutionError > { let standard_event = log . topics . get (0) . copied () . map (| topic | match topic { self :: ethcontract :: H256 ([140 , 91 , 225 , 229 , 235 , 236 , 125 , 91 , 209 , 79 , 113 , 66 , 125 , 30 , 132 , 243 , 221 , 3 , 20 , 192 , 247 , 178 , 41 , 30 , 91 , 32 , 10 , 200 , 199 , 195 , 185 , 37]) => Ok (Event :: Approval (log . clone () . decode (Contract :: raw_contract () . abi . event ("Approval") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([15 , 54 , 49 , 249 , 218 , 176 , 129 , 105 , 209 , 219 , 33 , 198 , 220 , 95 , 50 , 83 , 111 , 178 , 176 , 166 , 185 , 187 , 83 , 48 , 215 , 28 , 82 , 19 , 47 , 150 , 139 , 224]) => Ok (Event :: GradualWeightUpdateScheduled (log . clone () . decode (Contract :: raw_contract () . abi . event ("GradualWeightUpdateScheduled") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([235 , 169 , 158 , 158 , 54 , 223 , 121 , 3 , 20 , 147 , 239 , 216 , 71 , 60 , 252 , 229 , 71 , 93 , 58 , 19 , 88 , 120 , 102 , 84 , 144 , 223 , 139 , 1 , 64 , 105 , 50 , 16]) => Ok (Event :: ManagementFeePercentageChanged (log . clone () . decode (Contract :: raw_contract () . abi . event ("ManagementFeePercentageChanged") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([92 , 248 , 221 , 77 , 222 , 173 , 237 , 33 , 197 , 227 , 220 , 64 , 67 , 7 , 63 , 167 , 101 , 144 , 137 , 224 , 209 , 29 , 132 , 128 , 52 , 70 , 99 , 0 , 141 , 255 , 6 , 15]) => Ok (Event :: ManagementFeesCollected (log . clone () . decode (Contract :: raw_contract () . abi . event ("ManagementFeesCollected") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([158 , 58 , 94 , 55 , 34 , 69 , 50 , 222 , 166 , 123 , 137 , 250 , 206 , 24 , 87 , 3 , 115 , 138 , 34 , 138 , 110 , 138 , 35 , 222 , 229 , 70 , 150 , 1 , 128 , 211 , 190 , 100]) => Ok (Event :: PausedStateChanged (log . clone () . decode (Contract :: raw_contract () . abi . event ("PausedStateChanged") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([90 , 158 , 132 , 247 , 143 , 121 , 87 , 203 , 78 , 215 , 71 , 142 , 176 , 252 , 173 , 53 , 238 , 78 , 203 , 226 , 224 , 242 , 152 , 66 , 11 , 40 , 163 , 149 , 83 , 146 , 87 , 63]) => Ok (Event :: SwapEnabledSet (log . clone () . decode (Contract :: raw_contract () . abi . event ("SwapEnabledSet") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([169 , 186 , 63 , 254 , 11 , 108 , 54 , 107 , 129 , 35 , 44 , 170 , 179 , 134 , 5 , 160 , 105 , 154 , 213 , 57 , 141 , 108 , 206 , 118 , 249 , 30 , 232 , 9 , 227 , 34 , 218 , 252]) => Ok (Event :: SwapFeePercentageChanged (log . clone () . decode (Contract :: raw_contract () . abi . event ("SwapFeePercentageChanged") . expect ("generated event decode")) ?)) , self :: ethcontract :: H256 ([221 , 242 , 82 , 173 , 27 , 226 , 200 , 155 , 105 , 194 , 176 , 104 , 252 , 55 , 141 , 170 , 149 , 43 , 167 , 241 , 99 , 196 , 161 , 22 , 40 , 245 , 90 , 77 , 245 , 35 , 179 , 239]) => Ok (Event :: Transfer (log . clone () . decode (Contract :: raw_contract () . abi . event ("Transfer") . expect ("generated event decode")) ?)) , _ => Err (self :: ethcontract :: errors :: ExecutionError :: from (self :: ethcontract :: common :: abi :: Error :: InvalidData)) , }) ; if let Some (Ok (data)) = standard_event { return Ok (data) ; } Err (self :: ethcontract :: errors :: ExecutionError :: from (self :: ethcontract :: common :: abi :: Error :: InvalidData)) } } } pub use self :: managed_pool :: Contract as ManagedPool ;
|
113 |
#[allow(clippy::wrong_self_convention)]
|
114 |
impl<'a, S: Source + 'a> Content<'a, S> {
|
270 |
///
|
271 |
#[allow(clippy::wrong_self_convention)]
|
272 |
impl<'a, S: Source + 'a> Primitive<'a, S> {
|
82 |
/// Encodes this address to a bech32 string with the given Human Readable Part as prefix.
|
83 |
#[allow(clippy::wrong_self_convention)]
|
84 |
pub fn to_bech32<T: AsRef<str>>(&self, hrp: T) -> String {
|
45 |
/// Encodes this address to a Bech32 string with the hrp (human readable part) argument as prefix.
|
46 |
#[allow(clippy::wrong_self_convention)]
|
47 |
pub fn to_bech32(&self, hrp: &str) -> String {
|
102 |
/// TODO: Rename this `reencode`
|
103 |
#[allow(clippy::wrong_self_convention)]
|
104 |
fn into_encoding<T: RawEncodingBuf>(this: TritBuf<Self>) -> TritBuf<T>
|
124 |
#[inline]
|
125 |
#[allow(clippy::wrong_self_convention)]
|
126 |
pub fn as_ptr(self) -> *mut u8 {
|
154 |
#[inline]
|
155 |
#[allow(clippy::wrong_self_convention)]
|
156 |
pub fn as_ptr(&self) -> *mut u8 {
|
193 |
#[inline]
|
194 |
#[allow(clippy::wrong_self_convention)]
|
195 |
pub fn as_ptr(&self) -> *mut u8 {
|
8 |
pub trait Encodable {
|
9 |
#[allow(clippy::wrong_self_convention)]
|
10 |
fn to_bytes(self, dst: &mut [u8]) -> Result<usize, Error>;
|
12 |
#[cfg(not(feature = "no_std"))]
|
13 |
#[allow(clippy::wrong_self_convention)]
|
14 |
fn to_writer(self, dst: &mut impl Write) -> Result<(), E>;
|
18 |
impl<'a, T: Into<EncodableField<'a>>> Encodable for T {
|
19 |
#[allow(clippy::wrong_self_convention)]
|
20 |
fn to_bytes(self, dst: &mut [u8]) -> Result<usize, Error> {
|
25 |
#[cfg(not(feature = "no_std"))]
|
26 |
#[allow(clippy::wrong_self_convention)]
|
27 |
fn to_writer(self, dst: &mut impl Write) -> Result<(), E> {
|
41 |
#[allow(clippy::wrong_self_convention)]
|
42 |
pub fn to_bytes<T: Encodable + GetSize>(src: T) -> Result<Vec<u8>, Error> {
|
48 |
#[allow(clippy::wrong_self_convention)]
|
49 |
pub fn to_writer<T: Encodable>(src: T, dst: &mut [u8]) -> Result<(), Error> {
|
140 |
/// owner drop them the CVec will point to garbage.
|
141 |
#[allow(clippy::wrong_self_convention)]
|
142 |
pub fn as_shared_buffer(v: &mut [u8]) -> Self {
|
9 |
/// Generally allocations will be avoided if all data falls into the ASCII range.
|
10 |
#[allow(clippy::wrong_self_convention)]
|
11 |
fn from_cp437(self) -> Self::Target;
|
90 |
/// Write to a given file path.
|
91 |
#[allow(clippy::wrong_self_convention)]
|
92 |
pub fn to_file<P: AsRef<Path>>(path: P) -> io::Result<Self> {
|
800 |
/// Write to the given file path.
|
801 |
#[allow(clippy::wrong_self_convention)]
|
802 |
pub fn to_file<P: AsRef<Path>>(path: P) -> io::Result<Self> {
|
518 |
/// Write to a given file path.
|
519 |
#[allow(clippy::wrong_self_convention)]
|
520 |
pub fn to_file<P: AsRef<Path>>(path: P) -> io::Result<Self> {
|
212 |
/// Write to a given file path in given format.
|
213 |
#[allow(clippy::wrong_self_convention)]
|
214 |
pub fn to_file<P: AsRef<Path>>(path: P, fileformat: GffType) -> io::Result<Self> {
|
146 |
/// Write to the given file path.
|
147 |
#[allow(clippy::wrong_self_convention)]
|
148 |
pub fn to_file<P: AsRef<Path>>(path: P) -> io::Result<Self> {
|
505 |
/// ```
|
506 |
#[allow(clippy::wrong_self_convention)] // E is not Copy so we consume self.
|
507 |
pub fn is_sighash_single_bug(self) -> Result<bool, E> {
|
518 |
/// ```
|
519 |
#[allow(clippy::wrong_self_convention)] // E is not Copy so we consume self.
|
520 |
pub fn is_sighash_single_bug(self) -> Result<bool, E> {
|
18 |
#[allow(clippy::wrong_self_convention)]
|
19 |
fn from_le(self) -> Self;
|
220 |
#[allow(clippy::wrong_self_convention)]
|
221 |
fn is_server_alive(&mut self) -> bool {
|
765 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString
|
766 |
#[allow(clippy::wrong_self_convention)]
|
767 |
pub(crate) fn to_string(
|
128 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toString
|
129 |
#[allow(clippy::wrong_self_convention)]
|
130 |
pub(crate) fn to_string(
|
195 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN
|
196 |
#[allow(clippy::wrong_self_convention)]
|
197 |
pub(crate) fn as_int_n(
|
221 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asUintN
|
222 |
#[allow(clippy::wrong_self_convention)]
|
223 |
pub(crate) fn as_uint_n(
|
111 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toString
|
112 |
#[allow(clippy::wrong_self_convention)]
|
113 |
pub(crate) fn to_string(
|
510 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
511 |
#[allow(clippy::wrong_self_convention)]
|
512 |
pub(crate) fn to_primitive(
|
1625 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toDateString
|
1626 |
#[allow(clippy::wrong_self_convention)]
|
1627 |
pub fn to_date_string(
|
1671 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
1672 |
#[allow(clippy::wrong_self_convention)]
|
1673 |
pub fn to_iso_string(
|
1699 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toJSON
|
1700 |
#[allow(clippy::wrong_self_convention)]
|
1701 |
pub fn to_json(this: &JsValue, _: &[JsValue], context: &mut Context) -> JsResult<JsValue> {
|
1732 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toString
|
1733 |
#[allow(clippy::wrong_self_convention)]
|
1734 |
pub fn to_string(this: &JsValue, _: &[JsValue], context: &mut Context) -> JsResult<JsValue> {
|
903 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString
|
904 |
#[allow(clippy::wrong_self_convention)]
|
905 |
pub(crate) fn to_string(
|
158 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toString
|
159 |
#[allow(clippy::wrong_self_convention)]
|
160 |
pub(crate) fn to_string(
|
225 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN
|
226 |
#[allow(clippy::wrong_self_convention)]
|
227 |
pub(crate) fn as_int_n(
|
256 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asUintN
|
257 |
#[allow(clippy::wrong_self_convention)]
|
258 |
pub(crate) fn as_uint_n(
|
96 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean/toString
|
97 |
#[allow(clippy::wrong_self_convention)]
|
98 |
pub(crate) fn to_string(
|
498 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/@@toPrimitive
|
499 |
#[allow(clippy::wrong_self_convention)]
|
500 |
pub(crate) fn to_primitive(
|
1619 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toDateString
|
1620 |
#[allow(clippy::wrong_self_convention)]
|
1621 |
pub fn to_date_string(
|
1670 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
1671 |
#[allow(clippy::wrong_self_convention)]
|
1672 |
pub fn to_iso_string(
|
1698 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toJSON
|
1699 |
#[allow(clippy::wrong_self_convention)]
|
1700 |
pub fn to_json(this: &JsValue, _: &[JsValue], context: &mut Context) -> JsResult<JsValue> {
|
1728 |
/// [mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toString
|
1729 |
#[allow(clippy::wrong_self_convention)]
|
1730 |
pub fn to_string(this: &JsValue, _: &[JsValue], context: &mut Context) -> JsResult<JsValue> {
|
53 |
/// ```
|
54 |
#[allow(clippy::wrong_self_convention)]
|
55 |
fn to_option(self) -> Option<()>;
|
138 |
/// ```
|
139 |
#[allow(clippy::wrong_self_convention, clippy::result_unit_err)]
|
140 |
fn to_result(self) -> Result<(), ()>;
|
884 |
/// Boxes the reader.
|
885 |
#[allow(clippy::wrong_self_convention)]
|
886 |
fn as_boxed<'a>(self) -> Box<dyn BufferedReader<C> + 'a>
|
179 |
/// ```
|
180 |
#[allow(clippy::wrong_self_convention)]
|
181 |
fn convert(from: <Self as By<'a, From>>::Type) -> <Self as By<'a, To>>::Type;
|
239 |
pub trait As<'a, C: Convention, T: By<'a, C>>: By<'a, C> {
|
240 |
#[allow(clippy::wrong_self_convention)]
|
241 |
fn as_convention(this: <Self as By<'a, C>>::Type) -> <T as By<'a, C>>::Type;
|
51 |
#[allow(clippy::wrong_self_convention)]
|
52 |
fn into_service(&self) -> &dyn Service<State>;
|
243 |
#[allow(clippy::wrong_self_convention)]
|
244 |
fn is_valid_uref(&mut self, uref_ptr: u32, uref_size: u32) -> Result<bool, Trap> {
|
331 |
impl<I> Source<I> {
|
332 |
#[allow(clippy::wrong_self_convention)]
|
333 |
pub(crate) fn from_client(&self) -> bool {
|
73 |
#[allow(clippy::wrong_self_convention)]
|
74 |
pub fn to_bmoc(mut self) -> BMOC {
|
79 |
/// no cell included in another cell)
|
80 |
#[allow(clippy::wrong_self_convention)]
|
81 |
pub fn to_bmoc_from_unordered(mut self) -> BMOC {
|
193 |
#[allow(clippy::wrong_self_convention)]
|
194 |
pub fn to_bmoc_packing(&mut self) -> BMOC {
|
199 |
#[allow(clippy::wrong_self_convention)]
|
200 |
pub fn to_lower_depth_bmoc(&mut self, new_depth: u8) -> BMOC {
|
206 |
#[allow(clippy::wrong_self_convention)]
|
207 |
pub fn to_lower_depth_bmoc_packing(&mut self, new_depth: u8) -> BMOC {
|
37 |
{
|
38 |
#[allow(clippy::wrong_self_convention)]
|
39 |
fn into_bytes(&self) -> Vec<u8>;
|
80 |
#[allow(clippy::wrong_self_convention)]
|
81 |
fn as_numeric(self) -> Option<EvalResult> {
|
122 |
pub trait FromExtend<T>: Extend<T> + Sized {
|
123 |
#[allow(clippy::wrong_self_convention)]
|
124 |
fn from_extend(&mut self) -> OpaqueCallback<T> {
|
56 |
/// Convert a DeviceType into the character that the kernel recognizes.
|
57 |
#[allow(clippy::should_implement_trait, clippy::wrong_self_convention)]
|
58 |
pub fn to_char(&self) -> char {
|
95 |
/// Convert a DevicePermissions into the character that the kernel recognizes.
|
96 |
#[allow(clippy::should_implement_trait, clippy::wrong_self_convention)]
|
97 |
pub fn to_char(&self) -> char {
|
888 |
impl MaxValue {
|
889 |
#[allow(clippy::should_implement_trait, clippy::wrong_self_convention)]
|
890 |
fn to_i64(&self) -> i64 {
|
5580 |
}
|
5581 |
#[allow(clippy::wrong_self_convention)]
|
5582 |
pub mod js_protocol {
|
16324 |
}
|
16325 |
#[allow(clippy::wrong_self_convention)]
|
16326 |
pub mod browser_protocol {
|
451 |
/// Converts the local `NaiveDate` to the timezone-aware `Date` if possible.
|
452 |
#[allow(clippy::wrong_self_convention)]
|
453 |
#[deprecated(since = "0.4.23", note = "use `from_local_datetime()` instead")]
|
462 |
/// Converts the local `NaiveDateTime` to the timezone-aware `DateTime` if possible.
|
463 |
#[allow(clippy::wrong_self_convention)]
|
464 |
fn from_local_datetime(&self, local: &NaiveDateTime) -> LocalResult<DateTime<Self>> {
|
476 |
/// The UTC is continuous and thus this cannot fail (but can give the duplicate local time).
|
477 |
#[allow(clippy::wrong_self_convention)]
|
478 |
#[deprecated(since = "0.4.23", note = "use `from_utc_datetime()` instead")]
|
485 |
/// The UTC is continuous and thus this cannot fail (but can give the duplicate local time).
|
486 |
#[allow(clippy::wrong_self_convention)]
|
487 |
fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Self> {
|
1130 |
/// ```
|
1131 |
#[allow(clippy::wrong_self_convention)]
|
1132 |
fn from_str<U>(self) -> Map<Self, fn(O) -> Result<U, U::Err>, O>
|
212 |
#[cfg(feature = "alloc")]
|
213 |
#[allow(clippy::wrong_self_convention)]
|
214 |
fn to_string_v0(&self) -> String {
|
218 |
#[cfg(feature = "alloc")]
|
219 |
#[allow(clippy::wrong_self_convention)]
|
220 |
fn to_string_v1(&self) -> String {
|
174 |
/// EIP161 (balance = nonce = code = 0).
|
175 |
#[allow(clippy::wrong_self_convention)]
|
176 |
pub fn is_empty(&mut self, address: &Address) -> Result<bool, Error> {
|
189 |
/// EIP161 (balance = nonce = code = 0).
|
190 |
#[allow(clippy::wrong_self_convention)]
|
191 |
pub fn is_empty(&mut self, address: &Address) -> Result<bool, Error> {
|
24 |
#[allow(clippy::wrong_self_convention)]
|
25 |
pub trait ArgParser<T> {
|
191 |
// wrong_self_convention allows is_* to take &mut self
|
192 |
#[allow(clippy::wrong_self_convention)]
|
193 |
pub(crate) fn is_timeout(&mut self, now_tip_ts: u64, now: u64) -> Option<bool> {
|
899 |
// allow wrong self convention due to self.valid_neg_num = true and it's a private method
|
900 |
#[allow(clippy::wrong_self_convention)]
|
901 |
fn is_new_arg(&mut self, arg_os: &OsStr, needs_val_of: ParseResult) -> bool {
|
784 |
#[inline]
|
785 |
#[allow(clippy::wrong_self_convention)]
|
786 |
fn to_bytes(&mut self) -> crate::bytes::Bytes {
|
137 |
// `&self` shared reference via the Display trait
|
138 |
#[allow(clippy::inherent_to_string, clippy::wrong_self_convention)]
|
139 |
fn to_string(self) -> String {
|
236 |
#[allow(clippy::wrong_self_convention)]
|
237 |
pub fn to_colored_json_auto(self, value: &Value) -> serde_json::Result<String> {
|
241 |
#[allow(clippy::wrong_self_convention)]
|
242 |
pub fn to_colored_json(self, value: &Value, mode: ColorMode) -> serde_json::Result<String> {
|
47 |
#[allow(clippy::wrong_self_convention)]
|
48 |
fn into_info(&'s self) -> Info<T, R, Self::Format>;
|
76 |
/// Will panic if refresh_rate is `Some(0)`. To disable rate limiting use `None` instead.
|
77 |
#[allow(clippy::wrong_self_convention)]
|
78 |
#[deprecated(since = "0.16.0", note = "Use `ProgressDrawTarget::term` instead")]
|
875 |
#[allow(clippy::wrong_self_convention)]
|
876 |
pub fn from_ident(&self, name: &TypeName) -> TokenStream {
|
880 |
#[allow(clippy::wrong_self_convention)]
|
881 |
pub fn into_ident(&self, name: &TypeName) -> TokenStream {
|
889 |
#[allow(clippy::wrong_self_convention)]
|
890 |
pub fn into_iterator_ident(&self, name: &TypeName) -> TokenStream {
|
234 |
/// ```
|
235 |
#[allow(clippy::wrong_self_convention)]
|
236 |
fn from_case(&self, case: Case) -> StateConverter<T>;
|
194 |
#[allow(clippy::wrong_self_convention)]
|
195 |
pub trait SlicePtrGet {
|
203 |
#[allow(clippy::wrong_self_convention)]
|
204 |
pub trait SlicePtrGetMut: SlicePtrGet {
|
276 |
#[allow(clippy::wrong_self_convention)]
|
277 |
pub trait IterIsSorted: Iterator {
|
1536 |
/// Return true if the child process is exited and false otherwise.
|
1537 |
#[allow(clippy::wrong_self_convention)]
|
1538 |
pub fn is_not_alive(&mut self) -> bool {
|
16 |
#[allow(clippy::wrong_self_convention)]
|
17 |
pub fn from_json<'a, T: serde::de::Deserialize<'a>>(
|
116 |
#[allow(clippy::wrong_self_convention)]
|
117 |
fn to_object<T: Serialize + ?Sized>(py: Python, value: &T) -> Result<PyObject> {
|
174 |
#[allow(clippy::wrong_self_convention)]
|
175 |
pub fn is_terminator(mut self, val: bool) -> Self {
|
180 |
#[allow(clippy::wrong_self_convention)]
|
181 |
pub fn is_branch(mut self, val: bool) -> Self {
|
186 |
#[allow(clippy::wrong_self_convention)]
|
187 |
pub fn is_call(mut self, val: bool) -> Self {
|
192 |
#[allow(clippy::wrong_self_convention)]
|
193 |
pub fn is_return(mut self, val: bool) -> Self {
|
296 |
/// Get the "from" register and register class, if possible.
|
297 |
#[cfg_attr(feature = "cargo-clippy", allow(wrong_self_convention))]
|
298 |
fn from_reg(&self) -> Option<(RegClass, RegUnit)> {
|
114 |
/// Converts a slice of `IoBufMut`s into a slice of `iovec`s.
|
115 |
#[allow(clippy::wrong_self_convention)]
|
116 |
#[inline]
|
151 |
/// Converts a slice of `VolatileSlice`s into a slice of `IoBufMut`s
|
152 |
#[allow(clippy::wrong_self_convention)]
|
153 |
pub fn as_iobufs<'mem, 'slice>(
|
528 |
//noinspection RsSelfConvention
|
529 |
#[allow(clippy::wrong_self_convention)]
|
530 |
fn from_accounts(
|
907 |
//noinspection RsSelfConvention
|
908 |
#[allow(clippy::wrong_self_convention)]
|
909 |
fn from_accounts(
|
1021 |
//noinspection RsSelfConvention
|
1022 |
#[allow(clippy::wrong_self_convention)]
|
1023 |
fn from_accounts(
|
1081 |
//noinspection RsSelfConvention
|
1082 |
#[allow(clippy::wrong_self_convention)]
|
1083 |
fn from_accounts(
|
383 |
/// Takes a Scalar29 out of Montgomery form, i.e. computes `a/R (mod l)`
|
384 |
#[allow(clippy::wrong_self_convention)]
|
385 |
pub fn from_montgomery(&self) -> Scalar29 {
|
312 |
/// Takes a Scalar52 out of Montgomery form, i.e. computes `a/R (mod l)`
|
313 |
#[allow(clippy::wrong_self_convention)]
|
314 |
#[inline(never)]
|
341 |
/// ```
|
342 |
#[allow(clippy::wrong_self_convention)]
|
343 |
pub fn into_device(mut b: DeviceBox<T>) -> DevicePointer<T> {
|
166 |
/// ```
|
167 |
#[allow(clippy::wrong_self_convention)]
|
168 |
pub fn into_unified(mut b: UnifiedBox<T>) -> UnifiedPointer<T> {
|
156 |
#[allow(clippy::wrong_self_convention)] // false positive
|
157 |
fn from_bool(value: bool) -> Result<Self> {
|
174 |
impl FromMeta for char {
|
175 |
#[allow(clippy::wrong_self_convention)] // false positive
|
176 |
fn from_char(value: char) -> Result<Self> {
|
1355 |
#[inline]
|
1356 |
#[allow(clippy::wrong_self_convention)]
|
1357 |
pub fn from_key<Q: ?Sized>(self, k: &Q) -> RawEntryMut<'a, K, V, S>
|
1368 |
#[inline]
|
1369 |
#[allow(clippy::wrong_self_convention)]
|
1370 |
pub fn from_key_hashed_nocheck<Q: ?Sized>(self, hash: u64, k: &Q) -> RawEntryMut<'a, K, V, S>
|
1384 |
#[inline]
|
1385 |
#[allow(clippy::wrong_self_convention)]
|
1386 |
pub fn from_hash<F>(self, hash: u64, is_match: F) -> RawEntryMut<'a, K, V, S>
|
1416 |
#[inline]
|
1417 |
#[allow(clippy::wrong_self_convention)]
|
1418 |
pub fn from_key<Q: ?Sized>(self, k: &Q) -> Option<(&'a K, &'a V)>
|
1429 |
#[inline]
|
1430 |
#[allow(clippy::wrong_self_convention)]
|
1431 |
pub fn from_key_hashed_nocheck<Q: ?Sized>(self, hash: u64, k: &Q) -> Option<(&'a K, &'a V)>
|
114 |
/// Converts a slice of `IoBufMut`s into a slice of `iovec`s.
|
115 |
#[allow(clippy::wrong_self_convention)]
|
116 |
#[inline]
|
151 |
/// Converts a slice of `VolatileSlice`s into a slice of `IoBufMut`s
|
152 |
#[allow(clippy::wrong_self_convention)]
|
153 |
pub fn as_iobufs<'mem, 'slice>(
|
478 |
/// Attempt to create a DSSchema
|
479 |
#[allow(clippy::wrong_self_convention)]
|
480 |
fn to_dfschema(self) -> Result<DFSchema>;
|
482 |
/// Attempt to create a DSSchemaRef
|
483 |
#[allow(clippy::wrong_self_convention)]
|
484 |
fn to_dfschema_ref(self) -> Result<DFSchemaRef> {
|
489 |
impl ToDFSchema for Schema {
|
490 |
#[allow(clippy::wrong_self_convention)]
|
491 |
fn to_dfschema(self) -> Result<DFSchema> {
|
496 |
impl ToDFSchema for SchemaRef {
|
497 |
#[allow(clippy::wrong_self_convention)]
|
498 |
fn to_dfschema(self) -> Result<DFSchema> {
|
726 |
/// Return `IsNull(Box(self))
|
727 |
#[allow(clippy::wrong_self_convention)]
|
728 |
pub fn is_null(self) -> Expr {
|
732 |
/// Return `IsNotNull(Box(self))
|
733 |
#[allow(clippy::wrong_self_convention)]
|
734 |
pub fn is_not_null(self) -> Expr {
|
73 |
/// So, `self.from_template(exprs, ..).expressions() == exprs
|
74 |
#[allow(clippy::wrong_self_convention)]
|
75 |
fn from_template(
|
319 |
// return a reference directly).
|
320 |
#[allow(clippy::wrong_self_convention)]
|
321 |
pub fn to_numoffset_mut(&mut self) -> Option<&mut TimeNumOffsetStr> {
|
74 |
#[allow(clippy::wrong_self_convention)]
|
75 |
impl<S, D> Refines<()> for Epoch<S, D>
|
52 |
#[inline]
|
53 |
#[allow(clippy::wrong_self_convention)]
|
54 |
pub fn into_cloned<T: 'static>(&self) -> Option<T>
|
174 |
/// the `IN (values)` clause for the given type
|
175 |
#[allow(clippy::wrong_self_convention)]
|
176 |
// That's a public api, we cannot just change it to
|
204 |
/// Perform the conversion
|
205 |
#[allow(clippy::wrong_self_convention)]
|
206 |
// That's public API we cannot change it to appease clippy
|
850 |
// that to appease clippy
|
851 |
#[allow(clippy::wrong_self_convention)]
|
852 |
fn as_expression_list(self) -> Self::Expression;
|
210 |
// so that name is really fine)
|
211 |
#[allow(clippy::wrong_self_convention)]
|
212 |
fn is_null(self) -> dsl::IsNull<Self> {
|
242 |
// so that name is really fine)
|
243 |
#[allow(clippy::wrong_self_convention)]
|
244 |
fn is_not_null(self) -> dsl::IsNotNull<Self> {
|
137 |
// we won't change it to appease a clippy lint
|
138 |
#[allow(clippy::wrong_self_convention)]
|
139 |
fn as_expression(self) -> Self::Expression;
|
38 |
/// ```
|
39 |
#[allow(clippy::wrong_self_convention)] // This is named after the sql operator
|
40 |
fn is_not_distinct_from<T>(self, other: T) -> dsl::IsNotDistinctFrom<Self, T>
|
66 |
/// ```
|
67 |
#[allow(clippy::wrong_self_convention)] // This is named after the sql operator
|
68 |
fn is_distinct_from<T>(self, other: T) -> dsl::IsDistinctFrom<Self, T>
|
308 |
/// ```
|
309 |
#[allow(clippy::wrong_self_convention)] // This is named after the sql operator
|
310 |
fn is_contained_by<T>(self, other: T) -> dsl::IsContainedBy<Self, T>
|
902 |
/// ```
|
903 |
#[allow(clippy::wrong_self_convention)] // This is named after the sql operator
|
904 |
fn is_contained_by<T>(self, other: T) -> dsl::IsContainedByNet<Self, T>
|
56 |
#[deprecated(since = "0.8.0", note = "Use write_to_file()")]
|
57 |
#[allow(clippy::wrong_self_convention)]
|
58 |
pub fn to_file<P: AsRef<Path>>(file: P) -> io::Result<Stream<File>> {
|
76 |
#[deprecated(since = "0.8.0", note = "Use write_to_new_file()")]
|
77 |
#[allow(clippy::wrong_self_convention)]
|
78 |
pub fn to_new_file<P: AsRef<Path>>(file: P, clobber: bool) -> io::Result<Stream<File>> {
|
17 |
pub trait CombinedKeyPublicExt {
|
18 |
#[allow(clippy::wrong_self_convention)]
|
19 |
/// Converts the publickey into a peer id, without consuming the key.
|
149 |
// taken by value.
|
150 |
#[allow(clippy::wrong_self_convention)]
|
151 |
fn into_walkdir_iterator(&self, walkdir: WalkDir<Self>) -> WalkdirIterator<Self>;
|
471 |
// taken by value.
|
472 |
#[allow(clippy::wrong_self_convention)]
|
473 |
pub fn into_walkdir_iterator(
|
67 |
{
|
68 |
#[allow(clippy::wrong_self_convention)]
|
69 |
fn is_correct(self: Arc<Self>, word: &str) -> bool {
|
394 |
/// ```
|
395 |
#[allow(clippy::wrong_self_convention)]
|
396 |
pub fn into_c_string(self: Box<Self>) -> CString {
|
165 |
/// [`index`]: #method.index
|
166 |
#[allow(clippy::wrong_self_convention)]
|
167 |
fn as_ref<T: ?Sized>(self) -> Then<Self, Ref, B>
|
27 |
#[allow(clippy::wrong_self_convention)]
|
28 |
pub(crate) fn is_empty(&mut self) -> bool {
|
20 |
#[allow(clippy::wrong_self_convention)]
|
21 |
fn new(self) -> Self::Source;
|
20 |
impl FieldAttributeBuilder {
|
21 |
#[allow(clippy::wrong_self_convention)]
|
22 |
pub fn from_clone_meta(&self, meta: &Meta) -> FieldAttribute {
|
214 |
#[allow(clippy::wrong_self_convention)]
|
215 |
pub fn from_attributes(self, attributes: &[Attribute], traits: &[Trait]) -> FieldAttribute {
|
67 |
impl TypeAttributeBuilder {
|
68 |
#[allow(clippy::wrong_self_convention)]
|
69 |
pub fn from_clone_meta(&self, meta: &Meta) -> TypeAttribute {
|
222 |
#[allow(clippy::wrong_self_convention)]
|
223 |
pub fn from_attributes(self, attributes: &[Attribute], traits: &[Trait]) -> TypeAttribute {
|
47 |
impl TypeAttributeBuilder {
|
48 |
#[allow(clippy::wrong_self_convention)]
|
49 |
pub fn from_copy_meta(&self, meta: &Meta) -> TypeAttribute {
|
40 |
impl FieldAttributeBuilder {
|
41 |
#[allow(clippy::wrong_self_convention)]
|
42 |
pub fn from_debug_meta(&self, meta: &Meta) -> FieldAttribute {
|
485 |
#[allow(clippy::wrong_self_convention)]
|
486 |
pub fn from_attributes(self, attributes: &[Attribute], traits: &[Trait]) -> FieldAttribute {
|
75 |
impl TypeAttributeBuilder {
|
76 |
#[allow(clippy::wrong_self_convention)]
|
77 |
pub fn from_debug_meta(&self, meta: &Meta) -> TypeAttribute {
|
498 |
#[allow(clippy::wrong_self_convention)]
|
499 |
pub fn from_attributes(self, attributes: &[Attribute], traits: &[Trait]) -> TypeAttribute {
|
23 |
impl FieldAttributeBuilder {
|
24 |
#[allow(clippy::wrong_self_convention)]
|
25 |
pub fn from_default_meta(&self, meta: &Meta) -> FieldAttribute {
|
54 |
#[inline]
|
55 |
#[allow(clippy::wrong_self_convention)]
|
56 |
pub unsafe fn into_mut(&self) -> NonNull<T> {
|
61 |
#[inline]
|
62 |
#[allow(clippy::wrong_self_convention)]
|
63 |
pub const fn as_ptr(self) -> *const T {
|
156 |
/// Creates a fresh `RawEncoder` instance which parameters are same as `self`.
|
157 |
#[allow(clippy::wrong_self_convention)]
|
158 |
fn from_self(&self) -> Box<dyn RawEncoder>;
|
184 |
/// Creates a fresh `RawDecoder` instance which parameters are same as `self`.
|
185 |
#[allow(clippy::wrong_self_convention)]
|
186 |
fn from_self(&self) -> Box<dyn RawDecoder>;
|
523 |
/// Finishes compilation and returns the image representing the compiled program.
|
524 |
#[allow(clippy::wrong_self_convention)]
|
525 |
fn to_image(mut self) -> Result<Image> {
|
320 |
#[allow(clippy::wrong_self_convention)]
|
321 |
impl TestRequest {
|
167 |
/// Whether or not to capture logs for `cargo test`.
|
168 |
#[allow(clippy::wrong_self_convention)]
|
169 |
pub(crate) fn is_test(&mut self, is_test: bool) -> &mut Self {
|
65 |
// Clippy incorrectly interprets the first argument as `self`.
|
66 |
#[allow(clippy::wrong_self_convention)]
|
67 |
fn from_children(a: Node, b: Node, trim: usize) -> Self {
|
819 |
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4293
|
820 |
fn into_non_null(self: Arc<WaiterNode>) -> NonNull<WaiterNode> {
|
7 |
#[allow(clippy::wrong_self_convention, clippy::upper_case_acronyms)]
|
8 |
pub trait IntoErlNif<'a>: 'a {
|
12 |
#[allow(clippy::wrong_self_convention, clippy::upper_case_acronyms)]
|
13 |
pub trait FromErlNif<'a>: 'a + Sized {
|
127 |
#[deprecated(since = "0.5.1", note = "please use `into_result` instead")]
|
128 |
#[allow(clippy::wrong_self_convention)]
|
129 |
pub fn as_result(self) -> Result<Self> {
|
323 |
#[allow(clippy::wrong_self_convention)]
|
324 |
impl TestRequest {
|
51 |
/// If left unset defaults to the latest block.
|
52 |
#[allow(clippy::wrong_self_convention)]
|
53 |
pub fn from_block(mut self, block: BlockNumber) -> Self {
|
60 |
/// If left unset defaults to the streaming until the end of days.
|
61 |
#[allow(clippy::wrong_self_convention)]
|
62 |
pub fn to_block(mut self, block: BlockNumber) -> Self {
|
200 |
/// If left unset defaults to the latest block.
|
201 |
#[allow(clippy::wrong_self_convention)]
|
202 |
pub fn from_block(mut self, block: BlockNumber) -> Self {
|
209 |
/// If left unset defaults to the streaming until the end of days.
|
210 |
#[allow(clippy::wrong_self_convention)]
|
211 |
pub fn to_block(mut self, block: BlockNumber) -> Self {
|
531 |
/// Write to the slice in big-endian format.
|
532 |
#[allow(clippy::wrong_self_convention)]
|
533 |
pub fn to_big_endian(&self, bytes: &mut [u8]) {
|
537 |
/// Write to the slice in little-endian format.
|
538 |
#[allow(clippy::wrong_self_convention)]
|
539 |
pub fn to_little_endian(&self, bytes: &mut [u8]) {
|
75 |
/// If left unset defaults to the latest block.
|
76 |
#[allow(clippy::wrong_self_convention)]
|
77 |
pub fn from_block(mut self, block: BlockNumber) -> Self {
|
84 |
/// If left unset defaults to the streaming until the end of days.
|
85 |
#[allow(clippy::wrong_self_convention)]
|
86 |
pub fn to_block(mut self, block: BlockNumber) -> Self {
|
66 |
/// Sets the filter's `from` block
|
67 |
#[allow(clippy::wrong_self_convention)]
|
68 |
pub fn from_block<T: Into<BlockNumber>>(mut self, block: T) -> Self {
|
73 |
/// Sets the filter's `to` block
|
74 |
#[allow(clippy::wrong_self_convention)]
|
75 |
pub fn to_block<T: Into<BlockNumber>>(mut self, block: T) -> Self {
|
81 |
/// set `from_block` and `to_block` fields.
|
82 |
#[allow(clippy::wrong_self_convention)]
|
83 |
pub fn at_block_hash<T: Into<H256>>(mut self, hash: T) -> Self {
|
206 |
#[allow(clippy::wrong_self_convention)]
|
207 |
#[must_use]
|
213 |
#[allow(clippy::wrong_self_convention)]
|
214 |
#[must_use]
|
220 |
#[allow(clippy::wrong_self_convention)]
|
221 |
#[must_use]
|
137 |
/// Copies and serializes `self` into a new `Vec` with the recovery id included
|
138 |
#[allow(clippy::wrong_self_convention)]
|
139 |
pub fn to_vec(&self) -> Vec<u8> {
|
34 |
/// Sets From block
|
35 |
#[allow(clippy::wrong_self_convention)]
|
36 |
#[must_use]
|
42 |
/// Sets to block
|
43 |
#[allow(clippy::wrong_self_convention)]
|
44 |
#[must_use]
|
50 |
/// Sets to address
|
51 |
#[allow(clippy::wrong_self_convention)]
|
52 |
#[must_use]
|
58 |
/// Sets from address
|
59 |
#[allow(clippy::wrong_self_convention)]
|
60 |
#[must_use]
|
70 |
/// [`I256`]: struct.I256.html
|
71 |
#[allow(clippy::wrong_self_convention)]
|
72 |
fn as_i256(self) -> I256;
|
303 |
#[inline]
|
304 |
#[allow(clippy::wrong_self_convention)]
|
305 |
pub const fn from_be(x: Self) -> Self {
|
333 |
#[inline]
|
334 |
#[allow(clippy::wrong_self_convention)]
|
335 |
pub const fn from_le(x: Self) -> Self {
|
76 |
/// [`U256`]: struct.U256.html
|
77 |
#[allow(clippy::wrong_self_convention)]
|
78 |
fn as_u256(self) -> U256;
|
64 |
impl MigrationTransition {
|
65 |
#[allow(clippy::wrong_self_convention, clippy::trivially_copy_pass_by_ref)]
|
66 |
fn to_pb(value: &Option<Self>) -> PbMigrationTransition {
|
590 |
// Used by `InstanceState`.
|
591 |
#[allow(clippy::wrong_self_convention)]
|
592 |
pub(super) fn to_pb(status: &Option<Self>) -> schema::lifecycle::InstanceStatus {
|
25 |
#[allow(clippy::wrong_self_convention)]
|
26 |
/// Healthcheck represents a check by which we can determine if a spawned process is still alive.
|
502 |
#[allow(clippy::wrong_self_convention)]
|
503 |
fn is_empty(&mut self) -> io::Result<bool> {
|
33 |
/// Checks if the [`Reference`] is an atomic expression [`&E::Atom`](Expression::Atom).
|
34 |
#[allow(clippy::wrong_self_convention)]
|
35 |
#[must_use]
|
44 |
/// Checks if the [`Reference`] is a grouped expression [`Group<E>::Ref`].
|
45 |
#[allow(clippy::wrong_self_convention)]
|
46 |
#[must_use]
|
107 |
/// Returns new owned copy of the underlying [`Expression`].
|
108 |
#[allow(clippy::wrong_self_convention)]
|
109 |
#[inline]
|
830 |
/// Returns new owned copy of the underlying expression.
|
831 |
#[allow(clippy::wrong_self_convention)]
|
832 |
#[inline]
|
51 |
/// Sets the argument as a reference.
|
52 |
#[allow(clippy::wrong_self_convention)]
|
53 |
pub fn as_ref(mut self) -> Self {
|
54 |
/// ```
|
55 |
#[allow(clippy::wrong_self_convention)]
|
56 |
pub fn from_pairs<NV>(parent: Environment, names_and_values: NV) -> Self
|
21 |
pub trait Primality: Sized {
|
22 |
#[allow(clippy::wrong_self_convention)]
|
23 |
/// Check primality with absolute certainty
|
160 |
/// ```
|
161 |
#[allow(clippy::wrong_self_convention)]
|
162 |
fn from_value<T: Deserialize<'lua>>(&'lua self, value: Value<'lua>) -> Result<T>;
|
192 |
/// ```
|
193 |
#[allow(clippy::wrong_self_convention)]
|
194 |
fn from_value_with<T: Deserialize<'lua>>(
|
177 |
/// ```
|
178 |
#[allow(clippy::wrong_self_convention)]
|
179 |
pub fn into_device(mut b: DeviceBox<T>) -> DevicePointer<T> {
|
157 |
/// ```
|
158 |
#[allow(clippy::wrong_self_convention)]
|
159 |
pub fn into_unified(mut b: UnifiedBox<T>) -> UnifiedPointer<T> {
|
37 |
{
|
38 |
#[allow(clippy::wrong_self_convention)]
|
39 |
fn into_bytes(&self) -> Vec<u8>;
|
102 |
#[inline]
|
103 |
#[allow(clippy::wrong_self_convention)]
|
104 |
fn from_little_endian(v: i8) -> Self {
|
191 |
#[inline]
|
192 |
#[allow(clippy::wrong_self_convention)]
|
193 |
fn from_little_endian(v: u8) -> Self {
|
102 |
#[inline]
|
103 |
#[allow(clippy::wrong_self_convention)]
|
104 |
fn from_little_endian(v: i8) -> Self {
|
191 |
#[inline]
|
192 |
#[allow(clippy::wrong_self_convention)]
|
193 |
fn from_little_endian(v: u8) -> Self {
|
100 |
#[inline]
|
101 |
#[allow(clippy::wrong_self_convention)]
|
102 |
fn from_little_endian(self) -> Self {
|
187 |
#[inline]
|
188 |
#[allow(clippy::wrong_self_convention)]
|
189 |
fn from_little_endian(self) -> Self {
|
100 |
#[inline]
|
101 |
#[allow(clippy::wrong_self_convention)]
|
102 |
fn from_little_endian(self) -> Self {
|
95 |
#[inline]
|
96 |
#[allow(clippy::wrong_self_convention)]
|
97 |
fn from_little_endian(self) -> Self {
|
296 |
#[inline]
|
297 |
#[allow(clippy::wrong_self_convention)]
|
298 |
fn from_little_endian(self) -> Self {
|
391 |
#[inline]
|
392 |
#[allow(clippy::wrong_self_convention)]
|
393 |
fn from_little_endian(self) -> Self {
|
486 |
#[inline]
|
487 |
#[allow(clippy::wrong_self_convention)]
|
488 |
fn from_little_endian(self) -> Self {
|
677 |
#[inline]
|
678 |
#[allow(clippy::wrong_self_convention)]
|
679 |
fn from_little_endian(self) -> Self {
|
868 |
#[inline]
|
869 |
#[allow(clippy::wrong_self_convention)]
|
870 |
fn from_little_endian(self) -> Self {
|
83 |
#[inline]
|
84 |
#[allow(clippy::wrong_self_convention)]
|
85 |
fn from_little_endian(self) -> Self {
|
142 |
#[inline]
|
143 |
#[allow(clippy::wrong_self_convention)]
|
144 |
fn from_little_endian(v: u8) -> Self {
|
279 |
#[inline]
|
280 |
#[allow(clippy::wrong_self_convention)]
|
281 |
fn from_little_endian(v: u8) -> Self {
|
58 |
#[allow(clippy::wrong_self_convention)]
|
59 |
pub fn from_degree(&self) -> f32 {
|
380 |
/// Allows for potentially unsafe casts between incompatible widget types
|
381 |
#[allow(clippy::wrong_self_convention)]
|
382 |
unsafe fn into_widget<W: WidgetBase>(&self) -> W
|
680 |
/// vtable differences mean certain methods can't be overridden (e.g. handle & draw)
|
681 |
#[allow(clippy::wrong_self_convention)]
|
682 |
unsafe fn into_group(&self) -> crate::group::Group;
|
26 |
impl OutputFormat {
|
27 |
#[allow(clippy::wrong_self_convention)]
|
28 |
pub fn as_output(self) -> OutputType {
|
84 |
/// as sc configuration, 2nd part of tls configuration(proxy addr, tls config)
|
85 |
#[allow(clippy::wrong_self_convention)]
|
86 |
fn as_sc_config(self) -> Result<(Config, Option<(String, TlsConfig)>), IoError> {
|
15 |
pub trait ScConfigBuilder {
|
16 |
#[allow(clippy::wrong_self_convention)]
|
17 |
fn to_sc_config(self) -> Result<ScConfig, IoError>;
|
41 |
#[allow(clippy::wrong_self_convention)]
|
42 |
pub fn as_result(self) -> Result<(), ApiError> {
|
43 |
/// convert to shared sink
|
44 |
#[allow(clippy::wrong_self_convention)]
|
45 |
pub fn as_shared(self) -> ExclusiveFlvSink {
|
79 |
#[allow(clippy::wrong_self_convention)]
|
80 |
fn as_spu_config(self) -> Result<(SpuConfig, Option<String>), IoError> {
|
38 |
/// convert to be endian
|
39 |
#[allow(clippy::wrong_self_convention)]
|
40 |
fn to_be(self) -> Self;
|
301 |
/// convert to immutable segment
|
302 |
#[allow(clippy::wrong_self_convention)]
|
303 |
pub async fn as_segment(self) -> Result<ReadSegment, StorageError> {
|
172 |
// TODO: fix later
|
173 |
#[allow(clippy::wrong_self_convention)]
|
174 |
pub fn to_vec(self) -> Vec<T> {
|
1576 |
#[allow(clippy::wrong_self_convention)]
|
1577 |
fn to_val(&mut self, exp: PrimExpr<'b>, current_open: NodeIx) -> Result<PrimVal<'b>> {
|
529 |
#[allow(clippy::wrong_self_convention)]
|
530 |
fn to_interp<LR: runtime::LineReader>(
|
550 |
// At initialization time, we generate Either<LL, HL>, this function lowers the HL into LL.
|
551 |
#[allow(clippy::wrong_self_convention)]
|
552 |
fn to_bytecode(&mut self) -> Result<Vec<Vec<LL<'a>>>> {
|
530 |
/// participants in turn.
|
531 |
#[allow(clippy::wrong_self_convention)]
|
532 |
pub fn to_round_two(
|
53 |
/// Convert the handle to a raw pointer without consuming the handle
|
54 |
#[allow(clippy::wrong_self_convention)]
|
55 |
fn as_raw(handle: &Self::Handle) -> NonNull<Self::Target>;
|
209 |
#[allow(clippy::wrong_self_convention)]
|
210 |
pub(crate) fn is_busy(&mut self) -> bool {
|
74 |
impl GetMetadataError {
|
75 |
#[allow(clippy::wrong_self_convention)]
|
76 |
pub fn to_io_error(self) -> io::Error {
|
70 |
impl<Fut, T> State<Fut, T> {
|
71 |
#[allow(clippy::wrong_self_convention)]
|
72 |
fn as_pin_mut(self: Pin<&mut Self>) -> State<Pin<&mut Fut>, Pin<&mut T>> {
|
325 |
#[allow(clippy::wrong_self_convention)]
|
326 |
/// Deserialize the bytes into the value.
|
29 |
impl KamtFactory {
|
30 |
#[allow(clippy::wrong_self_convention, clippy::new_ret_no_self)]
|
31 |
fn new<BS, K, V>(&self, store: BS) -> HKamt<BS, V, K>
|
99 |
#[inline]
|
100 |
#[allow(clippy::wrong_self_convention)]
|
101 |
fn from_little_endian(self) -> Self {
|
182 |
#[inline]
|
183 |
#[allow(clippy::wrong_self_convention)]
|
184 |
fn from_little_endian(self) -> Self {
|
269 |
#[inline]
|
270 |
#[allow(clippy::wrong_self_convention)]
|
271 |
fn from_little_endian(self) -> Self {
|
356 |
#[inline]
|
357 |
#[allow(clippy::wrong_self_convention)]
|
358 |
fn from_little_endian(self) -> Self {
|
79 |
#[inline]
|
80 |
#[allow(clippy::wrong_self_convention)]
|
81 |
fn from_little_endian(self) -> Self {
|
343 |
#[allow(clippy::wrong_self_convention)]
|
344 |
fn is_empty(&mut self) -> bool {
|
80 |
/// Construct an HTTP response for this challenge registration.
|
81 |
#[allow(clippy::wrong_self_convention)]
|
82 |
fn to_http_response(&mut self) -> Response<Body> {
|
107 |
impl BreakpointKind for usize {
|
108 |
#[allow(clippy::wrong_self_convention)]
|
109 |
fn from_usize(kind: usize) -> Option<Self> {
|
5 |
/// big-endian (network) byte order into the provided buffer.
|
6 |
#[allow(clippy::wrong_self_convention)]
|
7 |
fn to_be_bytes(self, buf: &mut [u8]) -> Option<usize>;
|
5 |
/// little-endian byte order into the provided buffer.
|
6 |
#[allow(clippy::wrong_self_convention)]
|
7 |
fn to_le_bytes(self, buf: &mut [u8]) -> Option<usize>;
|
88 |
/// to override this method with a more direct query.
|
89 |
#[allow(clippy::wrong_self_convention)] // requires breaking change to fix
|
90 |
fn is_thread_alive(&mut self, tid: Tid) -> Result<bool, Self::Error> {
|
54 |
#[allow(clippy::wrong_self_convention)]
|
55 |
#[allow(clippy::upper_case_acronyms)]
|
56 |
trait IsEqualApprox {
|
57 |
#[allow(clippy::wrong_self_convention)]
|
58 |
fn is_equal_approx(self, to: Self) -> bool;
|
313 |
#[doc(hidden)]
|
314 |
#[allow(clippy::wrong_self_convention)]
|
315 |
#[inline]
|
378 |
#[doc(hidden)]
|
379 |
#[allow(clippy::wrong_self_convention)]
|
380 |
#[inline]
|
590 |
fn primary_index(index: Self::Index) -> u64;
|
591 |
#[allow(clippy::wrong_self_convention)]
|
592 |
fn as_index(slot: Slot) -> Self::Index;
|
641 |
#[allow(clippy::wrong_self_convention)]
|
642 |
fn as_index(slot: Slot) -> u64 {
|
677 |
#[allow(clippy::wrong_self_convention)]
|
678 |
fn as_index(index: u64) -> Self::Index {
|
718 |
#[allow(clippy::wrong_self_convention)]
|
719 |
fn as_index(index: u64) -> Self::Index {
|
749 |
#[allow(clippy::wrong_self_convention)]
|
750 |
fn as_index(_index: u64) -> Self::Index {
|
128 |
/// Projects a pinned `Gen` as its wrapped generator.
|
129 |
#[allow(clippy::wrong_self_convention)] // Clippy doesn't understand Pin.
|
130 |
#[must_use]
|
23 |
type Output;
|
24 |
#[allow(clippy::wrong_self_convention)]
|
25 |
fn as_ref(self) -> Self::Output;
|
104 |
#[allow(clippy::wrong_self_convention)]
|
105 |
#[allow(clippy::new_ret_no_self)]
|
20 |
pub trait ParamValue<'a> {
|
21 |
#[allow(clippy::wrong_self_convention)]
|
22 |
/// The parameter value as a string.
|
451 |
/// The pointer in the `Stash` is only valid for the lifetime of the `Stash`.
|
452 |
#[allow(clippy::wrong_self_convention)]
|
453 |
fn to_glib_none_mut(&'a mut self) -> StashMut<P, Self>;
|
577 |
/// Transfer: full.
|
578 |
#[allow(clippy::wrong_self_convention)]
|
579 |
unsafe fn into_glib_ptr(self) -> P;
|
792 |
#[allow(clippy::wrong_self_convention)]
|
793 |
fn to_glib_none_from_slice(t: &'a [Self]) -> (P, Self::Storage);
|
794 |
#[allow(clippy::wrong_self_convention)]
|
795 |
fn to_glib_container_from_slice(t: &'a [Self]) -> (P, Self::Storage);
|
796 |
#[allow(clippy::wrong_self_convention)]
|
797 |
fn to_glib_full_from_slice(t: &[Self]) -> P;
|
385 |
/// Convert an `Option` to a `Value`.
|
386 |
#[allow(clippy::wrong_self_convention)]
|
387 |
fn to_value_optional(s: Option<&Self>) -> Value;
|
79 |
#[cfg_attr(docsrs, doc(cfg(feature = "serde")))]
|
80 |
#[allow(clippy::wrong_self_convention)]
|
81 |
fn into_serde<T>(&self) -> serde_json::Result<T>
|
34 |
impl<'a> SectionText<'a> {
|
35 |
#[allow(clippy::wrong_self_convention)] // won't fix for backward compatibility
|
36 |
#[inline]
|
76 |
impl DepthTestFunction {
|
77 |
#[allow(clippy::wrong_self_convention)] // TODO maybe this should be addressed properly.
|
78 |
pub(crate) fn to_gl(self) -> u32 {
|
1580 |
#[cfg_attr(feature = "inline-more", inline)]
|
1581 |
#[allow(clippy::wrong_self_convention)]
|
1582 |
pub fn from_key<Q: ?Sized>(self, k: &Q) -> RawEntryMut<'a, K, V, S>
|
1593 |
#[inline]
|
1594 |
#[allow(clippy::wrong_self_convention)]
|
1595 |
pub fn from_key_hashed_nocheck<Q: ?Sized>(self, hash: u64, k: &Q) -> RawEntryMut<'a, K, V, S>
|
1606 |
#[cfg_attr(feature = "inline-more", inline)]
|
1607 |
#[allow(clippy::wrong_self_convention)]
|
1608 |
pub fn from_hash<F>(self, hash: u64, is_match: F) -> RawEntryMut<'a, K, V, S>
|
1636 |
#[cfg_attr(feature = "inline-more", inline)]
|
1637 |
#[allow(clippy::wrong_self_convention)]
|
1638 |
pub fn from_key<Q: ?Sized>(self, k: &Q) -> Option<(&'a K, &'a V)>
|
1649 |
#[cfg_attr(feature = "inline-more", inline)]
|
1650 |
#[allow(clippy::wrong_self_convention)]
|
1651 |
pub fn from_key_hashed_nocheck<Q: ?Sized>(self, hash: u64, k: &Q) -> Option<(&'a K, &'a V)>
|
17 |
mod impls;
|
18 |
#[allow(clippy::wrong_self_convention)]
|
19 |
pub mod traits;
|
4 |
mod expression;
|
5 |
#[allow(clippy::wrong_self_convention)]
|
6 |
pub mod http;
|
505 |
/// ```
|
506 |
#[allow(clippy::wrong_self_convention)] // E is not Copy so we consume self.
|
507 |
pub fn is_sighash_single_bug(self) -> Result<bool, E> {
|
443 |
#[allow(clippy::wrong_self_convention)]
|
444 |
fn to_raw(&mut self) -> *mut sys::gsl_multifit_function_fdf {
|
108 |
/// Returns `sys::gsl_odeiv2_system` structure.
|
109 |
#[allow(clippy::wrong_self_convention)]
|
110 |
fn to_raw(&mut self) -> sys::gsl_odeiv2_system {
|
377 |
#[allow(clippy::wrong_self_convention)]
|
378 |
pub fn is_focus(mut self, is_focus: bool) -> Self {
|
4 |
#![allow(clippy::upper_case_acronyms)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![doc = include_str!("../README.md")]
|
57 |
#[allow(clippy::many_single_char_names)]
|
58 |
#[allow(clippy::wrong_self_convention)]
|
59 |
#[allow(clippy::clone_on_copy)]
|
369 |
#[allow(clippy::wrong_self_convention)]
|
370 |
pub fn is_focus(mut self, is_focus: bool) -> Self {
|
6 |
#![allow(clippy::too_many_arguments)]
|
7 |
#![allow(clippy::wrong_self_convention)]
|
8 |
#![allow(deprecated)]
|
95 |
#[allow(clippy::let_and_return)]
|
96 |
#[allow(clippy::wrong_self_convention)]
|
97 |
#[allow(clippy::clone_on_copy)]
|
102 |
// a huge deal and not something we can change now.
|
103 |
#[allow(clippy::wrong_self_convention)]
|
104 |
pub fn to_normal_id(&self) -> Option<u8> {
|
401 |
/// assert_eq!(&*v, "An example string");
|
402 |
#[allow(clippy::wrong_self_convention)]
|
403 |
#[cfg(feature = "alloc")]
|
195 |
#[inline]
|
196 |
#[allow(clippy::wrong_self_convention)]
|
197 |
pub fn from_key<Q>(self, k: &Q) -> RawEntryMut<'map, K, V, S>
|
209 |
#[inline]
|
210 |
#[allow(clippy::wrong_self_convention)]
|
211 |
pub fn from_key_hashed_nocheck<Q>(self, hash: u64, k: &Q) -> RawEntryMut<'map, K, V, S>
|
228 |
#[inline]
|
229 |
#[allow(clippy::wrong_self_convention)]
|
230 |
pub fn from_hash<F>(self, hash: u64, is_match: F) -> RawEntryMut<'map, K, V, S>
|
246 |
#[inline]
|
247 |
#[allow(clippy::wrong_self_convention)]
|
248 |
pub fn from_key<Q>(self, k: &Q) -> Option<(&'map K, &'map V)>
|
260 |
#[inline]
|
261 |
#[allow(clippy::wrong_self_convention)]
|
262 |
pub fn from_key_hashed_nocheck<Q>(self, hash: u64, k: &Q) -> Option<(&'map K, &'map V)>
|
77 |
#[inline]
|
78 |
#[allow(clippy::wrong_self_convention)]
|
79 |
pub fn from_key<Q>(self, k: &Q) -> RawEntryMut<'map, K, V, S>
|
88 |
#[inline]
|
89 |
#[allow(clippy::wrong_self_convention)]
|
90 |
pub fn from_key_hashed_nocheck<Q>(self, hash: u64, k: &Q) -> RawEntryMut<'map, K, V, S>
|
103 |
#[inline]
|
104 |
#[allow(clippy::wrong_self_convention)]
|
105 |
pub fn from_hash<F>(self, _hash: u64, is_match: F) -> RawEntryMut<'a, K, V, S>
|
128 |
#[inline]
|
129 |
#[allow(clippy::wrong_self_convention)]
|
130 |
pub fn from_key<Q>(self, k: &Q) -> Option<(&'a K, &'a V)>
|
140 |
#[inline]
|
141 |
#[allow(clippy::wrong_self_convention)]
|
142 |
pub fn from_key_hashed_nocheck<Q>(self, hash: u64, k: &Q) -> Option<(&'a K, &'a V)>
|
467 |
/// implicit conversions in many functions.
|
468 |
#[allow(clippy::wrong_self_convention)] //< backward compatibility is more important than clippy
|
469 |
pub fn to_shared(self) -> Shared<T> {
|
215 |
/// ```
|
216 |
#[allow(clippy::wrong_self_convention)]
|
217 |
#[must_use]
|
3211 |
#[cfg_attr(feature = "inline-more", inline)]
|
3212 |
#[allow(clippy::wrong_self_convention)]
|
3213 |
pub fn from_key<Q: ?Sized>(self, k: &Q) -> RawEntryMut<'a, K, V, S, A>
|
3244 |
#[inline]
|
3245 |
#[allow(clippy::wrong_self_convention)]
|
3246 |
pub fn from_key_hashed_nocheck<Q: ?Sized>(self, hash: u64, k: &Q) -> RawEntryMut<'a, K, V, S, A>
|
3277 |
#[cfg_attr(feature = "inline-more", inline)]
|
3278 |
#[allow(clippy::wrong_self_convention)]
|
3279 |
pub fn from_hash<F>(self, hash: u64, is_match: F) -> RawEntryMut<'a, K, V, S, A>
|
3317 |
#[cfg_attr(feature = "inline-more", inline)]
|
3318 |
#[allow(clippy::wrong_self_convention)]
|
3319 |
pub fn from_key<Q: ?Sized>(self, k: &Q) -> Option<(&'a K, &'a V)>
|
3348 |
#[cfg_attr(feature = "inline-more", inline)]
|
3349 |
#[allow(clippy::wrong_self_convention)]
|
3350 |
pub fn from_key_hashed_nocheck<Q: ?Sized>(self, hash: u64, k: &Q) -> Option<(&'a K, &'a V)>
|
1486 |
#[cfg_attr(feature = "inline-more", inline)]
|
1487 |
#[allow(clippy::wrong_self_convention)]
|
1488 |
pub fn from_key<Q: ?Sized>(self, k: &Q) -> RawEntryMut<'a, K, V, S>
|
1500 |
#[inline]
|
1501 |
#[allow(clippy::wrong_self_convention)]
|
1502 |
pub fn from_key_hashed_nocheck<Q: ?Sized>(self, hash: u64, k: &Q) -> RawEntryMut<'a, K, V, S>
|
1513 |
#[cfg_attr(feature = "inline-more", inline)]
|
1514 |
#[allow(clippy::wrong_self_convention)]
|
1515 |
pub fn from_hash<F>(self, hash: u64, is_match: F) -> RawEntryMut<'a, K, V, S>
|
1542 |
#[cfg_attr(feature = "inline-more", inline)]
|
1543 |
#[allow(clippy::wrong_self_convention)]
|
1544 |
pub fn from_key<Q: ?Sized>(self, k: &Q) -> Option<(&'a K, &'a V)>
|
1556 |
#[cfg_attr(feature = "inline-more", inline)]
|
1557 |
#[allow(clippy::wrong_self_convention)]
|
1558 |
pub fn from_key_hashed_nocheck<Q: ?Sized>(self, hash: u64, k: &Q) -> Option<(&'a K, &'a V)>
|
256 |
/// Whether or not the parser is a regex
|
257 |
#[allow(clippy::wrong_self_convention)]
|
258 |
pub fn is_regex_parser(mut self, is_regex: bool) -> Self {
|
47 |
#[allow(clippy::wrong_self_convention)]
|
48 |
fn to_f64(&self) -> f64 {
|
256 |
/// Create a new [`Actor`](Actor).
|
257 |
#[allow(clippy::wrong_self_convention)]
|
258 |
fn new(
|
204 |
/// Returns `bufs` as [`socket2::MaybeUninitSlice`].
|
205 |
#[allow(clippy::wrong_self_convention)]
|
206 |
pub(crate) fn as_socket2<'b>(
|
220 |
/// Reading from the returned slice is UB.
|
221 |
#[allow(clippy::wrong_self_convention)]
|
222 |
pub(crate) unsafe fn as_io<'b>(
|
61 |
pub trait AsPrimitive<T> {
|
62 |
#[allow(clippy::wrong_self_convention)]
|
63 |
fn as_primitive(self) -> T;
|
3 |
#[allow(clippy::wrong_self_convention)]
|
4 |
pub trait IterExt<T>: Iterator<Item = T> {
|
7 |
impl<T, I: Iterator<Item = T>> IterExt<T> for I {
|
8 |
#[allow(clippy::wrong_self_convention)]
|
9 |
fn to_vec(self) -> Vec<T> {
|
1682 |
/// in that century.
|
1683 |
#[allow(clippy::wrong_self_convention)]
|
1684 |
fn to_nanoseconds_in_time_scale(&self, time_scale: TimeScale) -> Result<u64, Errors> {
|
1994 |
#[allow(clippy::wrong_self_convention)]
|
1995 |
#[must_use]
|
142 |
/// you need this to move values into the worker thread from a different thread (JSValueAdapter cannot leave the worker thread)
|
143 |
#[allow(clippy::wrong_self_convention)]
|
144 |
fn from_js_value_facade(
|
250 |
/// Build a regular expression string for this link match.
|
251 |
#[allow(clippy::wrong_self_convention)]
|
252 |
pub fn to_regex_string(self) -> Result<String, String> {
|
132 |
/// Decoding is lossy, like `String::from_utf8_lossy`.
|
133 |
#[allow(clippy::wrong_self_convention)]
|
134 |
pub fn from_utf8(self) -> Utf8LossyDecoder<Self> {
|
389 |
// FIXME: Consider renaming this
|
390 |
#[allow(clippy::wrong_self_convention)]
|
391 |
fn to_html(&mut self) -> String {
|
63 |
impl Pixel for f64 {
|
64 |
#[allow(clippy::wrong_self_convention)]
|
65 |
fn from_f64(f: f64) -> Self {
|
17 |
#[allow(clippy::wrong_self_convention)]
|
18 |
fn to_any(self) -> Any {
|
74 |
/// This method is only available in local development instances, and will be removed in the future.
|
75 |
#[allow(clippy::wrong_self_convention)]
|
76 |
pub fn as_provisional_create_with_amount(self, amount: Option<u128>) -> Self {
|
144 |
#[allow(clippy::wrong_self_convention)]
|
145 |
/// Converts the components::Bag into a Vec<Field>. The fields will be ordered in from most
|
244 |
#[allow(clippy::wrong_self_convention)]
|
245 |
pub fn from_into(&self) -> bool {
|
476 |
/// http://www.unicode.org/reports/tr46/#ToASCII
|
477 |
#[allow(clippy::wrong_self_convention)]
|
478 |
pub fn to_ascii<'a>(&'a mut self, domain: &str, out: &mut String) -> Result<(), Errors> {
|
498 |
/// http://www.unicode.org/reports/tr46/#ToUnicode
|
499 |
#[allow(clippy::wrong_self_convention)]
|
500 |
pub fn to_unicode<'a>(&'a mut self, domain: &str, out: &mut String) -> Result<(), Errors> {
|
170 |
#[allow(clippy::wrong_self_convention)]
|
171 |
pub fn is_not(mut self, s: Status) -> Self {
|
113 |
#[allow(clippy::wrong_self_convention)]
|
114 |
pub fn to_rgb(&self, gamma: f64) -> RGBA {
|
34 |
/// Write a struct to a stream.
|
35 |
#[allow(clippy::wrong_self_convention)]
|
36 |
fn to_writer<W, T: Sized>(writer: W, value: &T) -> Result<()>
|
1220 |
// Internal consistency in naming deemed more important.
|
1221 |
#[allow(clippy::wrong_self_convention)]
|
1222 |
pub fn to_mut<T>(self, arr: &mut [T; N]) -> &'_ mut Slice<T, Self> {
|
97 |
#[inline]
|
98 |
#[allow(clippy::wrong_self_convention)]
|
99 |
pub fn into_vec(self: Box<Self>) -> IndexVec<I, T> {
|
130 |
/// - `Some(false)` means "no, this implementation definitely won't work"
|
131 |
#[allow(clippy::wrong_self_convention)]
|
132 |
fn is_applicable(&mut self, input: &str) -> Option<bool>;
|
114 |
/// - `Some(false)` means "no, this implementation definitely won't work"
|
115 |
#[allow(clippy::wrong_self_convention)]
|
116 |
fn is_applicable(&mut self, input: &str) -> Option<bool>;
|
19 |
/// __Constraints__: currently only supports primitive types for genericized values.
|
20 |
#[allow(clippy::wrong_self_convention)]
|
21 |
fn to_genericmap(structure: Self) -> GenericMap;
|
519 |
#[allow(clippy::wrong_self_convention)]
|
520 |
/// Build an `http::Response` from the given `Status`.
|
481 |
/// For more details visit: [`is_contract`][`crate::is_contract`]
|
482 |
#[allow(clippy::wrong_self_convention)]
|
483 |
fn is_contract<E>(&mut self, account: &E::AccountId) -> bool
|
57 |
/// Performs the conversion to a local socket name.
|
58 |
#[allow(clippy::wrong_self_convention)] // shut the fuck up
|
59 |
fn to_local_socket_name(self) -> io::Result<LocalSocketName<'a>>;
|
406 |
/// Performs the conversion from `self` to a Unix domain socket path.
|
407 |
#[allow(clippy::wrong_self_convention)]
|
408 |
fn to_socket_path(self) -> io::Result<UdSocketPath<'a>>;
|
102 |
/// TODO: Rename this `reencode`
|
103 |
#[allow(clippy::wrong_self_convention)]
|
104 |
fn into_encoding<T: RawEncodingBuf>(this: TritBuf<Self>) -> TritBuf<T>
|
112 |
/// Encodes this address to a bech32 string with the given Human Readable Part as prefix.
|
113 |
#[allow(clippy::wrong_self_convention)]
|
114 |
pub fn to_bech32<T: AsRef<str>>(&self, hrp: T) -> String {
|
49 |
/// }
|
50 |
#[allow(clippy::wrong_self_convention)]
|
51 |
fn is_romance_vowel(self) -> bool;
|
63 |
/// }
|
64 |
#[allow(clippy::wrong_self_convention)]
|
65 |
fn is_romance_vowel_including(self, extra_vowels: &HashSet<char>) -> bool;
|
192 |
// false positive lint
|
193 |
#[allow(clippy::wrong_self_convention)]
|
194 |
#[inline]
|
200 |
// false positive lint
|
201 |
#[allow(clippy::wrong_self_convention)]
|
202 |
#[inline]
|
23 |
#[allow(dead_code)]
|
24 |
#[allow(clippy::wrong_self_convention)]
|
25 |
pub fn into_owned(&self) -> JsonEvent<'static> {
|
176 |
impl Inner {
|
177 |
#[allow(clippy::wrong_self_convention)]
|
178 |
pub(crate) fn into_raw(this: Arc<Inner>) -> *const () {
|
403 |
#[allow(clippy::wrong_self_convention)]
|
404 |
fn into_raw(this: Arc<Inner>) -> *const () {
|
42 |
#[allow(clippy::wrong_self_convention)]
|
43 |
pub fn is_password(self) -> Self {
|
363 |
impl Inner {
|
364 |
#[allow(clippy::wrong_self_convention)]
|
365 |
fn into_raw(this: Arc<Inner>) -> *const () {
|
444 |
#[allow(clippy::wrong_self_convention)]
|
445 |
pub(crate) fn to_sql(e: Box<dyn error::Error>, idx: usize) -> Error {
|
159 |
impl ToPolar for NoResourceType {
|
160 |
#[allow(clippy::wrong_self_convention)]
|
161 |
fn to_polar(self) -> oso::PolarValue {
|
50 |
#[must_use]
|
51 |
#[allow(clippy::wrong_self_convention)]
|
52 |
pub fn to_owned<B: crate::backend::HeapStr>(&self) -> KStringBase<B> {
|
72 |
#[inline]
|
73 |
#[allow(clippy::wrong_self_convention)]
|
74 |
fn to_owned<B: crate::backend::HeapStr>(&self) -> KStringBase<B> {
|
223 |
impl Model {
|
224 |
#[allow(clippy::wrong_self_convention)]
|
225 |
pub fn is_transparent(mut self, is_transparent: bool) -> Self {
|
167 |
/// Checks if the server is connected using the NOOP SMTP command
|
168 |
#[cfg_attr(feature = "cargo-clippy", allow(wrong_self_convention))]
|
169 |
pub fn is_connected(&mut self) -> bool {
|
52 |
/// modify the next returned value.
|
53 |
#[allow(clippy::wrong_self_convention)]
|
54 |
fn is_consumed(&mut self) -> bool;
|
57 |
{
|
58 |
#[allow(clippy::wrong_self_convention)]
|
59 |
fn is_interesting<EM, OT>(
|
125 |
{
|
126 |
#[allow(clippy::wrong_self_convention)]
|
127 |
fn is_interesting<EM, OT>(
|
440 |
{
|
441 |
#[allow(clippy::wrong_self_convention)]
|
442 |
#[allow(clippy::needless_range_loop)]
|
661 |
#[allow(clippy::wrong_self_convention)]
|
662 |
#[allow(clippy::needless_range_loop)]
|
768 |
{
|
769 |
#[allow(clippy::wrong_self_convention)]
|
770 |
fn is_interesting<EM, OT>(
|
61 |
/// `is_interesting ` return if an input is worth the addition to the corpus
|
62 |
#[allow(clippy::wrong_self_convention)]
|
63 |
fn is_interesting<EM, OT>(
|
78 |
#[allow(clippy::too_many_arguments)]
|
79 |
#[allow(clippy::wrong_self_convention)]
|
80 |
fn is_interesting_introspection<EM, OT>(
|
193 |
#[allow(clippy::wrong_self_convention)]
|
194 |
fn is_interesting<EM, OT>(
|
217 |
#[cfg(feature = "introspection")]
|
218 |
#[allow(clippy::wrong_self_convention)]
|
219 |
fn is_interesting_introspection<EM, OT>(
|
634 |
#[allow(clippy::wrong_self_convention)]
|
635 |
fn is_interesting<EM, OT>(
|
616 |
{
|
617 |
#[allow(clippy::wrong_self_convention)]
|
618 |
fn is_interesting<EM, OT>(
|
75 |
/// ```
|
76 |
#[allow(clippy::wrong_self_convention)]
|
77 |
pub fn as_tenant(self) -> TenantContainerBuilder<'a> {
|
92 |
/// ```
|
93 |
#[allow(clippy::wrong_self_convention)]
|
94 |
pub fn as_init<P: Into<PathBuf>>(self, bundle: P) -> InitContainerBuilder<'a> {
|
215 |
/// Check if token is assigned
|
216 |
#[allow(clippy::wrong_self_convention)]
|
217 |
pub fn is_assigned(&mut self, token: c_uint, keyslot: c_uint) -> Result<bool, LibcryptErr> {
|
330 |
/// Will panic if called after calling next.
|
331 |
#[allow(clippy::wrong_self_convention)]
|
332 |
pub fn from_theme(mut self, theme_name: impl AsRef<str>) -> Self {
|
53 |
/// Convert the handle to a raw pointer without consuming the handle
|
54 |
#[allow(clippy::wrong_self_convention)]
|
55 |
fn as_raw(handle: &Self::Handle) -> NonNull<Self::Target>;
|
758 |
#[allow(clippy::wrong_self_convention)]
|
759 |
pub fn to_year(input: BufferRef<i64>, output: BufferRef<i64>) -> BoxedOperator<'a> {
|
863 |
/// subscription.
|
864 |
#[allow(clippy::wrong_self_convention)]
|
865 |
pub fn from_pattern(&self) -> bool {
|
464 |
#[allow(clippy::wrong_self_convention)]
|
465 |
pub(crate) fn to_sql(e: Box<dyn error::Error + Sync + Send>, idx: usize) -> Error {
|
24 |
fn arity() -> i8;
|
25 |
#[allow(clippy::wrong_self_convention)]
|
26 |
fn as_ptr(self) -> *mut c_void;
|
735 |
/// ```
|
736 |
#[allow(clippy::wrong_self_convention)]
|
737 |
pub unsafe fn to_string_lossy(&self) -> Cow<'_, str> {
|
729 |
/// ```
|
730 |
#[allow(clippy::wrong_self_convention)]
|
731 |
pub unsafe fn to_s(&self) -> Result<Cow<str>, Error> {
|
750 |
/// ensure this does not happen.
|
751 |
#[allow(clippy::wrong_self_convention)]
|
752 |
pub(crate) unsafe fn to_s_infallible(&self) -> Cow<str> {
|
179 |
#[allow(clippy::wrong_self_convention)]
|
180 |
fn from_sci_mantissa_and_exponent_primitive_float<T: PrimitiveFloat>(
|
302 |
pub trait IsInteger {
|
303 |
#[allow(clippy::wrong_self_convention)]
|
304 |
fn is_integer(self) -> bool;
|
248 |
impl RequestContent<'_> {
|
249 |
#[allow(clippy::wrong_self_convention)]
|
250 |
pub fn from_device(&self) -> &DeviceId {
|
271 |
impl ReadyContent<'_> {
|
272 |
#[allow(clippy::wrong_self_convention)]
|
273 |
pub fn from_device(&self) -> &DeviceId {
|
400 |
impl<'a> StartContent<'a> {
|
401 |
#[allow(clippy::wrong_self_convention)]
|
402 |
pub fn from_device(&self) -> &DeviceId {
|
784 |
#[inline]
|
785 |
#[allow(clippy::wrong_self_convention)]
|
786 |
fn to_bytes(&mut self) -> crate::bytes::Bytes {
|
1040 |
/// subscription.
|
1041 |
#[allow(clippy::wrong_self_convention)]
|
1042 |
pub fn from_pattern(&self) -> bool {
|
42 |
/// Returns whether the oscillator is running.
|
43 |
#[allow(clippy::wrong_self_convention)]
|
44 |
pub fn is_oscillator_running(&mut self) -> Result<bool, Error<E>> {
|
269 |
#[allow(clippy::wrong_self_convention)]
|
270 |
pub(super) fn from_reflect_with(&self, key: &T) -> Option<&Ident> {
|
1021 |
impl<'a> NamedField<'a> {
|
1022 |
#[allow(clippy::wrong_self_convention)]
|
1023 |
fn from_reflect_with(&self) -> Option<&Ident> {
|
1034 |
impl<'a> UnnamedField<'a> {
|
1035 |
#[allow(clippy::wrong_self_convention)]
|
1036 |
fn from_reflect_with(&self) -> Option<&Ident> {
|
133 |
#[allow(clippy::wrong_self_convention)]
|
134 |
pub fn from_node(&self) -> NodeId {
|
160 |
/// ```
|
161 |
#[allow(clippy::wrong_self_convention)]
|
162 |
fn from_value<T: Deserialize<'lua>>(&'lua self, value: Value<'lua>) -> Result<T>;
|
192 |
/// ```
|
193 |
#[allow(clippy::wrong_self_convention)]
|
194 |
fn from_value_with<T: Deserialize<'lua>>(
|
16 |
fn new_builder() -> Self::Builder;
|
17 |
#[allow(clippy::wrong_self_convention)]
|
18 |
fn as_builder(self) -> Self::Builder;
|
354 |
/// `SerializedBytes` に変換する。
|
355 |
#[allow(clippy::wrong_self_convention)]
|
356 |
fn to_bytes(&mut self) -> SerializedBytes {
|
78 |
impl AddressMeta {
|
79 |
#[allow(clippy::wrong_self_convention)]
|
80 |
fn to_byte(&self) -> u8 {
|
54 |
/// Convert the handle to a raw pointer without consuming the handle
|
55 |
#[allow(clippy::wrong_self_convention)]
|
56 |
fn as_raw(handle: &Self::Handle) -> NonNull<Self::Target>;
|
54 |
// Remove when https://github.com/rust-lang/rust-clippy/issues/6727 is resolved
|
55 |
#[allow(clippy::wrong_self_convention)]
|
56 |
fn to_u64(self) -> u64;
|
257 |
// prefix to refer to route connectivity, not type conversion.
|
258 |
#[allow(clippy::wrong_self_convention)]
|
259 |
pub fn to_tile_face(mut self, face: HexFace) -> Result<Self> {
|
275 |
// prefix to refer to route connectivity, not type conversion.
|
276 |
#[allow(clippy::wrong_self_convention)]
|
277 |
pub fn to_edge(self, face: HexFace) -> Result<Self> {
|
289 |
// prefix to refer to route connectivity, not type conversion.
|
290 |
#[allow(clippy::wrong_self_convention)]
|
291 |
pub fn to_city(mut self, ix: usize, stop: bool) -> Result<Self> {
|
317 |
// prefix to refer to route connectivity, not type conversion.
|
318 |
#[allow(clippy::wrong_self_convention)]
|
319 |
pub fn to_dit(mut self, ix: usize, stop: bool) -> Result<Self> {
|
1357 |
#[cfg(feature = "serde-json")]
|
1358 |
#[allow(clippy::wrong_self_convention)]
|
1359 |
pub fn to_js_value<T>(&self, node: &T) -> Result<JsUnknown>
|
133 |
impl SegmentSize {
|
134 |
#[allow(clippy::wrong_self_convention)]
|
135 |
fn len() -> usize {
|
107 |
#[doc(hidden)]
|
108 |
#[allow(clippy::wrong_self_convention)]
|
109 |
fn into_owned<D>(self_: ArrayBase<Self, D>) -> Array<Self::Elem, D>
|
125 |
#[doc(hidden)]
|
126 |
#[allow(clippy::wrong_self_convention)]
|
127 |
fn to_shared<D>(self_: &ArrayBase<Self, D>) -> ArcArray<Self::Elem, D>
|
164 |
#[inline]
|
165 |
#[allow(clippy::wrong_self_convention)] // mut needed for Arc types
|
166 |
fn is_unique(&mut self) -> bool {
|
312 |
#[allow(clippy::wrong_self_convention)]
|
313 |
fn to_shared<D>(self_: &ArrayBase<Self, D>) -> ArcArray<Self::Elem, D>
|
432 |
/// ```
|
433 |
#[allow(clippy::wrong_self_convention)]
|
434 |
pub fn as_return(self) -> Self {
|
362 |
/// Check whether this byte describes a type of the given major type tag.
|
363 |
#[allow(clippy::wrong_self_convention)]
|
364 |
fn is_major(self, major: u8) -> bool;
|
367 |
/// type tags.
|
368 |
#[allow(clippy::wrong_self_convention)]
|
369 |
fn is_major_minor(self, major: u8, minor: u8) -> bool;
|
198 |
#[allow(clippy::wrong_self_convention)]
|
199 |
fn is_trying(&mut self) -> bool {
|
47 |
impl Host {
|
48 |
#[allow(clippy::wrong_self_convention)]
|
49 |
pub fn as_string(self) -> String {
|
180 |
/// Instead, an error is returned.
|
181 |
#[allow(clippy::wrong_self_convention)]
|
182 |
pub fn to_bytes(&mut self, buffer: &mut [u8]) -> Result<usize, EncodeError> {
|
738 |
#[doc = r" If left unset defaults to the latest block."]
|
739 |
#[allow(clippy::wrong_self_convention)]
|
740 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
746 |
#[doc = r" If left unset defaults to the streaming until the end of days."]
|
747 |
#[allow(clippy::wrong_self_convention)]
|
748 |
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
795 |
#[doc = r" If left unset defaults to the latest block."]
|
796 |
#[allow(clippy::wrong_self_convention)]
|
797 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
803 |
#[doc = r" If left unset defaults to the streaming until the end of days."]
|
804 |
#[allow(clippy::wrong_self_convention)]
|
805 |
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
852 |
#[doc = r" If left unset defaults to the latest block."]
|
853 |
#[allow(clippy::wrong_self_convention)]
|
854 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
482 |
#[doc = r" If left unset defaults to the latest block."]
|
483 |
#[allow(clippy::wrong_self_convention)]
|
484 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
490 |
#[doc = r" If left unset defaults to the streaming until the end of days."]
|
491 |
#[allow(clippy::wrong_self_convention)]
|
492 |
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
975 |
#[doc = r" If left unset defaults to the latest block."]
|
976 |
#[allow(clippy::wrong_self_convention)]
|
977 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
983 |
#[doc = r" If left unset defaults to the streaming until the end of days."]
|
984 |
#[allow(clippy::wrong_self_convention)]
|
985 |
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
1056 |
#[doc = r" If left unset defaults to the latest block."]
|
1057 |
#[allow(clippy::wrong_self_convention)]
|
1058 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
67 |
impl VideoProfile {
|
68 |
#[allow(clippy::wrong_self_convention)]
|
69 |
pub fn to_params(&self) -> (Vec<&str>, &str) {
|
205 |
impl AudioProfile {
|
206 |
#[allow(clippy::wrong_self_convention)]
|
207 |
pub fn to_params(&self) -> (Vec<&str>, &str) {
|
7 |
#[allow(clippy::wrong_self_convention, clippy::upper_case_acronyms)]
|
8 |
pub trait IntoNodeApi<'a>: 'a {
|
12 |
#[allow(clippy::wrong_self_convention, clippy::upper_case_acronyms)]
|
13 |
pub trait FromNodeAPI<'a>: 'a + Sized {
|
178 |
#[deprecated(since = "0.2.0", note = "Renamed to `into_nonzero`")]
|
179 |
#[allow(clippy::wrong_self_convention)]
|
180 |
fn as_nonzero(self) -> Option<Self::NonZero>
|
217 |
#[deprecated(since = "0.2.0", note = "Renamed to `into_nonzero_unchecked`")]
|
218 |
#[allow(clippy::wrong_self_convention)]
|
219 |
unsafe fn as_nonzero_unchecked(self) -> Self::NonZero
|
12 |
fn stop(&mut self, sound: u64);
|
13 |
#[allow(clippy::wrong_self_convention)]
|
14 |
fn is_stopped(&mut self, sound: u64) -> bool;
|
15 |
#[allow(clippy::wrong_self_convention)]
|
16 |
fn is_paused(&mut self, sound: u64) -> bool;
|
48 |
/// Creates a Texture from an image
|
49 |
#[allow(clippy::wrong_self_convention)]
|
50 |
fn from_html_image(self, element: &web_sys::HtmlImageElement) -> Self;
|
104 |
/// Set the shaders from a bytes slice
|
105 |
#[allow(clippy::wrong_self_convention)]
|
106 |
pub fn from_raw(mut self, vertex: &'b [u8], fragment: &'b [u8]) -> Self {
|
328 |
#[allow(clippy::wrong_self_convention)]
|
329 |
fn is_stopped(&mut self, sound: u64) -> bool {
|
336 |
#[allow(clippy::wrong_self_convention)]
|
337 |
fn is_paused(&mut self, sound: u64) -> bool {
|
316 |
#[doc(hidden)]
|
317 |
#[allow(clippy::wrong_self_convention)]
|
318 |
fn to_ptr(self) -> *const core::ffi::c_void;
|
323 |
#[allow(clippy::wrong_self_convention)]
|
324 |
impl TestRequest {
|
784 |
#[inline]
|
785 |
#[allow(clippy::wrong_self_convention)]
|
786 |
fn to_bytes(&mut self) -> crate::Bytes {
|
228 |
#[allow(clippy::wrong_self_convention)]
|
229 |
fn from_unit<'py>(&'py self, py: Python<'py>, unit: NPY_DATETIMEUNIT) -> &'py PyArrayDescr {
|
27 |
#[allow(clippy::wrong_self_convention)]
|
28 |
pub(crate) fn is_leaf(mut self, value: bool) -> Self {
|
1330 |
impl RafsV6Blob {
|
1331 |
#[allow(clippy::wrong_self_convention)]
|
1332 |
fn to_blob_info(&self) -> Result<BlobInfo> {
|
584 |
#[allow(clippy::wrong_self_convention)]
|
585 |
pub fn from_blob_table(&mut self, blob_table: Vec<Arc<BlobInfo>>) {
|
396 |
/// Split into a mutable header and byte slice.
|
397 |
#[cfg_attr(feature="cargo-clippy", allow(wrong_self_convention))]
|
398 |
fn to_header_and_slice_mut(&mut self) -> (&mut Header, &mut [u8]) {
|
28 |
#[async_trait]
|
29 |
#[allow(clippy::wrong_self_convention)]
|
30 |
pub trait IncomingAccessControl: Debug + Send + Sync + 'static {
|
58 |
#[async_trait]
|
59 |
#[allow(clippy::wrong_self_convention)]
|
60 |
pub trait OutgoingAccessControl: Debug + Send + Sync + 'static {
|
93 |
// Could be `&self` since we don't allow new references to be created, but :effort:
|
94 |
#[allow(clippy::wrong_self_convention)]
|
95 |
pub fn is_closed(&mut self) -> bool {
|
133 |
// Could be `&self` since we don't allow new references to be created, but :effort:
|
134 |
#[allow(clippy::wrong_self_convention)]
|
135 |
pub fn is_closed(&mut self) -> bool {
|
101 |
#[allow(clippy::wrong_self_convention)]
|
102 |
/// Convert a OlmMessage into a tuple of the OlmMessageType and ciphertext string.
|
94 |
/// The host as string. Consumes self.
|
95 |
#[allow(clippy::wrong_self_convention)]
|
96 |
pub fn as_string(self) -> String {
|
74 |
#[allow(clippy::wrong_self_convention)]
|
75 |
fn as_be_bytes(src: &[Self], dest: &mut [u8]);
|
54 |
trait IntoMime: Debug {
|
55 |
#[allow(clippy::wrong_self_convention)]
|
56 |
fn into_mime(&self) -> mime::Mime;
|
59 |
/// TODO: Do we want to change this method naming?
|
60 |
#[allow(clippy::wrong_self_convention)]
|
61 |
fn into_bytes(&self) -> Vec<u8>;
|
66 |
/// Returns the entry bytes encoded as a hex string.
|
67 |
#[allow(clippy::wrong_self_convention)]
|
68 |
fn into_hex(&self) -> String {
|
1979 |
trait ToByteArray<T: DataType> {
|
1980 |
#[allow(clippy::wrong_self_convention)]
|
1981 |
fn to_byte_array(data: &[T::T]) -> Vec<u8>;
|
2000 |
impl ToByteArray<BoolType> for BoolType {
|
2001 |
#[allow(clippy::wrong_self_convention)]
|
2002 |
fn to_byte_array(data: &[bool]) -> Vec<u8> {
|
2016 |
impl ToByteArray<Int96Type> for Int96Type {
|
2017 |
#[allow(clippy::wrong_self_convention)]
|
2018 |
fn to_byte_array(data: &[Int96]) -> Vec<u8> {
|
2027 |
impl ToByteArray<ByteArrayType> for ByteArrayType {
|
2028 |
#[allow(clippy::wrong_self_convention)]
|
2029 |
fn to_byte_array(data: &[ByteArray]) -> Vec<u8> {
|
2041 |
impl ToByteArray<FixedLenByteArrayType> for FixedLenByteArrayType {
|
2042 |
#[allow(clippy::wrong_self_convention)]
|
2043 |
fn to_byte_array(data: &[FixedLenByteArray]) -> Vec<u8> {
|
18 |
/// Returns `None`
|
19 |
#[allow(clippy::wrong_self_convention)]
|
20 |
fn as_debug<T>(_: &T) -> Option<&dyn Debug> {
|
31 |
/// Returns the passed in argument as `Some(&dyn Debug).`
|
32 |
#[allow(clippy::unnecessary_wraps, clippy::wrong_self_convention)]
|
33 |
pub fn as_debug(it: &T) -> Option<&dyn Debug> {
|
48 |
#[allow(clippy::wrong_self_convention)]
|
49 |
#[inline]
|
54 |
#[allow(clippy::wrong_self_convention)]
|
55 |
#[inline]
|
70 |
/// Convert the handle to a raw pointer without consuming the handle.
|
71 |
#[allow(clippy::wrong_self_convention)]
|
72 |
fn as_raw(handle: &Self::Handle) -> NonNull<Self::Target>;
|
148 |
/// returns the angle in radians and a normalized axis vector
|
149 |
#[allow(clippy::wrong_self_convention)]
|
150 |
pub fn to_angle_axis(&self) -> (f32, PxVec3) {
|
24 |
/// Converts from Pico null terminated Vec<i8> string format to Rust Strings
|
25 |
#[allow(clippy::wrong_self_convention)]
|
26 |
fn from_pico_i8_string(self, buf_len: usize) -> String;
|
96 |
//TODO: rename to into_vec
|
97 |
#[allow(clippy::wrong_self_convention)]
|
98 |
fn to_vec(self) -> Vec<GradientStop>;
|
197 |
impl GradientStops for (Color, Color) {
|
198 |
#[allow(clippy::wrong_self_convention)]
|
199 |
fn to_vec(self) -> Vec<GradientStop> {
|
205 |
impl GradientStops for (Color, Color, Color) {
|
206 |
#[allow(clippy::wrong_self_convention)]
|
207 |
fn to_vec(self) -> Vec<GradientStop> {
|
213 |
impl GradientStops for (Color, Color, Color, Color) {
|
214 |
#[allow(clippy::wrong_self_convention)]
|
215 |
fn to_vec(self) -> Vec<GradientStop> {
|
221 |
impl GradientStops for (Color, Color, Color, Color, Color) {
|
222 |
#[allow(clippy::wrong_self_convention)]
|
223 |
fn to_vec(self) -> Vec<GradientStop> {
|
176 |
// really a mutation, so we'll keep the name. Consider using interior mutability in the future.
|
177 |
#[allow(clippy::wrong_self_convention)]
|
178 |
pub fn to_image_buf(&mut self, fmt: ImageFormat) -> Result<ImageBuf, piet::Error> {
|
112 |
// really a mutation, so we'll keep the name. Consider using interior mutability in the future.
|
113 |
#[allow(clippy::wrong_self_convention)]
|
114 |
pub fn to_image_buf(&mut self, fmt: ImageFormat) -> Result<ImageBuf, piet::Error> {
|
154 |
// really a mutation, so we'll keep the name. Consider using interior mutability in the future.
|
155 |
#[allow(clippy::wrong_self_convention)]
|
156 |
pub fn to_image_buf(&mut self, fmt: ImageFormat) -> Result<ImageBuf, piet::Error> {
|
132 |
// really a mutation, so we'll keep the name. Consider using interior mutability in the future.
|
133 |
#[allow(clippy::wrong_self_convention)]
|
134 |
pub fn to_image_buf(&mut self, fmt: ImageFormat) -> Result<ImageBuf, piet::Error> {
|
94 |
/// Check if it is running in a Command context.
|
95 |
#[allow(clippy::wrong_self_convention)]
|
96 |
#[ink(extension = 12, handle_status = false, returns_result = false)]
|
89 |
#[inline]
|
90 |
#[allow(clippy::wrong_self_convention)]
|
91 |
fn from_little_endian(v: u8) -> Self {
|
82 |
#[inline]
|
83 |
#[allow(clippy::wrong_self_convention)]
|
84 |
fn from_little_endian(v: i8) -> Self {
|
38 |
// change, so postpone the fix to the next major release
|
39 |
#[allow(clippy::wrong_self_convention)]
|
40 |
fn from_index(&self, index: usize) -> Option<Self::ValueType>;
|
2668 |
/// Succeed if `left` is more specific than `right` with respect to `args`.
|
2669 |
#[allow(clippy::ptr_arg, clippy::wrong_self_convention)]
|
2670 |
fn is_more_specific(&mut self, left: &Rule, right: &Rule, args: &TermList) -> PolarResult<()> {
|
2735 |
/// Determine if `left` is a more specific specializer ("subspecializer") than `right`
|
2736 |
#[allow(clippy::wrong_self_convention)]
|
2737 |
fn is_subspecializer(
|
10 |
#[allow(clippy::wrong_self_convention)]
|
11 |
fn is_nan(&self) -> bool
|
111 |
impl BooleanChunked {
|
112 |
#[allow(clippy::wrong_self_convention)]
|
113 |
#[doc(hidden)]
|
193 |
impl Utf8Chunked {
|
194 |
#[allow(clippy::wrong_self_convention)]
|
195 |
#[doc(hidden)]
|
282 |
impl BinaryChunked {
|
283 |
#[allow(clippy::wrong_self_convention)]
|
284 |
#[doc(hidden)]
|
405 |
impl ListChunked {
|
406 |
#[allow(clippy::wrong_self_convention)]
|
407 |
#[doc(hidden)]
|
441 |
impl<T: PolarsObject> ObjectChunked<T> {
|
442 |
#[allow(clippy::wrong_self_convention)]
|
443 |
#[doc(hidden)]
|
515 |
#[allow(clippy::wrong_self_convention)]
|
516 |
pub fn into_no_null_iter(
|
111 |
}
|
112 |
#[allow(clippy::wrong_self_convention)]
|
113 |
fn into_partial_eq_inner<'a>(&'a self) -> Box<dyn PartialEqInner + 'a> {
|
115 |
}
|
116 |
#[allow(clippy::wrong_self_convention)]
|
117 |
fn into_partial_ord_inner<'a>(&'a self) -> Box<dyn PartialOrdInner + 'a> {
|
387 |
pub(crate) trait AsU64 {
|
388 |
#[allow(clippy::wrong_self_convention)]
|
389 |
fn as_u64(self) -> u64;
|
210 |
#[cfg_attr(docsrs, doc(cfg(feature = "list_to_struct")))]
|
211 |
#[allow(clippy::wrong_self_convention)]
|
212 |
/// Convert this `List` to a `Series` of type `Struct`. The width will be determined according to
|
277 |
/// Run is_null operation on `Expr`.
|
278 |
#[allow(clippy::wrong_self_convention)]
|
279 |
pub fn is_null(self) -> Self {
|
283 |
/// Run is_not_null operation on `Expr`.
|
284 |
#[allow(clippy::wrong_self_convention)]
|
285 |
pub fn is_not_null(self) -> Self {
|
829 |
/// Get mask of finite values if dtype is Float
|
830 |
#[allow(clippy::wrong_self_convention)]
|
831 |
pub fn is_finite(self) -> Self {
|
839 |
/// Get mask of infinite values if dtype is Float
|
840 |
#[allow(clippy::wrong_self_convention)]
|
841 |
pub fn is_infinite(self) -> Self {
|
1167 |
/// Get a mask of duplicated values
|
1168 |
#[allow(clippy::wrong_self_convention)]
|
1169 |
pub fn is_duplicated(self) -> Self {
|
47 |
}
|
48 |
#[allow(clippy::wrong_self_convention)]
|
49 |
fn is_top_level_ident(&mut self, ident: &Ident) -> bool {
|
58 |
/// Return raw scaled value if it fits within u128
|
59 |
#[allow(clippy::wrong_self_convention)]
|
60 |
pub fn to_scaled_val(&self) -> Result<u128, ProgramError> {
|
64 |
/// Return raw scaled value
|
65 |
#[allow(clippy::wrong_self_convention)]
|
66 |
pub fn to_scaled_val(&self) -> u128 {
|
59 |
/// Return raw scaled value if it fits within u128
|
60 |
#[allow(clippy::wrong_self_convention)]
|
61 |
pub fn to_scaled_val(&self) -> Result<u128, ProgramError> {
|
64 |
/// Return raw scaled value
|
65 |
#[allow(clippy::wrong_self_convention)]
|
66 |
pub fn to_scaled_val(&self) -> u128 {
|
59 |
/// Return raw scaled value if it fits within u128
|
60 |
#[allow(clippy::wrong_self_convention)]
|
61 |
pub fn to_scaled_val(&self) -> Result<u128, ProgramError> {
|
64 |
/// Return raw scaled value
|
65 |
#[allow(clippy::wrong_self_convention)]
|
66 |
pub fn to_scaled_val(&self) -> u128 {
|
58 |
/// Return raw scaled value if it fits within u128
|
59 |
#[allow(clippy::wrong_self_convention)]
|
60 |
pub fn to_scaled_val(&self) -> Result<u128, ProgramError> {
|
64 |
/// Return raw scaled value
|
65 |
#[allow(clippy::wrong_self_convention)]
|
66 |
pub fn to_scaled_val(&self) -> u128 {
|
58 |
/// Return raw scaled value if it fits within u128
|
59 |
#[allow(clippy::wrong_self_convention)]
|
60 |
pub fn to_scaled_val(&self) -> Result<u128, ProgramError> {
|
64 |
/// Return raw scaled value
|
65 |
#[allow(clippy::wrong_self_convention)]
|
66 |
pub fn to_scaled_val(&self) -> u128 {
|
7 |
#[cfg(not(all(target_os = "linux", target_env = "gnu")))]
|
8 |
#[allow(clippy::wrong_self_convention)]
|
9 |
#[allow(non_upper_case_globals)]
|
372 |
#[cfg(not(target_env = "gnu"))]
|
373 |
#[allow(clippy::wrong_self_convention)]
|
374 |
#[allow(non_upper_case_globals)]
|
421 |
#[cfg(not(target_env = "gnu"))]
|
422 |
#[allow(clippy::wrong_self_convention)]
|
423 |
#[allow(non_upper_case_globals)]
|
114 |
/// ```
|
115 |
#[allow(clippy::wrong_self_convention)]
|
116 |
fn from_file_path(self) -> FileContentPredicate<Self> {
|
177 |
/// ```
|
178 |
#[allow(clippy::wrong_self_convention)]
|
179 |
fn from_utf8(self) -> Utf8Predicate<Self> {
|
11 |
/// A trait representing a valid configuration entity
|
12 |
#[allow(clippy::wrong_self_convention)]
|
13 |
pub trait Configuration {
|
371 |
/// `SOL_SOCKET` and level of `SCM_RIGHTS`.
|
372 |
#[allow(clippy::wrong_self_convention)]
|
373 |
unsafe fn as_rights(data: &'a [u8]) -> Self {
|
385 |
#[cfg(any(doc, target_os = "android", target_os = "linux",))]
|
386 |
#[allow(clippy::wrong_self_convention)]
|
387 |
unsafe fn as_credentials(data: &'a [u8]) -> Self {
|
17 |
#[allow(clippy::wrong_self_convention)]
|
18 |
pub unsafe fn get_unchecked_mut(&mut self) -> &mut T {
|
36 |
#[allow(clippy::wrong_self_convention)]
|
37 |
pub fn get_mut<P: Permit<T>>(&mut self, permit: &mut P) -> Option<&mut T> {
|
41 |
#[allow(clippy::wrong_self_convention)]
|
42 |
pub fn into_inner<P: Permit<T>>(self, permit: &mut P) -> Option<T> {
|
53 |
#[allow(clippy::wrong_self_convention)]
|
54 |
fn get_mut<'protect>(&mut self, value: &'protect mut Protect<T>) -> Option<&'protect mut T>;
|
56 |
#[allow(clippy::wrong_self_convention)]
|
57 |
fn into_inner(&mut self, value: Protect<T>) -> Option<T>;
|
698 |
/// Callers must ensure that ensure that the cast is valid.
|
699 |
#[allow(clippy::wrong_self_convention)]
|
700 |
pub unsafe fn from_owned_ptr<T>(self, ptr: *mut ffi::PyObject) -> &'py T
|
714 |
/// Callers must ensure that ensure that the cast is valid.
|
715 |
#[allow(clippy::wrong_self_convention)]
|
716 |
pub unsafe fn from_owned_ptr_or_err<T>(self, ptr: *mut ffi::PyObject) -> PyResult<&'py T>
|
730 |
/// Callers must ensure that ensure that the cast is valid.
|
731 |
#[allow(clippy::wrong_self_convention)]
|
732 |
pub unsafe fn from_owned_ptr_or_opt<T>(self, ptr: *mut ffi::PyObject) -> Option<&'py T>
|
745 |
/// Callers must ensure that ensure that the cast is valid.
|
746 |
#[allow(clippy::wrong_self_convention)]
|
747 |
pub unsafe fn from_borrowed_ptr<T>(self, ptr: *mut ffi::PyObject) -> &'py T
|
760 |
/// Callers must ensure that ensure that the cast is valid.
|
761 |
#[allow(clippy::wrong_self_convention)]
|
762 |
pub unsafe fn from_borrowed_ptr_or_err<T>(self, ptr: *mut ffi::PyObject) -> PyResult<&'py T>
|
231 |
/// )
|
232 |
#[allow(clippy::too_many_arguments, clippy::wrong_self_convention)]
|
233 |
fn to_python_executable_starlark(
|
657 |
#[allow(clippy::wrong_self_convention)]
|
658 |
pub fn to_record(&mut self, round_places: u32) -> csv::StringRecord {
|
521 |
#[allow(clippy::wrong_self_convention)]
|
522 |
pub fn from_reader<R: Read>(&self, rdr: R) -> csv::Reader<R> {
|
559 |
#[allow(clippy::wrong_self_convention)]
|
560 |
pub fn from_writer<W: io::Write>(&self, wtr: W) -> csv::Writer<W> {
|
37 |
#[allow(clippy::wrong_self_convention)]
|
38 |
fn to_es_value_facade(self) -> EsValueFacade
|
158 |
impl CfgStartupHook {
|
159 |
#[allow(clippy::wrong_self_convention)]
|
160 |
pub const fn to_attr(&self) -> StartupHookAttr {
|
1204 |
impl<'a, S: BlobStore> BorrowedTreeNode<'a, S> {
|
1205 |
#[allow(clippy::wrong_self_convention)]
|
1206 |
fn to_owned(&self) -> TreeNode<S> {
|
1858 |
#[allow(clippy::wrong_self_convention)]
|
1859 |
fn to_owned(self) -> Option<Arc<Vec<TreeNode<S>>>> {
|
236 |
// False positive: We are following `std` here.
|
237 |
#[allow(clippy::wrong_self_convention)]
|
238 |
pub(crate) trait Float: Sized {
|
102 |
// a huge deal and not something we can change now.
|
103 |
#[allow(clippy::wrong_self_convention)]
|
104 |
pub fn to_normal_id(&self) -> Option<u8> {
|
1087 |
/// subscription.
|
1088 |
#[allow(clippy::wrong_self_convention)]
|
1089 |
pub fn from_pattern(&self) -> bool {
|
955 |
/// subscription.
|
956 |
#[allow(clippy::wrong_self_convention)]
|
957 |
pub fn from_pattern(&self) -> bool {
|
433 |
pub trait ParamValue<'a> {
|
434 |
#[allow(clippy::wrong_self_convention)]
|
435 |
/// The parameter value as a string.
|
287 |
/// \return all set bytes, as a vec.
|
288 |
#[allow(clippy::wrong_self_convention)]
|
289 |
pub fn to_vec(&self) -> Vec<u8> {
|
191 |
/// `elem` is the unique element in the space with `to_index(elem) == index`.
|
192 |
#[allow(clippy::wrong_self_convention)] // `from_` here refers to element, not space
|
193 |
fn from_index(&self, index: usize) -> Option<Self::Element>;
|
200 |
#[inline]
|
201 |
#[allow(clippy::wrong_self_convention)] // `from_` here refers to element, not space
|
202 |
fn from_index_unchecked(&self, index: usize) -> Option<Self::Element> {
|
320 |
#[allow(clippy::wrong_self_convention)]
|
321 |
impl TestRequest {
|
59 |
pub trait IntoWriter {
|
60 |
#[allow(clippy::wrong_self_convention)]
|
61 |
fn into_writer<S: Sender>(&self, writer: &mut S, len: usize) -> Result<()>;
|
108 |
#[allow(clippy::wrong_self_convention)]
|
109 |
pub fn is_empty(&mut self) -> bool {
|
646 |
//noinspection RsSelfConvention
|
647 |
#[cfg_attr(feature = "cargo-clippy", allow(wrong_self_convention))]
|
648 |
/// Constructs a new instance of the `RenameCollection` method for the
|
489 |
#[cfg_attr(feature = "inline-more", inline)]
|
490 |
#[allow(clippy::wrong_self_convention)]
|
491 |
pub fn to_front<Q>(&mut self, k: &Q) -> Option<&mut V>
|
507 |
#[cfg_attr(feature = "inline-more", inline)]
|
508 |
#[allow(clippy::wrong_self_convention)]
|
509 |
pub fn to_back<Q>(&mut self, k: &Q) -> Option<&mut V>
|
823 |
#[cfg_attr(feature = "inline-more", inline)]
|
824 |
#[allow(clippy::wrong_self_convention)]
|
825 |
pub fn to_back(&mut self) {
|
829 |
#[cfg_attr(feature = "inline-more", inline)]
|
830 |
#[allow(clippy::wrong_self_convention)]
|
831 |
pub fn to_front(&mut self) {
|
921 |
#[cfg_attr(feature = "inline-more", inline)]
|
922 |
#[allow(clippy::wrong_self_convention)]
|
923 |
pub fn from_key<Q>(self, k: &Q) -> Option<(&'a K, &'a V)>
|
273 |
#[cfg_attr(feature = "inline-more", inline)]
|
274 |
#[allow(clippy::wrong_self_convention)]
|
275 |
pub fn to_front<Q: ?Sized>(&mut self, value: &Q) -> bool
|
289 |
#[cfg_attr(feature = "inline-more", inline)]
|
290 |
#[allow(clippy::wrong_self_convention)]
|
291 |
pub fn to_back<Q: ?Sized>(&mut self, value: &Q) -> bool
|
44 |
#[allow(clippy::wrong_self_convention)]
|
45 |
pub fn to_tag(self) -> u8 {
|
84 |
#[inline]
|
85 |
#[allow(clippy::wrong_self_convention)]
|
86 |
pub const fn to_ipv6_compatible(&self) -> Ipv6Addr {
|
93 |
#[inline]
|
94 |
#[allow(clippy::wrong_self_convention)]
|
95 |
pub const fn to_ipv6_mapped(&self) -> Ipv6Addr {
|
204 |
#[inline]
|
205 |
#[allow(clippy::wrong_self_convention)]
|
206 |
pub const fn to_ipv4(&self) -> Option<Ipv4Addr> {
|
84 |
#[inline]
|
85 |
#[allow(clippy::wrong_self_convention)]
|
86 |
pub const fn to_ipv6_compatible(&self) -> Ipv6Addr {
|
93 |
#[inline]
|
94 |
#[allow(clippy::wrong_self_convention)]
|
95 |
pub const fn to_ipv6_mapped(&self) -> Ipv6Addr {
|
204 |
#[inline]
|
205 |
#[allow(clippy::wrong_self_convention)]
|
206 |
pub const fn to_ipv4(&self) -> Option<Ipv4Addr> {
|
103 |
impl<R> FileReader<R> {
|
104 |
#[allow(clippy::wrong_self_convention)]
|
105 |
pub(crate) fn is_initial_empty_line(&mut self) -> bool {
|
488 |
#[allow(clippy::wrong_self_convention)]
|
489 |
fn into_node_id<AF: AddressFamily>(
|
499 |
// one bit to the left.
|
500 |
#[allow(clippy::wrong_self_convention)]
|
501 |
fn into_stride_size(
|
509 |
// accomodate the unused pfxbitarr's last bit.
|
510 |
#[allow(clippy::wrong_self_convention)]
|
511 |
fn into_ptrbitarr_size(
|
76 |
// one bit to the left.
|
77 |
#[allow(clippy::wrong_self_convention)]
|
78 |
fn into_stride_size(bitmap: Self::PtrSize) -> Self;
|
344 |
#[inline]
|
345 |
#[allow(clippy::wrong_self_convention)] // matches pin api
|
346 |
pub fn into_floating_disabled(&mut self) {
|
351 |
#[inline]
|
352 |
#[allow(clippy::wrong_self_convention)] // matches pin api
|
353 |
pub fn into_pull_down_disabled(&mut self) {
|
358 |
#[inline]
|
359 |
#[allow(clippy::wrong_self_convention)] // matches pin api
|
360 |
pub fn into_pull_up_disabled(&mut self) {
|
365 |
#[inline]
|
366 |
#[allow(clippy::wrong_self_convention)] // matches pin api
|
367 |
pub fn into_floating_input(&mut self) {
|
372 |
#[inline]
|
373 |
#[allow(clippy::wrong_self_convention)] // matches pin api
|
374 |
pub fn into_pull_down_input(&mut self) {
|
368 |
/// - If you not provide the `lib={fbclient}`, we will consider this a dynamic linked connection. The default, by the way.
|
369 |
#[allow(clippy::wrong_self_convention)]
|
370 |
pub fn from_string(
|
130 |
/// Basic string syntax: `firebird://{user}:{pass}@{host}:{port}/{db_name}?charset={charset}&dialect={dialect}`
|
131 |
#[allow(clippy::wrong_self_convention)]
|
132 |
pub fn from_string(&mut self, s_conn: &str) -> Result<&mut Self, FbError> {
|
161 |
#[allow(clippy::wrong_self_convention)]
|
162 |
/// Types with an associated boolean flag function, `named()` indiciating support for named or positional parameters.
|
49 |
#[allow(clippy::wrong_self_convention)]
|
50 |
/// Define the conversion from the buffer to a value
|
424 |
/// Converts a `java.lang.reflect.Field` to a field ID.
|
425 |
#[cfg_attr(feature = "cargo-clippy", allow(wrong_self_convention))]
|
426 |
pub fn from_reflected_field(&self) -> Result<FieldId> {
|
452 |
///
|
453 |
#[cfg_attr(feature = "cargo-clippy", allow(wrong_self_convention))]
|
454 |
pub fn from_reflected_method(&self) -> Result<MethodId> {
|
76 |
/// Convert the result to an untyped SyntaxNode parse.
|
77 |
#[allow(clippy::wrong_self_convention)]
|
78 |
pub fn to_syntax(self) -> Parse<SyntaxNode> {
|
80 |
#[allow(clippy::wrong_self_convention)]
|
81 |
fn as_key(i: u64) -> [u8; 8] {
|
177 |
/// ```
|
178 |
#[allow(clippy::wrong_self_convention)]
|
179 |
pub fn into_device(mut b: DeviceBox<T>) -> DevicePointer<T> {
|
157 |
/// ```
|
158 |
#[allow(clippy::wrong_self_convention)]
|
159 |
pub fn into_unified(mut b: UnifiedBox<T>) -> UnifiedPointer<T> {
|
3 |
#[allow(clippy::wrong_self_convention)]
|
4 |
impl Solution {
|
3 |
#[allow(clippy::wrong_self_convention)]
|
4 |
impl Solution {
|
3 |
#[allow(clippy::wrong_self_convention)]
|
4 |
impl Solution {
|
3 |
#[allow(clippy::wrong_self_convention)]
|
4 |
impl Solution {
|
271 |
/// If allocation fails, an error will be returned.
|
272 |
#[allow(clippy::wrong_self_convention)]
|
273 |
pub fn to_owned(&self) -> Option<OwnedBinary> {
|
340 |
/// Returns an Erlang term representation of `self`.
|
341 |
#[allow(clippy::wrong_self_convention)]
|
342 |
pub fn to_term<'b>(&self, env: Env<'b>) -> Term<'b> {
|
82 |
/// Convert the handle to a raw pointer without consuming the handle.
|
83 |
#[allow(clippy::wrong_self_convention)]
|
84 |
fn as_raw(handle: &Self::Handle) -> NonNull<Self::Target>;
|
191 |
#[allow(clippy::wrong_self_convention)]
|
192 |
fn into_opts(&self) -> EnqueueOpts {
|
826 |
// https://github.com/rust-lang/rust-clippy/issues/4396
|
827 |
#[allow(clippy::wrong_self_convention)]
|
828 |
// 1.53.0 still requires clippy::wrong_self_convention
|
528 |
#[allow(clippy::wrong_self_convention)]
|
529 |
pub unsafe fn to_embedder<E>(self, field: &F) -> &E {
|
535 |
#[allow(clippy::wrong_self_convention)]
|
536 |
pub unsafe fn to_embedder_mut<E>(self, field: &mut F) -> &mut E {
|
30 |
#[allow(clippy::wrong_self_convention)]
|
31 |
impl CategoricalDatum for usize {
|
83 |
#[allow(clippy::wrong_self_convention)]
|
84 |
impl Booleable for bool {
|
123 |
/// protocol errors.
|
124 |
#[allow(clippy::wrong_self_convention)] // Don't use `self` here to make conversion explicit
|
125 |
pub const fn as_varint(packet_number: Self) -> VarInt {
|
277 |
#[allow(clippy::wrong_self_convention)]
|
278 |
pub fn to_bytes(&self) -> [u8; 32] {
|
435 |
#[allow(clippy::wrong_self_convention)]
|
436 |
pub fn to_bytes(&self) -> [u8; 64] {
|
554 |
#[allow(clippy::wrong_self_convention)]
|
555 |
pub fn to_bytes(&self) -> [u8; 32] {
|
80 |
#[allow(clippy::wrong_self_convention)]
|
81 |
pub fn as_bytes(&self) -> &[u8; 32] {
|
85 |
#[allow(clippy::wrong_self_convention)]
|
86 |
pub fn to_bytes(&self) -> [u8; 32] {
|
173 |
#[allow(clippy::wrong_self_convention)]
|
174 |
pub fn to_bytes(&self) -> [u8; 32] {
|
556 |
fn primary_index(index: Self::Index) -> u64;
|
557 |
#[allow(clippy::wrong_self_convention)]
|
558 |
fn as_index(slot: Slot) -> Self::Index;
|
603 |
#[allow(clippy::wrong_self_convention)]
|
604 |
fn as_index(slot: Slot) -> u64 {
|
639 |
#[allow(clippy::wrong_self_convention)]
|
640 |
fn as_index(index: u64) -> Self::Index {
|
680 |
#[allow(clippy::wrong_self_convention)]
|
681 |
fn as_index(index: u64) -> Self::Index {
|
711 |
#[allow(clippy::wrong_self_convention)]
|
712 |
fn as_index(slot: u64) -> u64 {
|
320 |
#[allow(clippy::wrong_self_convention)]
|
321 |
impl TestRequest {
|
51 |
#[allow(clippy::wrong_self_convention)]
|
52 |
pub trait LockBackend {
|
117 |
/// Perform a Select operation on a Model using a [Statement]
|
118 |
#[allow(clippy::wrong_self_convention)]
|
119 |
pub fn from_raw_sql(self, stmt: Statement) -> SelectorRaw<SelectModel<E::Model>> {
|
1243 |
/// ```
|
1244 |
#[allow(clippy::wrong_self_convention)]
|
1245 |
pub fn is_null(self) -> SimpleExpr {
|
1307 |
/// ```
|
1308 |
#[allow(clippy::wrong_self_convention)]
|
1309 |
pub fn is_not_null(self) -> SimpleExpr {
|
1608 |
/// ```
|
1609 |
#[allow(clippy::wrong_self_convention)]
|
1610 |
pub fn is_in<V, I>(mut self, v: I) -> SimpleExpr
|
1653 |
/// ```
|
1654 |
#[allow(clippy::wrong_self_convention)]
|
1655 |
pub fn in_tuples<V, I>(mut self, v: I) -> SimpleExpr
|
1717 |
/// ```
|
1718 |
#[allow(clippy::wrong_self_convention)]
|
1719 |
pub fn is_not_in<V, I>(mut self, v: I) -> SimpleExpr
|
78 |
/// ```
|
79 |
#[allow(clippy::wrong_self_convention)]
|
80 |
pub fn from_table<T>(&mut self, tbl_ref: T) -> &mut Self
|
989 |
#[allow(clippy::wrong_self_convention)]
|
990 |
fn from_from(&mut self, select: TableRef) -> &mut Self {
|
58 |
/// See [`UpdateStatement::values`]
|
59 |
#[allow(clippy::wrong_self_convention)]
|
60 |
pub fn table<T>(&mut self, tbl_ref: T) -> &mut Self
|
1 |
#![allow(clippy::wrong_self_convention)]
|
36 |
#[doc(hidden)]
|
37 |
#[allow(clippy::wrong_self_convention)]
|
38 |
#[allow(clippy::upper_case_acronyms)]
|
79 |
#[inline]
|
80 |
#[allow(clippy::wrong_self_convention)]
|
81 |
fn from_little_endian(self) -> Self {
|
91 |
#[inline]
|
92 |
#[allow(clippy::wrong_self_convention)]
|
93 |
fn from_little_endian(self) -> Self {
|
143 |
#[inline]
|
144 |
#[allow(clippy::wrong_self_convention)]
|
145 |
fn from_little_endian(self) -> Self {
|
87 |
#[inline]
|
88 |
#[allow(clippy::wrong_self_convention)]
|
89 |
fn from_little_endian(self) -> Self {
|
56 |
/// pointer check, but the main concern is the lifetime of the pointer.
|
57 |
#[allow(clippy::wrong_self_convention)]
|
58 |
unsafe fn as_str<'a>(self) -> Option<&'a str>;
|
75 |
/// Whether to trace the human readable encoding of (de)serialization.
|
76 |
#[allow(clippy::wrong_self_convention)]
|
77 |
pub fn is_human_readable(mut self, value: bool) -> Self {
|
75 |
/// Whether to trace the human readable encoding of (de)serialization.
|
76 |
#[allow(clippy::wrong_self_convention)]
|
77 |
pub fn is_human_readable(mut self, value: bool) -> Self {
|
101 |
/// be sent by a specific user or in a specific guild.
|
102 |
#[allow(clippy::wrong_self_convention)]
|
103 |
fn is_passing_constraints(&mut self, event: &mut LazyArc<'_, Event>) -> bool {
|
328 |
/// event ID will be returned.
|
329 |
#[allow(clippy::wrong_self_convention)]
|
330 |
pub fn from_event<E: Into<String>>(mut self, event_id: E) -> Self {
|
395 |
#[doc = r" If left unset defaults to the latest block."]
|
396 |
#[allow(clippy::wrong_self_convention)]
|
397 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
403 |
#[doc = r" If left unset defaults to the streaming until the end of days."]
|
404 |
#[allow(clippy::wrong_self_convention)]
|
405 |
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
473 |
#[doc = r" If left unset defaults to the latest block."]
|
474 |
#[allow(clippy::wrong_self_convention)]
|
475 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
481 |
#[doc = r" If left unset defaults to the streaming until the end of days."]
|
482 |
#[allow(clippy::wrong_self_convention)]
|
483 |
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
554 |
#[doc = r" If left unset defaults to the latest block."]
|
555 |
#[allow(clippy::wrong_self_convention)]
|
556 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
416 |
#[doc = r" If left unset defaults to the latest block."]
|
417 |
#[allow(clippy::wrong_self_convention)]
|
418 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
424 |
#[doc = r" If left unset defaults to the streaming until the end of days."]
|
425 |
#[allow(clippy::wrong_self_convention)]
|
426 |
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
497 |
#[doc = r" If left unset defaults to the latest block."]
|
498 |
#[allow(clippy::wrong_self_convention)]
|
499 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
505 |
#[doc = r" If left unset defaults to the streaming until the end of days."]
|
506 |
#[allow(clippy::wrong_self_convention)]
|
507 |
pub fn to_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
575 |
#[doc = r" If left unset defaults to the latest block."]
|
576 |
#[allow(clippy::wrong_self_convention)]
|
577 |
pub fn from_block(mut self, block: self::ethcontract::BlockNumber) -> Self {
|
130 |
#[allow(clippy::wrong_self_convention)]
|
131 |
pub fn is_closed(&mut self) -> bool {
|
453 |
#[allow(clippy::wrong_self_convention)]
|
454 |
pub fn is_same_texture(&mut self, texture: &BackendTexture) -> bool {
|
1214 |
/// }
|
1215 |
#[cfg_attr(feature = "cargo-clippy", allow(wrong_self_convention))]
|
1216 |
pub fn new<T>(&self, values: OwnedKV<T>) -> Logger<D>
|
110 |
#[must_use]
|
111 |
#[allow(clippy::wrong_self_convention)]
|
112 |
fn to_affine(&self) -> Self::Affine;
|
116 |
/// in the correct prime order subgroup.
|
117 |
#[allow(clippy::wrong_self_convention)]
|
118 |
pub trait AffineCurve:
|
100 |
#[allow(clippy::wrong_self_convention)]
|
101 |
pub fn into_edwards<CS: ConstraintSystem<F>>(
|
541 |
fn primary_index(index: Self::Index) -> u64;
|
542 |
#[allow(clippy::wrong_self_convention)]
|
543 |
fn as_index(slot: Slot) -> Self::Index;
|
592 |
#[allow(clippy::wrong_self_convention)]
|
593 |
fn as_index(slot: Slot) -> u64 {
|
628 |
#[allow(clippy::wrong_self_convention)]
|
629 |
fn as_index(index: u64) -> Self::Index {
|
668 |
#[allow(clippy::wrong_self_convention)]
|
669 |
fn as_index(index: u64) -> Self::Index {
|
698 |
#[allow(clippy::wrong_self_convention)]
|
699 |
fn as_index(_index: u64) -> Self::Index {
|
62 |
/// Return raw scaled value if it fits within u128
|
63 |
#[allow(clippy::wrong_self_convention)]
|
64 |
pub fn to_scaled_val(&self) -> Result<u128, ProgramError> {
|
63 |
/// Return raw scaled value
|
64 |
#[allow(clippy::wrong_self_convention)]
|
65 |
pub fn to_scaled_val(&self) -> u128 {
|
276 |
#[allow(clippy::wrong_self_convention)]
|
277 |
pub fn to_bytes(&self) -> [u8; 32] {
|
436 |
#[allow(clippy::wrong_self_convention)]
|
437 |
pub fn to_bytes(&self) -> [u8; 64] {
|
559 |
#[allow(clippy::wrong_self_convention)]
|
560 |
pub fn to_bytes(&self) -> [u8; 32] {
|
81 |
#[allow(clippy::wrong_self_convention)]
|
82 |
pub fn as_bytes(&self) -> &[u8; 32] {
|
86 |
#[allow(clippy::wrong_self_convention)]
|
87 |
pub fn to_bytes(&self) -> [u8; 32] {
|
174 |
#[allow(clippy::wrong_self_convention)]
|
175 |
pub fn to_bytes(&self) -> [u8; 32] {
|
121 |
#[allow(clippy::wrong_self_convention)]
|
122 |
/// Returns this signature as a byte array.
|
58 |
/// Return raw scaled value if it fits within u128
|
59 |
#[allow(clippy::wrong_self_convention)]
|
60 |
pub fn to_scaled_val(&self) -> Result<u128, ProgramError> {
|
64 |
/// Return raw scaled value
|
65 |
#[allow(clippy::wrong_self_convention)]
|
66 |
pub fn to_scaled_val(&self) -> u128 {
|
43 |
#[deprecated(since = "0.6.3", note = "has been renamed to into_quad_source")]
|
44 |
#[allow(clippy::wrong_self_convention)]
|
45 |
fn as_quad_source(self) -> IntoInfallibleSource<Self, T> {
|
34 |
#[deprecated(since = "0.6.3", note = "Has been renamed to wrap_as_triple")]
|
35 |
#[allow(clippy::wrong_self_convention)]
|
36 |
fn as_triple(self) -> QuadAsTriple<Self>
|
47 |
#[deprecated(since = "0.6.3", note = "has been renamed to into_triple_source")]
|
48 |
#[allow(clippy::wrong_self_convention)]
|
49 |
fn as_triple_source(self) -> IntoInfallibleSource<Self, T> {
|
41 |
#[deprecated(since = "0.6.3", note = "has been renamed to wrap_as_quad")]
|
42 |
#[allow(clippy::wrong_self_convention)]
|
43 |
fn as_quad(self) -> TripleAsQuad<Self>
|
61 |
#[deprecated(since = "0.6.3", note = "has been renamed to wrap_as_quad_from")]
|
62 |
#[allow(clippy::wrong_self_convention)]
|
63 |
fn as_quad_from(self, name: Self::Term) -> TripleAsQuadFrom<Self>
|
21 |
#[allow(clippy::wrong_self_convention)]
|
22 |
pub trait ForeignObject: Sized {
|
58 |
/// Return raw scaled value if it fits within u128
|
59 |
#[allow(clippy::wrong_self_convention)]
|
60 |
pub fn to_scaled_val(&self) -> Result<u128, ProgramError> {
|
59 |
/// Return raw scaled value
|
60 |
#[allow(clippy::wrong_self_convention)]
|
61 |
pub fn to_scaled_val(&self) -> u128 {
|
273 |
#[allow(clippy::wrong_self_convention)]
|
274 |
pub fn to_bytes(&self) -> [u8; 32] {
|
419 |
#[allow(clippy::wrong_self_convention)]
|
420 |
pub fn to_bytes(&self) -> [u8; 64] {
|
86 |
#[allow(clippy::wrong_self_convention)]
|
87 |
pub fn to_bytes(&self) -> [u8; 32] {
|
174 |
#[allow(clippy::wrong_self_convention)]
|
175 |
pub fn to_bytes(&self) -> [u8; 32] {
|
258 |
#[allow(clippy::wrong_self_convention)]
|
259 |
pub fn to_bytes(&self) -> [u8; 32] {
|
98 |
#[allow(clippy::wrong_self_convention)]
|
99 |
pub fn to_state(&self) -> MemoryState {
|
98 |
#[allow(clippy::wrong_self_convention)]
|
99 |
pub fn to_state(&self) -> MemoryState {
|
64 |
#[inline(always)]
|
65 |
#[allow(clippy::wrong_self_convention)]
|
66 |
fn from_usize(ind: usize) -> Self {
|
75 |
#[inline(always)]
|
76 |
#[allow(clippy::wrong_self_convention)]
|
77 |
fn from_usize_unchecked(ind: usize) -> Self {
|
229 |
/// If the URL isn't recognized as being supported by ssstar, an error is returned
|
230 |
#[allow(clippy::wrong_self_convention)] // For a factory object I think it's obvious what this means
|
231 |
pub async fn from_url(config: Config, url: &Url) -> Result<Box<dyn ObjectStorage>> {
|
66 |
/// [`Ret`]: struct.Ret.html
|
67 |
#[allow(clippy::wrong_self_convention)]
|
68 |
#[inline]
|
87 |
/// [`Fwd`]: struct.Fwd.html
|
88 |
#[allow(clippy::wrong_self_convention)]
|
89 |
#[inline]
|
66 |
/// [`Ret`]: struct.Ret.html
|
67 |
#[allow(clippy::wrong_self_convention)]
|
68 |
#[inline]
|
87 |
/// [`Ret`]: struct.Ret.html
|
88 |
#[allow(clippy::wrong_self_convention)]
|
89 |
#[inline]
|
103 |
#[inline]
|
104 |
#[allow(clippy::wrong_self_convention)]
|
105 |
fn from_little_endian(v: u8) -> Self {
|
8 |
/// Constrains the CRC peripheral to play nicely with the other abstractions
|
9 |
#[allow(clippy::wrong_self_convention, clippy::new_ret_no_self)]
|
10 |
fn new(self) -> Crc;
|
8 |
/// Constrains the CRC peripheral to play nicely with the other abstractions
|
9 |
#[allow(clippy::wrong_self_convention, clippy::new_ret_no_self)]
|
10 |
fn new(self, ahb: &mut AHB) -> Crc;
|
104 |
)]
|
105 |
#[allow(clippy::wrong_self_convention)]
|
106 |
pub fn to_object(self) -> Option<T> {
|
25 |
/// __Constraints__: one-way, will need additional work to re-convert to struct.
|
26 |
#[allow(clippy::wrong_self_convention)]
|
27 |
fn to_stringmap(structure: Self) -> StringMap;
|
30 |
/// __Constraints__: currently only supports primitive types for genericized values.
|
31 |
#[allow(clippy::wrong_self_convention)]
|
32 |
fn to_genericmap(structure: Self) -> GenericMap;
|
26 |
/// __Constraints__: one-way, will need additional work to re-convert to struct.
|
27 |
#[allow(clippy::wrong_self_convention)]
|
28 |
fn to_stringmap(structure: Self) -> StringMap;
|
31 |
/// __Constraints__: currently only supports primitive types for genericized values.
|
32 |
#[allow(clippy::wrong_self_convention)]
|
33 |
fn to_genericmap(structure: Self) -> GenericMap;
|
475 |
// WTF is the convention for *mut Self -> *mut T conversions
|
476 |
#[allow(clippy::wrong_self_convention)]
|
477 |
pub unsafe fn as_raw_mut(this: *mut Self) -> *mut T {
|
55 |
#[allow(clippy::wrong_self_convention)]
|
56 |
fn to_bytes(self) -> Option<Vec<u8>> {
|
66 |
#[allow(clippy::wrong_self_convention)]
|
67 |
fn to_value(self) -> Option<Value> {
|
58 |
#[allow(clippy::wrong_self_convention)]
|
59 |
fn is_top_level_ident(&self, ident: &Ident) -> bool {
|
191 |
#[allow(clippy::wrong_self_convention)]
|
192 |
fn is_behind_opstamp(&mut self, target_opstamp: Opstamp) -> bool {
|
102 |
#[doc(hidden)]
|
103 |
#[allow(clippy::wrong_self_convention)]
|
104 |
pub mod __private {
|
79 |
}
|
80 |
#[allow(clippy::wrong_self_convention)]
|
81 |
/// Set if the enumerated value is defaulted for non-explicit values.
|
257 |
#[inline]
|
258 |
#[allow(clippy::wrong_self_convention)]
|
259 |
fn is_byte(&mut self, c: u8) -> bool {
|
17 |
/// to create literals. Almost all rust core types implements `Into<Expr>`.
|
18 |
#[allow(clippy::wrong_self_convention)]
|
19 |
pub trait ExprFactory: Into<Expr> {
|
73 |
#[allow(clippy::wrong_self_convention)]
|
74 |
pub fn is_interesting(&self) -> bool {
|
74 |
#[allow(clippy::wrong_self_convention)]
|
75 |
pub(crate) fn from_handle_internal(h: Handle) -> Handle {
|
17 |
#[allow(
|
18 |
clippy::wrong_self_convention,
|
19 |
clippy::redundant_closure,
|
191 |
#[allow(clippy::wrong_self_convention)]
|
192 |
fn is_behind_opstamp(&mut self, target_opstamp: Opstamp) -> bool {
|
81 |
/// Transfers the mini-batches to a specified device.
|
82 |
#[allow(clippy::wrong_self_convention)]
|
83 |
pub fn to_device(&mut self, device: Device) -> &mut Iter2 {
|
10 |
/// Indicates that the RGBC channels have completed an integration cycle.
|
11 |
#[allow(clippy::wrong_self_convention)]
|
12 |
pub fn is_rgbc_status_valid(&mut self) -> Result<bool, Error<E>> {
|
10 |
/// Indicates that the RGBC channels have completed an integration cycle.
|
11 |
#[allow(clippy::wrong_self_convention)]
|
12 |
pub fn is_rgbc_status_valid(&mut self) -> Result<bool, Error<E>> {
|
37 |
{
|
38 |
#[allow(clippy::wrong_self_convention)]
|
39 |
fn to_lua(self, _: &'lua Lua) -> mlua::Result<Value<'lua>> {
|
36 |
{
|
37 |
#[allow(clippy::wrong_self_convention)]
|
38 |
fn to_lua(self, _: Context<'lua>) -> rlua::Result<Value<'lua>> {
|
572 |
#[allow(clippy::wrong_self_convention)]
|
573 |
#[must_use]
|
27 |
clippy::too_many_arguments,
|
28 |
clippy::wrong_self_convention
|
29 |
)]
|
381 |
/// Takes a Scalar29 out of Montgomery form, i.e. computes `a/R (mod l)`
|
382 |
#[allow(clippy::wrong_self_convention)]
|
383 |
pub fn from_montgomery(&self) -> Scalar29 {
|
310 |
/// Takes a Scalar52 out of Montgomery form, i.e. computes `a/R (mod l)`
|
311 |
#[allow(clippy::wrong_self_convention)]
|
312 |
#[inline(never)]
|
4 |
pub trait StrExt {
|
5 |
#[allow(clippy::wrong_self_convention)]
|
6 |
fn is_first_letter_lowercase(self) -> bool;
|
98 |
/// Administrator's presence in the chat is hidden if true
|
99 |
#[allow(clippy::wrong_self_convention)]
|
100 |
pub fn is_anonymous(mut self, is_anonymous: bool) -> Self {
|
45 |
/// True, if the quiz needs to be anonymous, defaults to True
|
46 |
#[allow(clippy::wrong_self_convention)]
|
47 |
pub fn is_anonymous(mut self, is_anonymous: bool) -> Self {
|
103 |
/// Pass True, if the poll needs to be immediately closed
|
104 |
#[allow(clippy::wrong_self_convention)]
|
105 |
pub fn is_closed(mut self, is_closed: bool) -> Self {
|
190 |
/// True, if the poll needs to be anonymous, defaults to True
|
191 |
#[allow(clippy::wrong_self_convention)]
|
192 |
pub fn is_anonymous(mut self, is_anonymous: bool) -> Self {
|
222 |
/// Pass True, if the poll needs to be immediately closed
|
223 |
#[allow(clippy::wrong_self_convention)]
|
224 |
pub fn is_closed(mut self, is_closed: bool) -> Self {
|
551 |
/// Set `toTime` parameter.
|
552 |
#[allow(clippy::wrong_self_convention)]
|
553 |
pub fn to_time<D>(mut self, to: D) -> Self
|
99 |
#[allow(clippy::wrong_self_convention)]
|
100 |
fn as_hmodule(self) -> HMODULE {
|
59 |
/// unsuccessful bind attempt.
|
60 |
#[allow(clippy::wrong_self_convention)]
|
61 |
fn to_listener(self) -> io::Result<Self::Listener>;
|
48 |
type Listener = DynListener<T>;
|
49 |
#[allow(clippy::wrong_self_convention)]
|
50 |
fn to_listener(self) -> std::io::Result<Self::Listener> {
|
85 |
/// When this returens `false` it means that a conversion is in progress.
|
86 |
#[allow(clippy::wrong_self_convention)]
|
87 |
pub fn is_data_ready(&mut self) -> Result<bool, Error<E>> {
|
81 |
/// [AlertPolarity](enum.AlertPolarity.html).
|
82 |
#[allow(clippy::wrong_self_convention)]
|
83 |
pub fn is_comparator_mode_alert_active(&mut self) -> Result<bool, Error<E>> {
|
306 |
impl Inner {
|
307 |
#[allow(clippy::wrong_self_convention)]
|
308 |
fn into_raw(this: Arc<Inner>) -> *const () {
|
52 |
/// Convert the handle to a raw pointer without consuming the handle.
|
53 |
#[allow(clippy::wrong_self_convention)]
|
54 |
fn as_raw(handle: &Self::Handle) -> NonNull<Self::Target>;
|
222 |
impl Inner {
|
223 |
#[allow(clippy::wrong_self_convention)]
|
224 |
pub(crate) fn into_raw(this: Arc<Inner>) -> *const () {
|
464 |
#[allow(clippy::wrong_self_convention)]
|
465 |
pub(crate) fn to_sql(e: Box<dyn error::Error + Sync + Send>, idx: usize) -> Error {
|
218 |
/// `SOL_SOCKET` and level of `SCM_RIGHTS`.
|
219 |
#[allow(clippy::wrong_self_convention)]
|
220 |
unsafe fn as_rights(data: &'a [u8]) -> Self {
|
232 |
#[cfg(any(target_os = "android", target_os = "linux",))]
|
233 |
#[allow(clippy::wrong_self_convention)]
|
234 |
unsafe fn as_credentials(data: &'a [u8]) -> Self {
|
32 |
/// Obtain a pinned reference to the inner `Lines<R>`.
|
33 |
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4546
|
34 |
pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Lines<R>> {
|
32 |
/// Obtain a pinned reference to the inner `Split<R>`.
|
33 |
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4546
|
34 |
pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Split<R>> {
|
883 |
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4293
|
884 |
fn into_non_null(self: Arc<WaiterNode>) -> NonNull<WaiterNode> {
|
306 |
impl Inner {
|
307 |
#[allow(clippy::wrong_self_convention)]
|
308 |
fn into_raw(this: Arc<Inner>) -> *const () {
|
52 |
/// Convert the handle to a raw pointer without consuming the handle.
|
53 |
#[allow(clippy::wrong_self_convention)]
|
54 |
fn as_raw(handle: &Self::Handle) -> NonNull<Self::Target>;
|
556 |
#[allow(clippy::wrong_self_convention)]
|
557 |
/// Build an `http::Response` from the given `Status`.
|
555 |
#[allow(clippy::wrong_self_convention)]
|
556 |
/// Build an `http::Response` from the given `Status`.
|
636 |
// mutated.. We don't want inner mutability just to placate clippy for an internal API.
|
637 |
#[allow(clippy::wrong_self_convention)]
|
638 |
pub(crate) fn is_exhausted(&mut self) -> bool {
|
94 |
/// [sensitive]: https://docs.rs/http/latest/http/header/struct.HeaderValue.html#method.set_sensitive
|
95 |
#[allow(clippy::wrong_self_convention)]
|
96 |
pub fn as_sensitive(mut self, sensitive: bool) -> Self {
|
157 |
/// [sensitive]: https://docs.rs/http/latest/http/header/struct.HeaderValue.html#method.set_sensitive
|
158 |
#[allow(clippy::wrong_self_convention)]
|
159 |
pub fn as_sensitive(mut self, sensitive: bool) -> Self {
|
819 |
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4293
|
820 |
fn into_non_null(self: Arc<WaiterNode>) -> NonNull<WaiterNode> {
|
239 |
/// ```
|
240 |
#[allow(clippy::wrong_self_convention)]
|
241 |
pub const fn to_fields(&self) -> (u32, u16, u16, [u8; 8]) {
|
251 |
/// ```
|
252 |
#[allow(clippy::wrong_self_convention)]
|
253 |
pub const fn to_bytes_be(&self) -> [u8; 16] {
|
280 |
/// ```
|
281 |
#[allow(clippy::wrong_self_convention)]
|
282 |
pub const fn to_bytes_le(&self) -> [u8; 16] {
|
309 |
/// ```
|
310 |
#[allow(clippy::wrong_self_convention)]
|
311 |
pub const fn to_u128(&self) -> u128 {
|
325 |
/// ```
|
326 |
#[allow(clippy::wrong_self_convention)]
|
327 |
pub const fn to_utf8_bytes(&self) -> [u8; 36] {
|
239 |
/// ```
|
240 |
#[allow(clippy::wrong_self_convention)]
|
241 |
pub const fn to_fields(&self) -> (u32, u16, u16, [u8; 8]) {
|
251 |
/// ```
|
252 |
#[allow(clippy::wrong_self_convention)]
|
253 |
pub const fn to_bytes_be(&self) -> [u8; 16] {
|
280 |
/// ```
|
281 |
#[allow(clippy::wrong_self_convention)]
|
282 |
pub const fn to_bytes_le(&self) -> [u8; 16] {
|
309 |
/// ```
|
310 |
#[allow(clippy::wrong_self_convention)]
|
311 |
pub const fn to_u128(&self) -> u128 {
|
325 |
/// ```
|
326 |
#[allow(clippy::wrong_self_convention)]
|
327 |
pub const fn to_utf8_bytes(&self) -> [u8; 36] {
|
81 |
// Allow `into` by-ref since we don't want to impl Copy for Id
|
82 |
#[allow(clippy::wrong_self_convention)]
|
83 |
/// Returns the span's ID as a `u64`.
|
88 |
// Allow `into` by-ref since we don't want to impl Copy for Id
|
89 |
#[allow(clippy::wrong_self_convention)]
|
90 |
/// Returns the span's ID as a `NonZeroU64`.
|
192 |
// being constructed "from" the directives, rather than the builder itself.
|
193 |
#[allow(clippy::wrong_self_convention)]
|
194 |
pub(super) fn from_directives(
|
221 |
#[inline]
|
222 |
#[allow(clippy::wrong_self_convention)]
|
223 |
pub fn to_sexp(&self) -> Cow<str> {
|
543 |
#[inline]
|
544 |
#[allow(clippy::wrong_self_convention)]
|
545 |
pub fn to_sexp(&self) -> Cow<str> {
|
221 |
#[inline]
|
222 |
#[allow(clippy::wrong_self_convention)]
|
223 |
pub fn to_sexp(&self) -> Cow<str> {
|
545 |
#[inline]
|
546 |
#[allow(clippy::wrong_self_convention)]
|
547 |
pub fn to_sexp(&self) -> Cow<str> {
|
176 |
// we get the field called 'from' as muttable
|
177 |
#[allow(clippy::wrong_self_convention)]
|
178 |
pub(crate) fn from_mut(&mut self) -> &mut DeployEndpoint {
|
562 |
// LALRPOP requires a means to convert spanned tokens to triple form
|
563 |
#[allow(clippy::wrong_self_convention)]
|
564 |
impl<'input> __ToTriple<'input> for Spanned<'input> {
|
761 |
/// subscription.
|
762 |
#[allow(clippy::wrong_self_convention)]
|
763 |
pub fn from_pattern(&self) -> bool {
|
67 |
/// This is an empty type, enable Ring or OpenSSL for this feature
|
68 |
#[allow(clippy::wrong_self_convention)]
|
69 |
pub fn to_owned(&self) -> Vec<u8> {
|
898 |
trait LabelEnc {
|
899 |
#[allow(clippy::wrong_self_convention)]
|
900 |
fn to_label(name: &str) -> ProtoResult<Label>;
|
905 |
impl LabelEnc for LabelEncAscii {
|
906 |
#[allow(clippy::wrong_self_convention)]
|
907 |
fn to_label(name: &str) -> ProtoResult<Label> {
|
917 |
impl LabelEnc for LabelEncUtf8 {
|
918 |
#[allow(clippy::wrong_self_convention)]
|
919 |
fn to_label(name: &str) -> ProtoResult<Label> {
|
438 |
#[allow(clippy::wrong_self_convention)]
|
439 |
fn to_file_content(
|
65 |
/// Return raw scaled value if it fits within u128
|
66 |
#[allow(clippy::wrong_self_convention)]
|
67 |
pub fn to_scaled_val(&self) -> Result<u128, ProgramError> {
|
76 |
/// Return raw scaled value
|
77 |
#[allow(clippy::wrong_self_convention)]
|
78 |
pub fn to_scaled_val(&self) -> u128 {
|
20 |
/// Helper trait to convert things into IPv4 addresses.
|
21 |
#[allow(clippy::wrong_self_convention)]
|
22 |
pub trait IntoAddress {
|
102 |
/// ```
|
103 |
#[allow(clippy::wrong_self_convention)] // Would require a breaking change. Fix when appropriate.
|
104 |
pub fn to_raw_message(&self) -> [u8; 3] {
|
56 |
#[must_use]
|
57 |
#[allow(clippy::wrong_self_convention)]
|
58 |
fn from_vecu8(bytes: Vec<u8>) -> Self;
|
96 |
#[inline]
|
97 |
#[allow(clippy::wrong_self_convention)] // ya, well, we need it mut
|
98 |
pub fn len(&mut self) -> Result<usize> {
|
102 |
#[inline]
|
103 |
#[allow(clippy::wrong_self_convention)] // ya, well, we need it mut
|
104 |
pub fn to_vec(&mut self) -> Result<Vec<u8>> {
|
108 |
#[inline]
|
109 |
#[allow(clippy::wrong_self_convention)] // ya, well, we need it mut
|
110 |
pub fn to_json<D>(&mut self) -> Result<D>
|
35 |
/// Into trait.
|
36 |
#[allow(clippy::wrong_self_convention)]
|
37 |
pub fn into_trait() -> Path {
|
535 |
// a less ambiguous name`
|
536 |
#[cfg_attr(feature = "cargo-clippy", allow(wrong_self_convention))]
|
537 |
/// Determine whether the current cursor location is a grapheme cluster boundary.
|
117 |
/// after the first are very cheap because the returned value is cached.
|
118 |
#[allow(clippy::wrong_self_convention)]
|
119 |
pub(crate) fn to_ffi_custom_metadata(&mut self) -> ulksys::UplinkCustomMetadata {
|
27 |
/// reference.
|
28 |
#[allow(clippy::wrong_self_convention)]
|
29 |
pub(crate) fn to_ffi_commit_upload_options(&mut self) -> ulksys::UplinkCommitUploadOptions {
|
363 |
impl ErrorKind {
|
364 |
#[allow(clippy::wrong_self_convention)]
|
365 |
#[allow(clippy::new_ret_no_self)]
|
126 |
pub trait FileExtTail {
|
127 |
#[allow(clippy::wrong_self_convention)]
|
128 |
fn is_seekable(&mut self, current_offset: u64) -> bool;
|
27 |
// Borrowing mutably to be aligned with Windows implementation
|
28 |
#[allow(clippy::wrong_self_convention)]
|
29 |
pub fn is_dead(&mut self) -> bool {
|
32 |
#[allow(clippy::wrong_self_convention)]
|
33 |
pub fn is_dead(&mut self) -> bool {
|
110 |
#[inline]
|
111 |
#[allow(clippy::wrong_self_convention)]
|
112 |
fn to_asm_stride(in_stride: usize) -> isize {
|
530 |
#[allow(clippy::wrong_self_convention)]
|
531 |
pub unsafe fn to_embedder<E>(self, field: &F) -> &E {
|
537 |
#[allow(clippy::wrong_self_convention)]
|
538 |
pub unsafe fn to_embedder_mut<E>(self, field: &mut F) -> &mut E {
|
655 |
#[allow(clippy::wrong_self_convention)]
|
656 |
fn to_upgraded(&mut self);
|
197 |
/// Get the trio
|
198 |
#[allow(clippy::wrong_self_convention)]
|
199 |
fn into_trio(self) -> (Self::Item, Self::Item, Self::Item);
|
613 |
/// Build trailer-only response by 'grpc-status' 'grpc-message' 'grpc-status-details-bin'
|
614 |
#[allow(clippy::wrong_self_convention)]
|
615 |
pub fn to_http(self) -> http::Response<Body> {
|
450 |
#[cfg(feature = "std")]
|
451 |
#[allow(clippy::wrong_self_convention)]
|
452 |
impl<Trait: ?Sized + 'static> ThinBox<Trait> {
|
378 |
#[allow(clippy::wrong_self_convention)]
|
379 |
pub fn to_download_state(mut self) -> Result<DownloadState> {
|
411 |
impl<'a, W: Registers> PktDe<'a, W> {
|
412 |
#[allow(clippy::wrong_self_convention)]
|
413 |
pub fn is_bootreply(&mut self) -> Result<bool, Error<W::Error>> {
|
254 |
/// [Closing]: w5500_ll::SocketStatus::Closing
|
255 |
#[allow(clippy::wrong_self_convention)]
|
256 |
fn is_state_closed(&mut self, sn: Sn) -> Result<bool, Self::Error> {
|
304 |
/// [LastAck]: w5500_ll::SocketStatus::LastAck
|
305 |
#[allow(clippy::wrong_self_convention)]
|
306 |
fn is_state_tcp(&mut self, sn: Sn) -> Result<bool, Self::Error> {
|
342 |
/// [Udp]: w5500_ll::SocketStatus::Udp
|
343 |
#[allow(clippy::wrong_self_convention)]
|
344 |
fn is_state_udp(&mut self, sn: Sn) -> Result<bool, Self::Error> {
|
276 |
#[allow(clippy::wrong_self_convention)]
|
277 |
pub fn to_bytes(&self) -> [u8; 32] {
|
436 |
#[allow(clippy::wrong_self_convention)]
|
437 |
pub fn to_bytes(&self) -> [u8; 64] {
|
559 |
#[allow(clippy::wrong_self_convention)]
|
560 |
pub fn to_bytes(&self) -> [u8; 32] {
|
81 |
#[allow(clippy::wrong_self_convention)]
|
82 |
pub fn as_bytes(&self) -> &[u8; 32] {
|
86 |
#[allow(clippy::wrong_self_convention)]
|
87 |
pub fn to_bytes(&self) -> [u8; 32] {
|
174 |
#[allow(clippy::wrong_self_convention)]
|
175 |
pub fn to_bytes(&self) -> [u8; 32] {
|
75 |
}
|
76 |
#[allow(clippy::wrong_self_convention)]
|
77 |
pub trait IntoAbiToken {
|
83 |
// -- The lint is allowed because fixing it would be a breaking change --
|
84 |
#[allow(clippy::wrong_self_convention)]
|
85 |
fn as_raw_c_in<F, T>(self, f: F) -> T
|
112 |
/// The host as string. Consumes self.
|
113 |
#[allow(clippy::wrong_self_convention)]
|
114 |
pub fn as_string(self) -> String {
|
61 |
#[allow(clippy::too_many_arguments)]
|
62 |
#[allow(clippy::wrong_self_convention)]
|
63 |
mod auto;
|
122 |
// TODO: change this to match conventions
|
123 |
#[allow(clippy::wrong_self_convention)]
|
124 |
/// Convert a ping message to a pong, keeping the data.
|
33 |
impl WeechatVariable {
|
34 |
#[allow(clippy::wrong_self_convention)]
|
35 |
fn to_pair(string: &LitStr) -> (usize, Literal) {
|
50 |
// TODO: Remove once we bump MSRV to a newer clippy
|
51 |
#[allow(clippy::wrong_self_convention)]
|
52 |
pub fn into_bytes(self: Box<Self>) -> Box<[u8]> {
|
58 |
/// Returns `true` if reader has reached the end of the data, `false` otherwise.
|
59 |
#[allow(clippy::wrong_self_convention)]
|
60 |
fn is_done(&mut self) -> io::Result<bool>;
|
84 |
// must be done.
|
85 |
#[allow(clippy::wrong_self_convention)]
|
86 |
pub fn to_kind(self) -> ExprKind {
|
108 |
/// Create a heterogeneous list of mutable references
|
109 |
#[allow(clippy::wrong_self_convention)]
|
110 |
fn to_mut(self) -> Self::Target;
|
50 |
fn deprecation_warning(msg: &str);
|
51 |
#[allow(clippy::wrong_self_convention)]
|
52 |
fn as_json<T>(value: &T)
|
84 |
/// Decoding is lossy, like `String::from_utf8_lossy`.
|
85 |
#[allow(clippy::wrong_self_convention)]
|
86 |
pub fn from_utf8(self) -> Utf8LossyDecoder<Self> {
|
308 |
#[allow(clippy::wrong_self_convention)]
|
309 |
/// Wrap `self` in `run_command`
|
114 |
/// [`Parser`], via the given .tokens
|
115 |
#[allow(clippy::wrong_self_convention)]
|
116 |
pub fn into_iter<'a, 'b, 'de, T>(
|
273 |
#[allow(clippy::wrong_self_convention)]
|
274 |
pub(crate) fn to_typed_value(self) -> YdbResult<ydb_proto::TypedValue> {
|
1287 |
#[cfg(feature = "serde-json")]
|
1288 |
#[allow(clippy::wrong_self_convention)]
|
1289 |
#[inline]
|
82 |
/// Converts to byte representation.
|
83 |
#[allow(clippy::wrong_self_convention)]
|
84 |
fn to_bytes(data: &Self::NodeData) -> Vec<u8> {
|
102 |
fn empty(self) -> Result<Request<EmptyBody>, HttpError>;
|
103 |
#[allow(clippy::wrong_self_convention)]
|
104 |
fn from_mem<B: AsRef<[u8]>>(self, body: B) -> Result<Request<MemBody<B>>, HttpError>;
|
105 |
#[allow(clippy::wrong_self_convention)]
|
106 |
fn from_io<B: Seek + Read>(self, body: B) -> Result<Request<IoBody<B>>, HttpError>;
|
87 |
#[inline]
|
88 |
#[allow(clippy::wrong_self_convention)]
|
89 |
pub(crate) const unsafe fn from_common_header(self, ptr: *mut GcHeader) -> *mut H {
|
148 |
#[inline]
|
149 |
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/7219
|
150 |
fn as_byte_slice(slice: &[Self]) -> &[u8] {
|
9 |
/// Generally allocations will be avoided if all data falls into the ASCII range.
|
10 |
#[allow(clippy::wrong_self_convention)]
|
11 |
fn from_cp437(self) -> Self::Target;
|
13 |
//! - `FlexBreak` from Elixir.
|
14 |
#![allow(clippy::wrong_self_convention)]
|
25 |
clippy::needless_pass_by_value,
|
26 |
clippy::wrong_self_convention,
|
27 |
clippy::must_use_candidate,
|
232 |
clippy::wildcard_imports,
|
233 |
clippy::wrong_self_convention
|
234 |
)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
2 |
use crate::common::utils::from_bytes;
|
3 |
clippy::cognitive_complexity,
|
4 |
clippy::wrong_self_convention
|
5 |
)]
|
7 |
#![allow(clippy::unreadable_literal)]
|
8 |
#![allow(clippy::wrong_self_convention)]
|
9 |
#![deny(missing_docs)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
4 |
#![allow(clippy::large_enum_variant)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::should_implement_trait)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::many_single_char_names)]
|
7 |
#![allow(clippy::wrong_self_convention)]
|
4 |
#![allow(clippy::missing_safety_doc)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![allow(clippy::non_send_fields_in_send_ty)]
|
4 |
#![allow(clippy::missing_safety_doc)]
|
5 |
#![allow(clippy::wrong_self_convention)]
|
6 |
#![doc = include_str!("../README.md")]
|
15 |
#![allow(clippy::type_complexity)] // there's an exceptionally complex type
|
16 |
#![allow(clippy::wrong_self_convention)] // perhaps Rc should be special cased in Clippy?
|
10 |
clippy::new_ret_no_self,
|
11 |
clippy::wrong_self_convention
|
12 |
)]
|
1 |
//! Redis commands
|
2 |
#![allow(non_snake_case, clippy::wrong_self_convention)]
|
364 |
// All The methods that take self by value are for small Copy types
|
365 |
#![allow(clippy::wrong_self_convention)]
|
366 |
#![allow(clippy::init_numbered_fields)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
9 |
clippy::missing_const_for_fn,
|
10 |
clippy::wrong_self_convention,
|
11 |
clippy::redundant_feature_names
|
31 |
#![allow(clippy::redundant_field_names)]
|
32 |
#![allow(clippy::wrong_self_convention)]
|
33 |
#![allow(clippy::identity_op)]
|
396 |
clippy::useless_let_if_seq,
|
397 |
clippy::wrong_self_convention
|
398 |
)]
|
79 |
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983
|
80 |
clippy::wrong_self_convention
|
81 |
)]
|
38 |
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983
|
39 |
clippy::wrong_self_convention
|
40 |
)]
|
28 |
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983
|
29 |
clippy::wrong_self_convention
|
30 |
)]
|
28 |
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6983
|
29 |
clippy::wrong_self_convention
|
30 |
)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
14 |
#![allow(clippy::useless_let_if_seq)]
|
15 |
#![allow(clippy::wrong_self_convention)]
|
3 |
#![allow(clippy::large_enum_variant)]
|
4 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::should_implement_trait)]
|
3 |
#![allow(clippy::large_enum_variant)]
|
4 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::should_implement_trait)]
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::wrong_self_convention)]
|
3 |
#![cfg_attr(not(feature = "simd"), no_std)]
|
11 |
#![allow(clippy::wrong_self_convention)]
|
88 |
//! Namespaces need to be registered or the XML generated will be malformed.
|
89 |
#![allow(clippy::wrong_self_convention)]
|
51 |
clippy::cmp_owned,// smaller than pointer, and no allocations anyway
|
52 |
clippy::wrong_self_convention,// smaller than pointer
|
53 |
clippy::needless_range_loop,// the suggested iterator chains are less intuitive
|
2 |
//! This module was derived for ethers-core via <https://github.com/gnosis/ethcontract-rs/>
|
3 |
#![allow(clippy::wrong_self_convention)]
|
4 |
use crate::{
|
358 |
clippy::new_ret_no_self,
|
359 |
clippy::wrong_self_convention
|
360 |
)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
4 |
clippy::type_complexity,
|
5 |
clippy::wrong_self_convention,
|
6 |
clippy::single_match,
|
15 |
*/
|
16 |
#![allow(clippy::wrong_self_convention)]
|
7 |
// https://rust-lang.github.io/api-guidelines/naming.html
|
8 |
#![allow(clippy::wrong_self_convention)]
|
5 |
// https://rust-lang.github.io/api-guidelines/naming.html
|
6 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::upper_case_acronyms)]
|
6 |
#![allow(clippy::wrong_self_convention)]
|
7 |
#![doc = include_str!("../README.md")]
|
257 |
// clippy doesn't like `to_array(&self)`
|
258 |
#![allow(clippy::wrong_self_convention)]
|
259 |
#![cfg_attr(
|
5 |
#![allow(clippy::missing_safety_doc)]
|
6 |
#![allow(clippy::wrong_self_convention)]
|
7 |
#![allow(clippy::non_send_fields_in_send_ty)]
|
111 |
// (Would require API change)
|
112 |
clippy::wrong_self_convention,
|
113 |
)]
|
1 |
#![allow(clippy::len_without_is_empty, clippy::wrong_self_convention)]
|
2 |
mod apply;
|
65 |
clippy::wrong_self_convention,
|
66 |
clippy::items_after_statements,
|
65 |
clippy::wrong_self_convention,
|
66 |
clippy::items_after_statements,
|
5 |
#![allow(clippy::too_many_arguments)]
|
6 |
#![allow(clippy::wrong_self_convention)]
|
7 |
#![doc = include_str!("../README.md")]
|
2 |
#![feature(vec_leak, untagged_unions, const_fn, const_fn_union)]
|
3 |
#![allow(unused_unsafe, clippy::wrong_self_convention, clippy::map_entry)]
|
4 |
clippy::type_complexity,
|
5 |
clippy::wrong_self_convention,
|
6 |
clippy::single_match,
|
41 |
#![allow(clippy::upper_case_acronyms)]
|
42 |
#![allow(clippy::wrong_self_convention)]
|
43 |
#![warn(clippy::cloned_instead_of_copied)]
|
94 |
// it's a backwards compatibility break
|
95 |
#![allow(clippy::wrong_self_convention, clippy::enum_variant_names)]
|
8 |
// Methods have to take `&mut self`
|
9 |
#![allow(clippy::wrong_self_convention)]
|
23 |
clippy::should_implement_trait,
|
24 |
clippy::wrong_self_convention
|
25 |
)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
1 |
#![allow(clippy::new_without_default)]
|
2 |
#![allow(clippy::wrong_self_convention)]
|
3 |
//#![feature(result_cloned)]
|
1 |
//! Redis commands
|
2 |
#![allow(non_snake_case, clippy::wrong_self_convention)]
|
4 |
clippy::new_ret_no_self,
|
5 |
clippy::wrong_self_convention
|
6 |
)]
|
166 |
clippy::identity_op,
|
167 |
clippy::wrong_self_convention,
|
168 |
clippy::non_send_fields_in_send_ty
|
85 |
#![allow(clippy::new_without_default)]
|
86 |
#![allow(clippy::wrong_self_convention)]
|
87 |
#![allow(clippy::type_complexity)]
|
85 |
clippy::inherent_to_string,
|
86 |
clippy::wrong_self_convention,
|
87 |
clippy::derivable_impls,
|
1 |
#![allow(clippy::wrong_self_convention)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
489 |
pub trait FromRaw<T, O> {
|
490 |
#![allow(clippy::wrong_self_convention)]
|
491 |
fn from_raw(&self, raw: T) -> O;
|
143 |
// These clippy lints are somewhat at odds with our use of `new()`.
|
144 |
#![allow(clippy::new_ret_no_self, clippy::wrong_self_convention)]
|
1 |
#![allow(clippy::wrong_self_convention, non_snake_case, clippy::type_complexity)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
1 |
//! Redis commands
|
2 |
#![allow(non_snake_case, clippy::wrong_self_convention)]
|
152 |
clippy::should_implement_trait,
|
153 |
clippy::wrong_self_convention
|
154 |
)]
|
1 |
#![doc = r" Automatically generated code; do not edit!"]
|
2 |
#![allow(clippy::wrong_self_convention, clippy::transmute_ptr_to_ptr)]
|
3 |
use crate::*;
|
1 |
#![allow(clippy::wrong_self_convention)]
|
239 |
clippy::use_self,
|
240 |
clippy::wrong_self_convention,
|
241 |
clippy::from_over_into,
|
1 |
#![allow(clippy::wrong_self_convention)]
|
4 |
clippy::type_complexity,
|
5 |
clippy::wrong_self_convention,
|
6 |
clippy::single_match,
|
17 |
clippy::used_underscore_binding,
|
18 |
clippy::wrong_self_convention,
|
19 |
clippy::zero_ptr
|
17 |
clippy::used_underscore_binding,
|
18 |
clippy::wrong_self_convention,
|
19 |
clippy::zero_ptr
|
90 |
// false positive https://github.com/rust-lang/rust-clippy/issues/6983
|
91 |
clippy::wrong_self_convention,
|
92 |
)]
|
45 |
#![allow(clippy::many_single_char_names)]
|
46 |
#![allow(clippy::wrong_self_convention)]
|
47 |
#![allow(clippy::missing_safety_doc)]
|
63 |
#![allow(clippy::wrong_self_convention)]
|
3 |
#![allow(clippy::large_enum_variant)]
|
4 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::should_implement_trait)]
|
3 |
#![allow(clippy::large_enum_variant)]
|
4 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::should_implement_trait)]
|
3 |
#![allow(clippy::large_enum_variant)]
|
4 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::should_implement_trait)]
|
3 |
#![allow(clippy::large_enum_variant)]
|
4 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::should_implement_trait)]
|
3 |
#![allow(clippy::large_enum_variant)]
|
4 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::should_implement_trait)]
|
3 |
#![allow(clippy::large_enum_variant)]
|
4 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::should_implement_trait)]
|
3 |
#![allow(clippy::large_enum_variant)]
|
4 |
#![allow(clippy::wrong_self_convention)]
|
5 |
#![allow(clippy::should_implement_trait)]
|
1 |
//! Traits for comparing distance between points and units.
|
2 |
#![allow(clippy::wrong_self_convention)]
|
8 |
// for methods like vm.to_str(), not the typical use of 'to' as a method prefix
|
9 |
#![allow(clippy::wrong_self_convention, clippy::implicit_hasher)]
|
10 |
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/master/logo.png")]
|
1 |
#![allow(clippy::wrong_self_convention, clippy::suspicious_arithmetic_impl)]
|
2 |
use std::ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Sub, SubAssign};
|
93 |
// false positive https://github.com/rust-lang/rust-clippy/issues/6983
|
94 |
clippy::wrong_self_convention,
|
95 |
)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
23 |
#![allow(unused_macros)]
|
24 |
#![allow(clippy::wrong_self_convention)]
|
9 |
#![allow(clippy::cognitive_complexity)]
|
10 |
#![allow(clippy::wrong_self_convention)]
|
11 |
#![feature(portable_simd)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
128 |
impl StoreKeyerHasher {
|
129 |
#![allow(clippy::wrong_self_convention)]
|
130 |
pub fn to_compact(part: &str) -> u32 {
|
1 |
#![allow(clippy::wrong_self_convention)]
|
386 |
#![allow(clippy::comparison_to_empty)]
|
387 |
#![allow(clippy::wrong_self_convention)]
|
388 |
#![allow(clippy::comparison_chain)]
|
1 |
// This interface copies `std` one, thus we must discard clippy complains.
|
2 |
#![allow(clippy::wrong_self_convention)]
|
9 |
needless_pass_by_value,
|
10 |
wrong_self_convention,
|
11 |
write_with_newline,
|
26 |
clippy::type_complexity,
|
27 |
clippy::wrong_self_convention,
|
28 |
clippy::must_use_candidate,
|
6 |
#![allow(clippy::nonminimal_bool)]
|
7 |
#![allow(clippy::wrong_self_convention)]
|
124 |
#![allow(clippy::vec_box)]
|
125 |
#![allow(clippy::wrong_self_convention)]
|
126 |
#![allow(clippy::match_like_matches_macro)]
|
5 |
#![allow(clippy::nonminimal_bool)]
|
6 |
#![allow(clippy::wrong_self_convention)]
|
7 |
#![allow(clippy::match_like_matches_macro)]
|
5 |
#![allow(clippy::nonminimal_bool)]
|
6 |
#![allow(clippy::wrong_self_convention)]
|
94 |
#![allow(clippy::used_underscore_binding, clippy::wildcard_imports)]
|
95 |
#![allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/6983
|
96 |
#![cfg_attr(docsrs, feature(doc_cfg))]
|
144 |
clippy::identity_op,
|
145 |
clippy::wrong_self_convention,
|
146 |
clippy::non_send_fields_in_send_ty
|
46 |
#![allow(clippy::wrong_self_convention)]
|
12 |
clippy::too_many_lines,
|
13 |
clippy::wrong_self_convention
|
14 |
)]
|
11 |
clippy::too_many_lines,
|
12 |
clippy::wrong_self_convention
|
13 |
)]
|
12 |
clippy::too_many_lines,
|
13 |
clippy::wrong_self_convention
|
14 |
)]
|
11 |
clippy::too_many_lines,
|
12 |
clippy::wrong_self_convention
|
13 |
)]
|
26 |
#![allow(clippy::too_many_arguments)]
|
27 |
#![allow(clippy::wrong_self_convention)]
|
27 |
#![allow(clippy::upper_case_acronyms)]
|
28 |
#![allow(clippy::wrong_self_convention)]
|
1 |
#![allow(clippy::wrong_self_convention)]
|
230 |
pub fn into_ordered_iter(&self) -> OrderedTimeSeriesIter<TDate,T> { #![allow(clippy::wrong_self_convention)]
|
231 |
OrderedTimeSeriesIter::new(&self, 0)
|
259 |
/// ```
|
260 |
pub fn into_iter(&self) -> TimeSeriesIter<TDate,T> { #![allow(clippy::wrong_self_convention)]
|
261 |
TimeSeriesIter::new(&self, 0)
|
3 |
#![allow(clippy::wrong_self_convention)] // Would require a breaking change. Fix when appropriate.
|
78 |
#![allow(clippy::new_without_default)]
|
79 |
#![allow(clippy::wrong_self_convention)]
|
80 |
#![allow(clippy::type_complexity)]
|
10 |
clippy::new_ret_no_self,
|
11 |
clippy::wrong_self_convention
|
12 |
)]
|
47 |
clippy::should_implement_trait,
|
48 |
clippy::wrong_self_convention,
|
49 |
clippy::manual_map,
|
17 |
#![allow(clippy::type_complexity)] // there's an exceptionally complex type
|
18 |
#![allow(clippy::wrong_self_convention)] // perhaps `Rc` should be special-cased in Clippy?
|
19 |
#![allow(clippy::write_with_newline)] // too pedantic
|
80 |
clippy::vec_box,
|
81 |
clippy::wrong_self_convention
|
82 |
)]
|
12 |
#![allow(clippy::wrong_self_convention, clippy::useless_transmute)]
|
12 |
#![allow(clippy::wrong_self_convention, clippy::useless_transmute)]
|
4 |
clippy::type_complexity,
|
5 |
clippy::wrong_self_convention,
|
6 |
clippy::single_match,
|
4 |
clippy::type_complexity,
|
5 |
clippy::wrong_self_convention,
|
6 |
clippy::single_match,
|
4 |
clippy::type_complexity,
|
5 |
clippy::wrong_self_convention,
|
6 |
clippy::single_match,
|
77 |
#![allow(clippy::new_without_default)]
|
78 |
#![allow(clippy::wrong_self_convention)]
|
79 |
#![allow(clippy::type_complexity)]
|
23 |
clippy::should_implement_trait,
|
24 |
clippy::wrong_self_convention
|
25 |
)]
|
11 |
#![allow(clippy::wrong_self_convention)]
|
12 |
//! High-level interface to the parser.
|
26 |
clippy::unused_unit,
|
27 |
clippy::wrong_self_convention
|
28 |
)]
|