| 1 | //! Enumeration of all available client commands. |
| 2 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/::FromStrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr#; |
| 3 | |
| 4 | use craterust-analyzer cargo irc-proto 1.1.0 crate/::chanrust-analyzer cargo irc-proto 1.1.0 chan/::ChannelExtrust-analyzer cargo irc-proto 1.1.0 chan/ChannelExt#; |
| 5 | use craterust-analyzer cargo irc-proto 1.1.0 crate/::errorrust-analyzer cargo irc-proto 1.1.0 error/::MessageParseErrorrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#; |
| 6 | use craterust-analyzer cargo irc-proto 1.1.0 crate/::moderust-analyzer cargo irc-proto 1.1.0 mode/::{ChannelModerust-analyzer cargo irc-proto 1.1.0 mode/ChannelMode#, Moderust-analyzer cargo irc-proto 1.1.0 mode/Mode#, UserModerust-analyzer cargo irc-proto 1.1.0 mode/UserMode#}; |
| 7 | use craterust-analyzer cargo irc-proto 1.1.0 crate/::responserust-analyzer cargo irc-proto 1.1.0 response/::Responserust-analyzer cargo irc-proto 1.1.0 response/Response#; |
| 8 | |
| 9 | /// List of all client commands as defined in [RFC 2812](http://tools.ietf.org/html/rfc2812). This |
| 10 | /// also includes commands from the |
| 11 | /// [capabilities extension](https://tools.ietf.org/html/draft-mitchell-irc-capabilities-01). |
| 12 | /// Additionally, this includes some common additional commands from popular IRCds. |
| 13 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 14 | pub enum Commandrust-analyzer cargo irc-proto 1.1.0 command/Command# { |
| 15 | // 3.1 Connection Registration |
| 16 | /// PASS :password |
| 17 | PASSrust-analyzer cargo irc-proto 1.1.0 command/Command#PASS#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 18 | /// NICK :nickname |
| 19 | NICKrust-analyzer cargo irc-proto 1.1.0 command/Command#NICK#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 20 | /// USER user mode * :realname |
| 21 | USERrust-analyzer cargo irc-proto 1.1.0 command/Command#USER#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 22 | /// OPER name :password |
| 23 | OPERrust-analyzer cargo irc-proto 1.1.0 command/Command#OPER#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 24 | /// MODE nickname modes |
| 25 | UserMODErust-analyzer cargo irc-proto 1.1.0 command/Command#UserMODE#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Moderust-analyzer cargo irc-proto 1.1.0 mode/Mode#<UserModerust-analyzer cargo irc-proto 1.1.0 mode/UserMode#>>), |
| 26 | /// SERVICE nickname reserved distribution type reserved :info |
| 27 | SERVICErust-analyzer cargo irc-proto 1.1.0 command/Command#SERVICE#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 28 | /// QUIT :comment |
| 29 | QUITrust-analyzer cargo irc-proto 1.1.0 command/Command#QUIT#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 30 | /// SQUIT server :comment |
| 31 | SQUITrust-analyzer cargo irc-proto 1.1.0 command/Command#SQUIT#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 32 | |
| 33 | // 3.2 Channel operations |
| 34 | /// JOIN chanlist [chankeys] :[Real name] |
| 35 | JOINrust-analyzer cargo irc-proto 1.1.0 command/Command#JOIN#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 36 | /// PART chanlist :[comment] |
| 37 | PARTrust-analyzer cargo irc-proto 1.1.0 command/Command#PART#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 38 | /// MODE channel [modes [modeparams]] |
| 39 | ChannelMODErust-analyzer cargo irc-proto 1.1.0 command/Command#ChannelMODE#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Moderust-analyzer cargo irc-proto 1.1.0 mode/Mode#<ChannelModerust-analyzer cargo irc-proto 1.1.0 mode/ChannelMode#>>), |
| 40 | /// TOPIC channel :[topic] |
| 41 | TOPICrust-analyzer cargo irc-proto 1.1.0 command/Command#TOPIC#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 42 | /// NAMES [chanlist :[target]] |
| 43 | NAMESrust-analyzer cargo irc-proto 1.1.0 command/Command#NAMES#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 44 | /// LIST [chanlist :[target]] |
| 45 | LISTrust-analyzer cargo irc-proto 1.1.0 command/Command#LIST#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 46 | /// INVITE nickname channel |
| 47 | INVITErust-analyzer cargo irc-proto 1.1.0 command/Command#INVITE#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 48 | /// KICK chanlist userlist :[comment] |
| 49 | KICKrust-analyzer cargo irc-proto 1.1.0 command/Command#KICK#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 50 | |
| 51 | // 3.3 Sending messages |
| 52 | /// PRIVMSG msgtarget :message |
| 53 | /// |
| 54 | /// ## Responding to a `PRIVMSG` |
| 55 | /// |
| 56 | /// When responding to a message, it is not sufficient to simply copy the message target |
| 57 | /// (msgtarget). This will work just fine for responding to messages in channels where the |
| 58 | /// target is the same for all participants. However, when the message is sent directly to a |
| 59 | /// user, this target will be that client's username, and responding to that same target will |
| 60 | /// actually mean sending itself a response. In such a case, you should instead respond to the |
| 61 | /// user sending the message as specified in the message prefix. Since this is a common |
| 62 | /// pattern, there is a utility function |
| 63 | /// [`Message::response_target`] |
| 64 | /// which is used for this exact purpose. |
| 65 | PRIVMSGrust-analyzer cargo irc-proto 1.1.0 command/Command#PRIVMSG#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 66 | /// NOTICE msgtarget :message |
| 67 | /// |
| 68 | /// ## Responding to a `NOTICE` |
| 69 | /// |
| 70 | /// When responding to a notice, it is not sufficient to simply copy the message target |
| 71 | /// (msgtarget). This will work just fine for responding to messages in channels where the |
| 72 | /// target is the same for all participants. However, when the message is sent directly to a |
| 73 | /// user, this target will be that client's username, and responding to that same target will |
| 74 | /// actually mean sending itself a response. In such a case, you should instead respond to the |
| 75 | /// user sending the message as specified in the message prefix. Since this is a common |
| 76 | /// pattern, there is a utility function |
| 77 | /// [`Message::response_target`] |
| 78 | /// which is used for this exact purpose. |
| 79 | NOTICErust-analyzer cargo irc-proto 1.1.0 command/Command#NOTICE#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 80 | |
| 81 | // 3.4 Server queries and commands |
| 82 | /// MOTD :[target] |
| 83 | MOTDrust-analyzer cargo irc-proto 1.1.0 command/Command#MOTD#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 84 | /// LUSERS [mask :[target]] |
| 85 | LUSERSrust-analyzer cargo irc-proto 1.1.0 command/Command#LUSERS#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 86 | /// VERSION :[target] |
| 87 | VERSIONrust-analyzer cargo irc-proto 1.1.0 command/Command#VERSION#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 88 | /// STATS [query :[target]] |
| 89 | STATSrust-analyzer cargo irc-proto 1.1.0 command/Command#STATS#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 90 | /// LINKS [[remote server] server :mask] |
| 91 | LINKSrust-analyzer cargo irc-proto 1.1.0 command/Command#LINKS#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 92 | /// TIME :[target] |
| 93 | TIMErust-analyzer cargo irc-proto 1.1.0 command/Command#TIME#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 94 | /// CONNECT target server port :[remote server] |
| 95 | CONNECTrust-analyzer cargo irc-proto 1.1.0 command/Command#CONNECT#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 96 | /// TRACE :[target] |
| 97 | TRACErust-analyzer cargo irc-proto 1.1.0 command/Command#TRACE#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 98 | /// ADMIN :[target] |
| 99 | ADMINrust-analyzer cargo irc-proto 1.1.0 command/Command#ADMIN#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 100 | /// INFO :[target] |
| 101 | INFOrust-analyzer cargo irc-proto 1.1.0 command/Command#INFO#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 102 | |
| 103 | // 3.5 Service Query and Commands |
| 104 | /// SERVLIST [mask :[type]] |
| 105 | SERVLISTrust-analyzer cargo irc-proto 1.1.0 command/Command#SERVLIST#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 106 | /// SQUERY servicename text |
| 107 | SQUERYrust-analyzer cargo irc-proto 1.1.0 command/Command#SQUERY#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 108 | |
| 109 | // 3.6 User based queries |
| 110 | /// WHO [mask ["o"]] |
| 111 | WHOrust-analyzer cargo irc-proto 1.1.0 command/Command#WHO#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<bool>), |
| 112 | /// WHOIS [target] masklist |
| 113 | WHOISrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOIS#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 114 | /// WHOWAS nicklist [count :[target]] |
| 115 | WHOWASrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOWAS#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 116 | |
| 117 | // 3.7 Miscellaneous messages |
| 118 | /// KILL nickname :comment |
| 119 | KILLrust-analyzer cargo irc-proto 1.1.0 command/Command#KILL#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 120 | /// PING server1 :[server2] |
| 121 | PINGrust-analyzer cargo irc-proto 1.1.0 command/Command#PING#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 122 | /// PONG server :[server2] |
| 123 | PONGrust-analyzer cargo irc-proto 1.1.0 command/Command#PONG#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 124 | /// ERROR :message |
| 125 | ERRORrust-analyzer cargo irc-proto 1.1.0 command/Command#ERROR#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 126 | |
| 127 | // 4 Optional Features |
| 128 | /// AWAY :[message] |
| 129 | AWAYrust-analyzer cargo irc-proto 1.1.0 command/Command#AWAY#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 130 | /// REHASH |
| 131 | REHASHrust-analyzer cargo irc-proto 1.1.0 command/Command#REHASH#, |
| 132 | /// DIE |
| 133 | DIErust-analyzer cargo irc-proto 1.1.0 command/Command#DIE#, |
| 134 | /// RESTART |
| 135 | RESTARTrust-analyzer cargo irc-proto 1.1.0 command/Command#RESTART#, |
| 136 | /// SUMMON user [target :[channel]] |
| 137 | SUMMONrust-analyzer cargo irc-proto 1.1.0 command/Command#SUMMON#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 138 | /// USERS :[target] |
| 139 | USERSrust-analyzer cargo irc-proto 1.1.0 command/Command#USERS#(Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 140 | /// WALLOPS :Text to be sent |
| 141 | WALLOPSrust-analyzer cargo irc-proto 1.1.0 command/Command#WALLOPS#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 142 | /// USERHOST space-separated nicklist |
| 143 | USERHOSTrust-analyzer cargo irc-proto 1.1.0 command/Command#USERHOST#(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 144 | /// ISON space-separated nicklist |
| 145 | ISONrust-analyzer cargo irc-proto 1.1.0 command/Command#ISON#(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 146 | |
| 147 | // Non-RFC commands from InspIRCd |
| 148 | /// SAJOIN nickname channel |
| 149 | SAJOINrust-analyzer cargo irc-proto 1.1.0 command/Command#SAJOIN#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 150 | /// SAMODE target modes [modeparams] |
| 151 | SAMODErust-analyzer cargo irc-proto 1.1.0 command/Command#SAMODE#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 152 | /// SANICK old nickname new nickname |
| 153 | SANICKrust-analyzer cargo irc-proto 1.1.0 command/Command#SANICK#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 154 | /// SAPART nickname :comment |
| 155 | SAPARTrust-analyzer cargo irc-proto 1.1.0 command/Command#SAPART#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 156 | /// SAQUIT nickname :comment |
| 157 | SAQUITrust-analyzer cargo irc-proto 1.1.0 command/Command#SAQUIT#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 158 | /// NICKSERV message |
| 159 | NICKSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#NICKSERV#(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 160 | /// CHANSERV message |
| 161 | CHANSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#CHANSERV#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 162 | /// OPERSERV message |
| 163 | OPERSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#OPERSERV#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 164 | /// BOTSERV message |
| 165 | BOTSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#BOTSERV#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 166 | /// HOSTSERV message |
| 167 | HOSTSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#HOSTSERV#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 168 | /// MEMOSERV message |
| 169 | MEMOSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#MEMOSERV#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 170 | |
| 171 | // IRCv3 support |
| 172 | /// CAP [*] COMMAND [*] :[param] |
| 173 | CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#( |
| 174 | Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, |
| 175 | CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#, |
| 176 | Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, |
| 177 | Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>, |
| 178 | ), |
| 179 | |
| 180 | // IRCv3.1 extensions |
| 181 | /// AUTHENTICATE data |
| 182 | AUTHENTICATErust-analyzer cargo irc-proto 1.1.0 command/Command#AUTHENTICATE#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 183 | /// ACCOUNT [account name] |
| 184 | ACCOUNTrust-analyzer cargo irc-proto 1.1.0 command/Command#ACCOUNT#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 185 | // AWAY is already defined as a send-only message. |
| 186 | // AWAY(Option<String>), |
| 187 | // JOIN is already defined. |
| 188 | // JOIN(String, Option<String>, Option<String>), |
| 189 | |
| 190 | // IRCv3.2 extensions |
| 191 | /// METADATA target COMMAND [params] :[param] |
| 192 | METADATArust-analyzer cargo irc-proto 1.1.0 command/Command#METADATA#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>), |
| 193 | /// MONITOR command [nicklist] |
| 194 | MONITORrust-analyzer cargo irc-proto 1.1.0 command/Command#MONITOR#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 195 | /// BATCH (+/-)reference-tag [type [params]] |
| 196 | BATCHrust-analyzer cargo irc-proto 1.1.0 command/Command#BATCH#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#>, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>>), |
| 197 | /// CHGHOST user host |
| 198 | CHGHOSTrust-analyzer cargo irc-proto 1.1.0 command/Command#CHGHOST#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 199 | |
| 200 | // Default option. |
| 201 | /// An IRC response code with arguments and optional suffix. |
| 202 | Responserust-analyzer cargo irc-proto 1.1.0 command/Command#Response#(Responserust-analyzer cargo irc-proto 1.1.0 response/Response#, Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 203 | /// A raw IRC command unknown to the crate. |
| 204 | Rawrust-analyzer cargo irc-proto 1.1.0 command/Command#Raw#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>), |
| 205 | } |
| 206 | |
| 207 | fn stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().(cmd: &str, args: &[&str]) -> Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String# { |
| 208 | match args.split_lastrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]split_last().() { |
| 209 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#((suffix, args)) => { |
| 210 | let args = args.joinrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/impl#[`[T]`]join().(" "); |
| 211 | let sp = if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]is_empty().() { "" } else { " " }; |
| 212 | let co = if suffix.is_emptyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]is_empty().() || suffix.containsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]contains().(' ') || suffix.starts_withrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]starts_with().(':') { |
| 213 | ":" |
| 214 | } else { |
| 215 | "" |
| 216 | }; |
| 217 | formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("{}{}{} {}{}", cmd, sp, args, co, suffix) |
| 218 | } |
| 219 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => cmd.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | impl<'a> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<&'a Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#> for Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String# { |
| 224 | fn fromrust-analyzer cargo irc-proto 1.1.0 command/impl#[String][`From<&'a Command>`]from().(cmd: &'a Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#) -> Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String# { |
| 225 | match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().cmd { |
| 226 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PASSrust-analyzer cargo irc-proto 1.1.0 command/Command#PASS#(ref p) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("PASS", &[p]), |
| 227 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NICKrust-analyzer cargo irc-proto 1.1.0 command/Command#NICK#(ref n) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("NICK", &[n]), |
| 228 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERrust-analyzer cargo irc-proto 1.1.0 command/Command#USER#(ref u, ref m, ref r) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("USER", &[u, m, "*", r]), |
| 229 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::OPERrust-analyzer cargo irc-proto 1.1.0 command/Command#OPER#(ref u, ref p) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("OPER", &[u, p]), |
| 230 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::UserMODErust-analyzer cargo irc-proto 1.1.0 command/Command#UserMODE#(ref u, ref m) => { |
| 231 | // User modes never have arguments. |
| 232 | m.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`Iter<'a, T>`][Iterator]fold().(formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("MODE {u} "), |mut acc, m| { |
| 233 | acc.push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(&m.flagrust-analyzer cargo irc-proto 1.1.0 mode/impl#[`Mode<T>`]flag().()); |
| 234 | acc |
| 235 | }) |
| 236 | } |
| 237 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SERVICErust-analyzer cargo irc-proto 1.1.0 command/Command#SERVICE#(ref nick, ref r0, ref dist, ref typ, ref r1, ref info) => { |
| 238 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SERVICE", &[nick, r0, dist, typ, r1, info]) |
| 239 | } |
| 240 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::QUITrust-analyzer cargo irc-proto 1.1.0 command/Command#QUIT#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref m)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("QUIT", &[m]), |
| 241 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::QUITrust-analyzer cargo irc-proto 1.1.0 command/Command#QUIT#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("QUIT", &[]), |
| 242 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SQUITrust-analyzer cargo irc-proto 1.1.0 command/Command#SQUIT#(ref s, ref c) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SQUIT", &[s, c]), |
| 243 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::JOINrust-analyzer cargo irc-proto 1.1.0 command/Command#JOIN#(ref c, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref k), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref n)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("JOIN", &[c, k, n]), |
| 244 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::JOINrust-analyzer cargo irc-proto 1.1.0 command/Command#JOIN#(ref c, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref k), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("JOIN", &[c, k]), |
| 245 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::JOINrust-analyzer cargo irc-proto 1.1.0 command/Command#JOIN#(ref c, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref n)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("JOIN", &[c, n]), |
| 246 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::JOINrust-analyzer cargo irc-proto 1.1.0 command/Command#JOIN#(ref c, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("JOIN", &[c]), |
| 247 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PARTrust-analyzer cargo irc-proto 1.1.0 command/Command#PART#(ref c, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref m)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("PART", &[c, m]), |
| 248 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PARTrust-analyzer cargo irc-proto 1.1.0 command/Command#PART#(ref c, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("PART", &[c]), |
| 249 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ChannelMODErust-analyzer cargo irc-proto 1.1.0 command/Command#ChannelMODE#(ref c, ref m) => { |
| 250 | let cmd = m.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/iter/impl#[`Iter<'a, T>`][Iterator]fold().(formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("MODE {c} "), |mut acc, m| { |
| 251 | acc.push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(&m.flagrust-analyzer cargo irc-proto 1.1.0 mode/impl#[`Mode<T>`]flag().()); |
| 252 | acc |
| 253 | }); |
| 254 | m.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().filter_maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#filter_map().(|m| m.argrust-analyzer cargo irc-proto 1.1.0 mode/impl#[`Mode<T>`]arg().()).foldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/adapters/filter_map/impl#[`FilterMap<I, F>`][Iterator]fold().(cmd, |mut acc, arg| { |
| 255 | acc.pushrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push().(' '); |
| 256 | acc.push_strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[String]push_str().(arg); |
| 257 | acc |
| 258 | }) |
| 259 | } |
| 260 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TOPICrust-analyzer cargo irc-proto 1.1.0 command/Command#TOPIC#(ref c, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("TOPIC", &[c, t]), |
| 261 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TOPICrust-analyzer cargo irc-proto 1.1.0 command/Command#TOPIC#(ref c, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("TOPIC", &[c]), |
| 262 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NAMESrust-analyzer cargo irc-proto 1.1.0 command/Command#NAMES#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("NAMES", &[c, t]), |
| 263 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NAMESrust-analyzer cargo irc-proto 1.1.0 command/Command#NAMES#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("NAMES", &[c]), |
| 264 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NAMESrust-analyzer cargo irc-proto 1.1.0 command/Command#NAMES#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("NAMES", &[]), |
| 265 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LISTrust-analyzer cargo irc-proto 1.1.0 command/Command#LIST#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("LIST", &[c, t]), |
| 266 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LISTrust-analyzer cargo irc-proto 1.1.0 command/Command#LIST#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("LIST", &[c]), |
| 267 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LISTrust-analyzer cargo irc-proto 1.1.0 command/Command#LIST#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("LIST", &[]), |
| 268 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::INVITErust-analyzer cargo irc-proto 1.1.0 command/Command#INVITE#(ref n, ref c) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("INVITE", &[n, c]), |
| 269 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::KICKrust-analyzer cargo irc-proto 1.1.0 command/Command#KICK#(ref c, ref n, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref r)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("KICK", &[c, n, r]), |
| 270 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::KICKrust-analyzer cargo irc-proto 1.1.0 command/Command#KICK#(ref c, ref n, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("KICK", &[c, n]), |
| 271 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PRIVMSGrust-analyzer cargo irc-proto 1.1.0 command/Command#PRIVMSG#(ref t, ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("PRIVMSG", &[t, m]), |
| 272 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NOTICErust-analyzer cargo irc-proto 1.1.0 command/Command#NOTICE#(ref t, ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("NOTICE", &[t, m]), |
| 273 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MOTDrust-analyzer cargo irc-proto 1.1.0 command/Command#MOTD#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("MOTD", &[t]), |
| 274 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MOTDrust-analyzer cargo irc-proto 1.1.0 command/Command#MOTD#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("MOTD", &[]), |
| 275 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LUSERSrust-analyzer cargo irc-proto 1.1.0 command/Command#LUSERS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref m), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("LUSERS", &[m, t]), |
| 276 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LUSERSrust-analyzer cargo irc-proto 1.1.0 command/Command#LUSERS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref m), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("LUSERS", &[m]), |
| 277 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LUSERSrust-analyzer cargo irc-proto 1.1.0 command/Command#LUSERS#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("LUSERS", &[]), |
| 278 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::VERSIONrust-analyzer cargo irc-proto 1.1.0 command/Command#VERSION#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("VERSION", &[t]), |
| 279 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::VERSIONrust-analyzer cargo irc-proto 1.1.0 command/Command#VERSION#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("VERSION", &[]), |
| 280 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::STATSrust-analyzer cargo irc-proto 1.1.0 command/Command#STATS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref q), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("STATS", &[q, t]), |
| 281 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::STATSrust-analyzer cargo irc-proto 1.1.0 command/Command#STATS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref q), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("STATS", &[q]), |
| 282 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::STATSrust-analyzer cargo irc-proto 1.1.0 command/Command#STATS#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("STATS", &[]), |
| 283 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LINKSrust-analyzer cargo irc-proto 1.1.0 command/Command#LINKS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref r), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref s)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("LINKS", &[r, s]), |
| 284 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LINKSrust-analyzer cargo irc-proto 1.1.0 command/Command#LINKS#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref s)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("LINKS", &[s]), |
| 285 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LINKSrust-analyzer cargo irc-proto 1.1.0 command/Command#LINKS#(_, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("LINKS", &[]), |
| 286 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TIMErust-analyzer cargo irc-proto 1.1.0 command/Command#TIME#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("TIME", &[t]), |
| 287 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TIMErust-analyzer cargo irc-proto 1.1.0 command/Command#TIME#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("TIME", &[]), |
| 288 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CONNECTrust-analyzer cargo irc-proto 1.1.0 command/Command#CONNECT#(ref t, ref p, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref r)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CONNECT", &[t, p, r]), |
| 289 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CONNECTrust-analyzer cargo irc-proto 1.1.0 command/Command#CONNECT#(ref t, ref p, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CONNECT", &[t, p]), |
| 290 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TRACErust-analyzer cargo irc-proto 1.1.0 command/Command#TRACE#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("TRACE", &[t]), |
| 291 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TRACErust-analyzer cargo irc-proto 1.1.0 command/Command#TRACE#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("TRACE", &[]), |
| 292 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ADMINrust-analyzer cargo irc-proto 1.1.0 command/Command#ADMIN#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("ADMIN", &[t]), |
| 293 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ADMINrust-analyzer cargo irc-proto 1.1.0 command/Command#ADMIN#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("ADMIN", &[]), |
| 294 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::INFOrust-analyzer cargo irc-proto 1.1.0 command/Command#INFO#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("INFO", &[t]), |
| 295 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::INFOrust-analyzer cargo irc-proto 1.1.0 command/Command#INFO#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("INFO", &[]), |
| 296 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SERVLISTrust-analyzer cargo irc-proto 1.1.0 command/Command#SERVLIST#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref m), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SERVLIST", &[m, t]), |
| 297 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SERVLISTrust-analyzer cargo irc-proto 1.1.0 command/Command#SERVLIST#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref m), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SERVLIST", &[m]), |
| 298 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SERVLISTrust-analyzer cargo irc-proto 1.1.0 command/Command#SERVLIST#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SERVLIST", &[]), |
| 299 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SQUERYrust-analyzer cargo irc-proto 1.1.0 command/Command#SQUERY#(ref s, ref t) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SQUERY", &[s, t]), |
| 300 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOrust-analyzer cargo irc-proto 1.1.0 command/Command#WHO#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref s), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(true)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("WHO", &[s, "o"]), |
| 301 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOrust-analyzer cargo irc-proto 1.1.0 command/Command#WHO#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref s), _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("WHO", &[s]), |
| 302 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOrust-analyzer cargo irc-proto 1.1.0 command/Command#WHO#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("WHO", &[]), |
| 303 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOISrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOIS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t), ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("WHOIS", &[t, m]), |
| 304 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOISrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOIS#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("WHOIS", &[m]), |
| 305 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOWASrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOWAS#(ref n, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("WHOWAS", &[n, c, t]), |
| 306 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOWASrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOWAS#(ref n, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("WHOWAS", &[n, c]), |
| 307 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOWASrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOWAS#(ref n, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("WHOWAS", &[n]), |
| 308 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::KILLrust-analyzer cargo irc-proto 1.1.0 command/Command#KILL#(ref n, ref c) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("KILL", &[n, c]), |
| 309 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PINGrust-analyzer cargo irc-proto 1.1.0 command/Command#PING#(ref s, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("PING", &[s, t]), |
| 310 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PINGrust-analyzer cargo irc-proto 1.1.0 command/Command#PING#(ref s, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("PING", &[s]), |
| 311 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PONGrust-analyzer cargo irc-proto 1.1.0 command/Command#PONG#(ref s, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("PONG", &[s, t]), |
| 312 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PONGrust-analyzer cargo irc-proto 1.1.0 command/Command#PONG#(ref s, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("PONG", &[s]), |
| 313 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ERRORrust-analyzer cargo irc-proto 1.1.0 command/Command#ERROR#(ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("ERROR", &[m]), |
| 314 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::AWAYrust-analyzer cargo irc-proto 1.1.0 command/Command#AWAY#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref m)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("AWAY", &[m]), |
| 315 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::AWAYrust-analyzer cargo irc-proto 1.1.0 command/Command#AWAY#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("AWAY", &[]), |
| 316 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::REHASHrust-analyzer cargo irc-proto 1.1.0 command/Command#REHASH# => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("REHASH", &[]), |
| 317 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::DIErust-analyzer cargo irc-proto 1.1.0 command/Command#DIE# => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("DIE", &[]), |
| 318 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::RESTARTrust-analyzer cargo irc-proto 1.1.0 command/Command#RESTART# => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("RESTART", &[]), |
| 319 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SUMMONrust-analyzer cargo irc-proto 1.1.0 command/Command#SUMMON#(ref u, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SUMMON", &[u, t, c]), |
| 320 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SUMMONrust-analyzer cargo irc-proto 1.1.0 command/Command#SUMMON#(ref u, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SUMMON", &[u, t]), |
| 321 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SUMMONrust-analyzer cargo irc-proto 1.1.0 command/Command#SUMMON#(ref u, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SUMMON", &[u]), |
| 322 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERSrust-analyzer cargo irc-proto 1.1.0 command/Command#USERS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("USERS", &[t]), |
| 323 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERSrust-analyzer cargo irc-proto 1.1.0 command/Command#USERS#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("USERS", &[]), |
| 324 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WALLOPSrust-analyzer cargo irc-proto 1.1.0 command/Command#WALLOPS#(ref t) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("WALLOPS", &[t]), |
| 325 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERHOSTrust-analyzer cargo irc-proto 1.1.0 command/Command#USERHOST#(ref u) => { |
| 326 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("USERHOST", &u.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>()) |
| 327 | } |
| 328 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ISONrust-analyzer cargo irc-proto 1.1.0 command/Command#ISON#(ref u) => { |
| 329 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("ISON", &u.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>()) |
| 330 | } |
| 331 | |
| 332 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAJOINrust-analyzer cargo irc-proto 1.1.0 command/Command#SAJOIN#(ref n, ref c) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SAJOIN", &[n, c]), |
| 333 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAMODErust-analyzer cargo irc-proto 1.1.0 command/Command#SAMODE#(ref t, ref m, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref p)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SAMODE", &[t, m, p]), |
| 334 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAMODErust-analyzer cargo irc-proto 1.1.0 command/Command#SAMODE#(ref t, ref m, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SAMODE", &[t, m]), |
| 335 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SANICKrust-analyzer cargo irc-proto 1.1.0 command/Command#SANICK#(ref o, ref n) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SANICK", &[o, n]), |
| 336 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAPARTrust-analyzer cargo irc-proto 1.1.0 command/Command#SAPART#(ref c, ref r) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SAPART", &[c, r]), |
| 337 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAQUITrust-analyzer cargo irc-proto 1.1.0 command/Command#SAQUIT#(ref c, ref r) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("SAQUIT", &[c, r]), |
| 338 | |
| 339 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NICKSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#NICKSERV#(ref p) => { |
| 340 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("NICKSERV", &p.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>()) |
| 341 | } |
| 342 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CHANSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#CHANSERV#(ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CHANSERV", &[m]), |
| 343 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::OPERSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#OPERSERV#(ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("OPERSERV", &[m]), |
| 344 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::BOTSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#BOTSERV#(ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("BOTSERV", &[m]), |
| 345 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::HOSTSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#HOSTSERV#(ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("HOSTSERV", &[m]), |
| 346 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MEMOSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#MEMOSERV#(ref m) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("MEMOSERV", &[m]), |
| 347 | |
| 348 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, ref s, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref p)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CAP", &[s.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand]to_str().(), p]), |
| 349 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, ref s, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CAP", &[s.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand]to_str().()]), |
| 350 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref k), ref s, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref p)) => { |
| 351 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CAP", &[k, s.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand]to_str().(), p]) |
| 352 | } |
| 353 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref k), ref s, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CAP", &[k, s.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand]to_str().()]), |
| 354 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, ref s, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref p)) => { |
| 355 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CAP", &[s.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand]to_str().(), c, p]) |
| 356 | } |
| 357 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, ref s, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CAP", &[s.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand]to_str().(), c]), |
| 358 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref k), ref s, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref p)) => { |
| 359 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CAP", &[k, s.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand]to_str().(), c, p]) |
| 360 | } |
| 361 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref k), ref s, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => { |
| 362 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CAP", &[k, s.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand]to_str().(), c]) |
| 363 | } |
| 364 | |
| 365 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::AUTHENTICATErust-analyzer cargo irc-proto 1.1.0 command/Command#AUTHENTICATE#(ref d) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("AUTHENTICATE", &[d]), |
| 366 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ACCOUNTrust-analyzer cargo irc-proto 1.1.0 command/Command#ACCOUNT#(ref a) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("ACCOUNT", &[a]), |
| 367 | |
| 368 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::METADATArust-analyzer cargo irc-proto 1.1.0 command/Command#METADATA#(ref t, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => { |
| 369 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("METADATA", &[&t[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., c.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[MetadataSubCommand]to_str().()]) |
| 370 | } |
| 371 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::METADATArust-analyzer cargo irc-proto 1.1.0 command/Command#METADATA#(ref t, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref a)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().( |
| 372 | "METADATA", |
| 373 | &vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![t, &c.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[MetadataSubCommand]to_str().().to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()] |
| 374 | .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 375 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().) |
| 376 | .chainrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#chain().(a.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().)) |
| 377 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>(), |
| 378 | ), |
| 379 | |
| 380 | // Note that it shouldn't be possible to have a later arg *and* be |
| 381 | // missing an early arg, so in order to serialize this as valid, we |
| 382 | // return it as just the command. |
| 383 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::METADATArust-analyzer cargo irc-proto 1.1.0 command/Command#METADATA#(ref t, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, _) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("METADATA", &[t]), |
| 384 | |
| 385 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MONITORrust-analyzer cargo irc-proto 1.1.0 command/Command#MONITOR#(ref c, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref t)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("MONITOR", &[c, t]), |
| 386 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MONITORrust-analyzer cargo irc-proto 1.1.0 command/Command#MONITOR#(ref c, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("MONITOR", &[c]), |
| 387 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::BATCHrust-analyzer cargo irc-proto 1.1.0 command/Command#BATCH#(ref t, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref a)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().( |
| 388 | "BATCH", |
| 389 | &vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![t, &c.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[BatchSubCommand]to_str().().to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()] |
| 390 | .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 391 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().) |
| 392 | .chainrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#chain().(a.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().)) |
| 393 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>(), |
| 394 | ), |
| 395 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::BATCHrust-analyzer cargo irc-proto 1.1.0 command/Command#BATCH#(ref t, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref c), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("BATCH", &[t, c.to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[BatchSubCommand]to_str().()]), |
| 396 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::BATCHrust-analyzer cargo irc-proto 1.1.0 command/Command#BATCH#(ref t, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(ref a)) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().( |
| 397 | "BATCH", |
| 398 | &vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![t] |
| 399 | .iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() |
| 400 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().) |
| 401 | .chainrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#chain().(a.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().)) |
| 402 | .collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>(), |
| 403 | ), |
| 404 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::BATCHrust-analyzer cargo irc-proto 1.1.0 command/Command#BATCH#(ref t, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("BATCH", &[t]), |
| 405 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CHGHOSTrust-analyzer cargo irc-proto 1.1.0 command/Command#CHGHOST#(ref u, ref h) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().("CHGHOST", &[u, h]), |
| 406 | |
| 407 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::Responserust-analyzer cargo irc-proto 1.1.0 command/Command#Response#(ref resp, ref a) => stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().( |
| 408 | &formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!("{:03}", *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().resp as u16), |
| 409 | &a.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>(), |
| 410 | ), |
| 411 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::Rawrust-analyzer cargo irc-proto 1.1.0 command/Command#Raw#(ref c, ref a) => { |
| 412 | stringifyrust-analyzer cargo irc-proto 1.1.0 command/stringify().(c, &a.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| &s[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFull#]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().::<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<_>>()) |
| 413 | } |
| 414 | } |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | impl Commandrust-analyzer cargo irc-proto 1.1.0 command/Command# { |
| 419 | /// Constructs a new Command. |
| 420 | pub fn newrust-analyzer cargo irc-proto 1.1.0 command/impl#[Command]new().(cmd: &str, args: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<&str>) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#, MessageParseErrorrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#> { |
| 421 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("PASS") { |
| 422 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 423 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 424 | } else { |
| 425 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PASSrust-analyzer cargo irc-proto 1.1.0 command/Command#PASS#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 426 | } |
| 427 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("NICK") { |
| 428 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 429 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 430 | } else { |
| 431 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NICKrust-analyzer cargo irc-proto 1.1.0 command/Command#NICK#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 432 | } |
| 433 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("USER") { |
| 434 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().4 { |
| 435 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 436 | } else { |
| 437 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERrust-analyzer cargo irc-proto 1.1.0 command/Command#USER#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().3]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 438 | } |
| 439 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("OPER") { |
| 440 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 441 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 442 | } else { |
| 443 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::OPERrust-analyzer cargo irc-proto 1.1.0 command/Command#OPER#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 444 | } |
| 445 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("MODE") { |
| 446 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 447 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 448 | } else if args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..is_channel_namerust-analyzer cargo irc-proto 1.1.0 chan/impl#[`&'a str`][ChannelExt]is_channel_name().() { |
| 449 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ChannelMODErust-analyzer cargo irc-proto 1.1.0 command/Command#ChannelMODE#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Moderust-analyzer cargo irc-proto 1.1.0 mode/Mode#::as_channel_modesrust-analyzer cargo irc-proto 1.1.0 mode/impl#[`Mode<ChannelMode>`]as_channel_modes().(&args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFrom#]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().) |
| 450 | } else { |
| 451 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::UserMODErust-analyzer cargo irc-proto 1.1.0 command/Command#UserMODE#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Moderust-analyzer cargo irc-proto 1.1.0 mode/Mode#::as_user_modesrust-analyzer cargo irc-proto 1.1.0 mode/impl#[`Mode<UserMode>`]as_user_modes().(&args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFrom#]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().) |
| 452 | } |
| 453 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SERVICE") { |
| 454 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().6 { |
| 455 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 456 | } else { |
| 457 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SERVICErust-analyzer cargo irc-proto 1.1.0 command/Command#SERVICE#( |
| 458 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 459 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 460 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 461 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().3]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 462 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().4]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 463 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().5]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 464 | ) |
| 465 | } |
| 466 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("QUIT") { |
| 467 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 468 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::QUITrust-analyzer cargo irc-proto 1.1.0 command/Command#QUIT#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 469 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 470 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::QUITrust-analyzer cargo irc-proto 1.1.0 command/Command#QUIT#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 471 | } else { |
| 472 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 473 | } |
| 474 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SQUIT") { |
| 475 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 476 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 477 | } else { |
| 478 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SQUITrust-analyzer cargo irc-proto 1.1.0 command/Command#SQUIT#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 479 | } |
| 480 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("JOIN") { |
| 481 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 482 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::JOINrust-analyzer cargo irc-proto 1.1.0 command/Command#JOIN#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 483 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 484 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::JOINrust-analyzer cargo irc-proto 1.1.0 command/Command#JOIN#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 485 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().3 { |
| 486 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::JOINrust-analyzer cargo irc-proto 1.1.0 command/Command#JOIN#( |
| 487 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 488 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 489 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 490 | ) |
| 491 | } else { |
| 492 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 493 | } |
| 494 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("PART") { |
| 495 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 496 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PARTrust-analyzer cargo irc-proto 1.1.0 command/Command#PART#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 497 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 498 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PARTrust-analyzer cargo irc-proto 1.1.0 command/Command#PART#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 499 | } else { |
| 500 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 501 | } |
| 502 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("TOPIC") { |
| 503 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 504 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TOPICrust-analyzer cargo irc-proto 1.1.0 command/Command#TOPIC#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 505 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 506 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TOPICrust-analyzer cargo irc-proto 1.1.0 command/Command#TOPIC#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 507 | } else { |
| 508 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 509 | } |
| 510 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("NAMES") { |
| 511 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 512 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NAMESrust-analyzer cargo irc-proto 1.1.0 command/Command#NAMES#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 513 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 514 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NAMESrust-analyzer cargo irc-proto 1.1.0 command/Command#NAMES#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 515 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 516 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NAMESrust-analyzer cargo irc-proto 1.1.0 command/Command#NAMES#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 517 | } else { |
| 518 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 519 | } |
| 520 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("LIST") { |
| 521 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 522 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LISTrust-analyzer cargo irc-proto 1.1.0 command/Command#LIST#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 523 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 524 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LISTrust-analyzer cargo irc-proto 1.1.0 command/Command#LIST#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 525 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 526 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LISTrust-analyzer cargo irc-proto 1.1.0 command/Command#LIST#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 527 | } else { |
| 528 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 529 | } |
| 530 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("INVITE") { |
| 531 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 532 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 533 | } else { |
| 534 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::INVITErust-analyzer cargo irc-proto 1.1.0 command/Command#INVITE#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 535 | } |
| 536 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("KICK") { |
| 537 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().3 { |
| 538 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::KICKrust-analyzer cargo irc-proto 1.1.0 command/Command#KICK#( |
| 539 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 540 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 541 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 542 | ) |
| 543 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 544 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::KICKrust-analyzer cargo irc-proto 1.1.0 command/Command#KICK#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 545 | } else { |
| 546 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 547 | } |
| 548 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("PRIVMSG") { |
| 549 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 550 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 551 | } else { |
| 552 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PRIVMSGrust-analyzer cargo irc-proto 1.1.0 command/Command#PRIVMSG#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 553 | } |
| 554 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("NOTICE") { |
| 555 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 556 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 557 | } else { |
| 558 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NOTICErust-analyzer cargo irc-proto 1.1.0 command/Command#NOTICE#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 559 | } |
| 560 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("MOTD") { |
| 561 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 562 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MOTDrust-analyzer cargo irc-proto 1.1.0 command/Command#MOTD#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 563 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 564 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MOTDrust-analyzer cargo irc-proto 1.1.0 command/Command#MOTD#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 565 | } else { |
| 566 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 567 | } |
| 568 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("LUSERS") { |
| 569 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 570 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LUSERSrust-analyzer cargo irc-proto 1.1.0 command/Command#LUSERS#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 571 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 572 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LUSERSrust-analyzer cargo irc-proto 1.1.0 command/Command#LUSERS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 573 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 574 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LUSERSrust-analyzer cargo irc-proto 1.1.0 command/Command#LUSERS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 575 | } else { |
| 576 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 577 | } |
| 578 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("VERSION") { |
| 579 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 580 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::VERSIONrust-analyzer cargo irc-proto 1.1.0 command/Command#VERSION#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 581 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 582 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::VERSIONrust-analyzer cargo irc-proto 1.1.0 command/Command#VERSION#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 583 | } else { |
| 584 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 585 | } |
| 586 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("STATS") { |
| 587 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 588 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::STATSrust-analyzer cargo irc-proto 1.1.0 command/Command#STATS#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 589 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 590 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::STATSrust-analyzer cargo irc-proto 1.1.0 command/Command#STATS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 591 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 592 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::STATSrust-analyzer cargo irc-proto 1.1.0 command/Command#STATS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 593 | } else { |
| 594 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 595 | } |
| 596 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("LINKS") { |
| 597 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 598 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LINKSrust-analyzer cargo irc-proto 1.1.0 command/Command#LINKS#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 599 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 600 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LINKSrust-analyzer cargo irc-proto 1.1.0 command/Command#LINKS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 601 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 602 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::LINKSrust-analyzer cargo irc-proto 1.1.0 command/Command#LINKS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 603 | } else { |
| 604 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 605 | } |
| 606 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("TIME") { |
| 607 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 608 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TIMErust-analyzer cargo irc-proto 1.1.0 command/Command#TIME#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 609 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 610 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TIMErust-analyzer cargo irc-proto 1.1.0 command/Command#TIME#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 611 | } else { |
| 612 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 613 | } |
| 614 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("CONNECT") { |
| 615 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 616 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 617 | } else { |
| 618 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CONNECTrust-analyzer cargo irc-proto 1.1.0 command/Command#CONNECT#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 619 | } |
| 620 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("TRACE") { |
| 621 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 622 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TRACErust-analyzer cargo irc-proto 1.1.0 command/Command#TRACE#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 623 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 624 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::TRACErust-analyzer cargo irc-proto 1.1.0 command/Command#TRACE#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 625 | } else { |
| 626 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 627 | } |
| 628 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("ADMIN") { |
| 629 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 630 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ADMINrust-analyzer cargo irc-proto 1.1.0 command/Command#ADMIN#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 631 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 632 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ADMINrust-analyzer cargo irc-proto 1.1.0 command/Command#ADMIN#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 633 | } else { |
| 634 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 635 | } |
| 636 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("INFO") { |
| 637 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 638 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::INFOrust-analyzer cargo irc-proto 1.1.0 command/Command#INFO#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 639 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 640 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::INFOrust-analyzer cargo irc-proto 1.1.0 command/Command#INFO#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 641 | } else { |
| 642 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 643 | } |
| 644 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SERVLIST") { |
| 645 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 646 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SERVLISTrust-analyzer cargo irc-proto 1.1.0 command/Command#SERVLIST#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 647 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 648 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SERVLISTrust-analyzer cargo irc-proto 1.1.0 command/Command#SERVLIST#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 649 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 650 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SERVLISTrust-analyzer cargo irc-proto 1.1.0 command/Command#SERVLIST#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 651 | } else { |
| 652 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 653 | } |
| 654 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SQUERY") { |
| 655 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 656 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 657 | } else { |
| 658 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SQUERYrust-analyzer cargo irc-proto 1.1.0 command/Command#SQUERY#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 659 | } |
| 660 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("WHO") { |
| 661 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 662 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOrust-analyzer cargo irc-proto 1.1.0 command/Command#WHO#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 663 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 664 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOrust-analyzer cargo irc-proto 1.1.0 command/Command#WHO#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 665 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 666 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOrust-analyzer cargo irc-proto 1.1.0 command/Command#WHO#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[`&A`][`PartialEq<&B>`]eq()."o")) |
| 667 | } else { |
| 668 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 669 | } |
| 670 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("WHOIS") { |
| 671 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 672 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOISrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOIS#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 673 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 674 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOISrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOIS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 675 | } else { |
| 676 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 677 | } |
| 678 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("WHOWAS") { |
| 679 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 680 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOWASrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOWAS#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 681 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 682 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOWASrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOWAS#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 683 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().3 { |
| 684 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WHOWASrust-analyzer cargo irc-proto 1.1.0 command/Command#WHOWAS#( |
| 685 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 686 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 687 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 688 | ) |
| 689 | } else { |
| 690 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 691 | } |
| 692 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("KILL") { |
| 693 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 694 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 695 | } else { |
| 696 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::KILLrust-analyzer cargo irc-proto 1.1.0 command/Command#KILL#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 697 | } |
| 698 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("PING") { |
| 699 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 700 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PINGrust-analyzer cargo irc-proto 1.1.0 command/Command#PING#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 701 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 702 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PINGrust-analyzer cargo irc-proto 1.1.0 command/Command#PING#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 703 | } else { |
| 704 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 705 | } |
| 706 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("PONG") { |
| 707 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 708 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PONGrust-analyzer cargo irc-proto 1.1.0 command/Command#PONG#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 709 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 710 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::PONGrust-analyzer cargo irc-proto 1.1.0 command/Command#PONG#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 711 | } else { |
| 712 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 713 | } |
| 714 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("ERROR") { |
| 715 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 716 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 717 | } else { |
| 718 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ERRORrust-analyzer cargo irc-proto 1.1.0 command/Command#ERROR#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 719 | } |
| 720 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("AWAY") { |
| 721 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 722 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::AWAYrust-analyzer cargo irc-proto 1.1.0 command/Command#AWAY#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 723 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 724 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::AWAYrust-analyzer cargo irc-proto 1.1.0 command/Command#AWAY#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 725 | } else { |
| 726 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 727 | } |
| 728 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("REHASH") { |
| 729 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 730 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::REHASHrust-analyzer cargo irc-proto 1.1.0 command/Command#REHASH# |
| 731 | } else { |
| 732 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 733 | } |
| 734 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("DIE") { |
| 735 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 736 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::DIErust-analyzer cargo irc-proto 1.1.0 command/Command#DIE# |
| 737 | } else { |
| 738 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 739 | } |
| 740 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("RESTART") { |
| 741 | if args.is_emptyrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]is_empty().() { |
| 742 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::RESTARTrust-analyzer cargo irc-proto 1.1.0 command/Command#RESTART# |
| 743 | } else { |
| 744 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 745 | } |
| 746 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SUMMON") { |
| 747 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 748 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SUMMONrust-analyzer cargo irc-proto 1.1.0 command/Command#SUMMON#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 749 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 750 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SUMMONrust-analyzer cargo irc-proto 1.1.0 command/Command#SUMMON#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 751 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().3 { |
| 752 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SUMMONrust-analyzer cargo irc-proto 1.1.0 command/Command#SUMMON#( |
| 753 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 754 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 755 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 756 | ) |
| 757 | } else { |
| 758 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 759 | } |
| 760 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("USERS") { |
| 761 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 762 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 763 | } else { |
| 764 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERSrust-analyzer cargo irc-proto 1.1.0 command/Command#USERS#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 765 | } |
| 766 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("WALLOPS") { |
| 767 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 768 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 769 | } else { |
| 770 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::WALLOPSrust-analyzer cargo irc-proto 1.1.0 command/Command#WALLOPS#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 771 | } |
| 772 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("USERHOST") { |
| 773 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERHOSTrust-analyzer cargo irc-proto 1.1.0 command/Command#USERHOST#(args.into_iterrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][IntoIterator]into_iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().()) |
| 774 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("ISON") { |
| 775 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERHOSTrust-analyzer cargo irc-proto 1.1.0 command/Command#USERHOST#(args.into_iterrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][IntoIterator]into_iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().()) |
| 776 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SAJOIN") { |
| 777 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 778 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 779 | } else { |
| 780 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAJOINrust-analyzer cargo irc-proto 1.1.0 command/Command#SAJOIN#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 781 | } |
| 782 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SAMODE") { |
| 783 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 784 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAMODErust-analyzer cargo irc-proto 1.1.0 command/Command#SAMODE#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 785 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().3 { |
| 786 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAMODErust-analyzer cargo irc-proto 1.1.0 command/Command#SAMODE#( |
| 787 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 788 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 789 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 790 | ) |
| 791 | } else { |
| 792 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 793 | } |
| 794 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SANICK") { |
| 795 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 796 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 797 | } else { |
| 798 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SANICKrust-analyzer cargo irc-proto 1.1.0 command/Command#SANICK#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 799 | } |
| 800 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SAPART") { |
| 801 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 802 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 803 | } else { |
| 804 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAPARTrust-analyzer cargo irc-proto 1.1.0 command/Command#SAPART#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 805 | } |
| 806 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SAQUIT") { |
| 807 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().2 { |
| 808 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 809 | } else { |
| 810 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::SAQUITrust-analyzer cargo irc-proto 1.1.0 command/Command#SAQUIT#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 811 | } |
| 812 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("NICKSERV") { |
| 813 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 814 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 815 | } else { |
| 816 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::NICKSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#NICKSERV#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFrom#]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().()) |
| 817 | } |
| 818 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("CHANSERV") { |
| 819 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 820 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 821 | } else { |
| 822 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CHANSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#CHANSERV#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 823 | } |
| 824 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("OPERSERV") { |
| 825 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 826 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 827 | } else { |
| 828 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::OPERSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#OPERSERV#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 829 | } |
| 830 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("BOTSERV") { |
| 831 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 832 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 833 | } else { |
| 834 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::BOTSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#BOTSERV#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 835 | } |
| 836 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("HOSTSERV") { |
| 837 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 838 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 839 | } else { |
| 840 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::HOSTSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#HOSTSERV#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 841 | } |
| 842 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("MEMOSERV") { |
| 843 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]ne().1 { |
| 844 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 845 | } else { |
| 846 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MEMOSERVrust-analyzer cargo irc-proto 1.1.0 command/Command#MEMOSERV#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 847 | } |
| 848 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("CAP") { |
| 849 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 850 | if let Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(cmd) = args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().() { |
| 851 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, cmd, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 852 | } else { |
| 853 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 854 | } |
| 855 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 856 | if let Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(cmd) = args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().() { |
| 857 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, cmd, Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 858 | } else if let Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(cmd) = args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().() { |
| 859 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), cmd, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 860 | } else { |
| 861 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 862 | } |
| 863 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().3 { |
| 864 | if let Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(cmd) = args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().() { |
| 865 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#( |
| 866 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 867 | cmd, |
| 868 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 869 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 870 | ) |
| 871 | } else if let Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(cmd) = args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().() { |
| 872 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#( |
| 873 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 874 | cmd, |
| 875 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 876 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 877 | ) |
| 878 | } else { |
| 879 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 880 | } |
| 881 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().4 { |
| 882 | if let Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(cmd) = args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().() { |
| 883 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CAPrust-analyzer cargo irc-proto 1.1.0 command/Command#CAP#( |
| 884 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 885 | cmd, |
| 886 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().2]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 887 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().3]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()), |
| 888 | ) |
| 889 | } else { |
| 890 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 891 | } |
| 892 | } else { |
| 893 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 894 | } |
| 895 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("AUTHENTICATE") { |
| 896 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 897 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::AUTHENTICATErust-analyzer cargo irc-proto 1.1.0 command/Command#AUTHENTICATE#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 898 | } else { |
| 899 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 900 | } |
| 901 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("ACCOUNT") { |
| 902 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 903 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::ACCOUNTrust-analyzer cargo irc-proto 1.1.0 command/Command#ACCOUNT#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 904 | } else { |
| 905 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 906 | } |
| 907 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("METADATA") { |
| 908 | match args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() { |
| 909 | 2 => match args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().() { |
| 910 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(c) => Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::METADATArust-analyzer cargo irc-proto 1.1.0 command/Command#METADATA#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(c), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#), |
| 911 | Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(_) => rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args), |
| 912 | }, |
| 913 | 3..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/RangeFrom# => match args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().() { |
| 914 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(c) => Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::METADATArust-analyzer cargo irc-proto 1.1.0 command/Command#METADATA#( |
| 915 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 916 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(c), |
| 917 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args.into_iterrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][IntoIterator]into_iter().().skiprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#skip().(1).maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().()), |
| 918 | ), |
| 919 | Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(_) => { |
| 920 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().3 { |
| 921 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::METADATArust-analyzer cargo irc-proto 1.1.0 command/Command#METADATA#( |
| 922 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 923 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 924 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args.into_iterrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][IntoIterator]into_iter().().skiprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#skip().(1).maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().()), |
| 925 | ) |
| 926 | } else { |
| 927 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 928 | } |
| 929 | } |
| 930 | }, |
| 931 | _ => rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args), |
| 932 | } |
| 933 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("MONITOR") { |
| 934 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 935 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MONITORrust-analyzer cargo irc-proto 1.1.0 command/Command#MONITOR#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().())) |
| 936 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 937 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::MONITORrust-analyzer cargo irc-proto 1.1.0 command/Command#MONITOR#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 938 | } else { |
| 939 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 940 | } |
| 941 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("BATCH") { |
| 942 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().1 { |
| 943 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::BATCHrust-analyzer cargo irc-proto 1.1.0 command/Command#BATCH#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 944 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 945 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::BATCHrust-analyzer cargo irc-proto 1.1.0 command/Command#BATCH#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().()), Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 946 | } else if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]gt().>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]gt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]gt().2 { |
| 947 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::BATCHrust-analyzer cargo irc-proto 1.1.0 command/Command#BATCH#( |
| 948 | args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 949 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().()), |
| 950 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(args.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().().skiprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#skip().(2).maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|&s| s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().()), |
| 951 | ) |
| 952 | } else { |
| 953 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 954 | } |
| 955 | } else if cmd.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("CHGHOST") { |
| 956 | if args.lenrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]len().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().2 { |
| 957 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::CHGHOSTrust-analyzer cargo irc-proto 1.1.0 command/Command#CHGHOST#(args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().0]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), args[rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index().1]rust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Index<I>`]index()..to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()) |
| 958 | } else { |
| 959 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 960 | } |
| 961 | } else if let Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(resp) = cmd.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().() { |
| 962 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::Responserust-analyzer cargo irc-proto 1.1.0 command/Command#Response#(resp, args.into_iterrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][IntoIterator]into_iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().()) |
| 963 | } else { |
| 964 | rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd, args) |
| 965 | }) |
| 966 | } |
| 967 | } |
| 968 | |
| 969 | /// Makes a raw message from the specified command, arguments, and suffix. |
| 970 | fn rawrust-analyzer cargo irc-proto 1.1.0 command/raw().(cmd: &str, args: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<&str>) -> Commandrust-analyzer cargo irc-proto 1.1.0 command/Command# { |
| 971 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::Rawrust-analyzer cargo irc-proto 1.1.0 command/Command#Raw#( |
| 972 | cmd.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 973 | args.into_iterrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][IntoIterator]into_iter().().maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(|s| s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().()).collectrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#collect().(), |
| 974 | ) |
| 975 | } |
| 976 | |
| 977 | /// A list of all of the subcommands for the capabilities extension. |
| 978 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 979 | pub enum CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand# { |
| 980 | /// Requests a list of the server's capabilities. |
| 981 | LSrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#LS#, |
| 982 | /// Requests a list of the server's capabilities. |
| 983 | LISTrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#LIST#, |
| 984 | /// Requests specific capabilities blindly. |
| 985 | REQrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#REQ#, |
| 986 | /// Acknowledges capabilities. |
| 987 | ACKrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#ACK#, |
| 988 | /// Does not acknowledge certain capabilities. |
| 989 | NAKrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#NAK#, |
| 990 | /// Ends the capability negotiation before registration. |
| 991 | ENDrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#END#, |
| 992 | /// Signals that new capabilities are now being offered. |
| 993 | NEWrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#NEW#, |
| 994 | /// Signasl that the specified capabilities are cancelled and no longer available. |
| 995 | DELrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#DEL#, |
| 996 | } |
| 997 | |
| 998 | impl CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand# { |
| 999 | /// Gets the string that corresponds to this subcommand. |
| 1000 | pub fn to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand]to_str().(&self) -> &str { |
| 1001 | match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self { |
| 1002 | CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::LSrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#LS# => "LS", |
| 1003 | CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::LISTrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#LIST# => "LIST", |
| 1004 | CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::REQrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#REQ# => "REQ", |
| 1005 | CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::ACKrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#ACK# => "ACK", |
| 1006 | CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::NAKrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#NAK# => "NAK", |
| 1007 | CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::ENDrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#END# => "END", |
| 1008 | CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::NEWrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#NEW# => "NEW", |
| 1009 | CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::DELrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#DEL# => "DEL", |
| 1010 | } |
| 1011 | } |
| 1012 | } |
| 1013 | |
| 1014 | impl FromStrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr# for CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand# { |
| 1015 | type Errrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand][FromStr]Err# = MessageParseErrorrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#; |
| 1016 | |
| 1017 | fn from_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand][FromStr]from_str().(s: &str) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#, Selfrust-analyzer cargo irc-proto 1.1.0 command/impl#[CapSubCommand][FromStr]::Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr#Err#> { |
| 1018 | if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("LS") { |
| 1019 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::LSrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#LS#) |
| 1020 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("LIST") { |
| 1021 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::LISTrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#LIST#) |
| 1022 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("REQ") { |
| 1023 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::REQrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#REQ#) |
| 1024 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("ACK") { |
| 1025 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::ACKrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#ACK#) |
| 1026 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("NAK") { |
| 1027 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::NAKrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#NAK#) |
| 1028 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("END") { |
| 1029 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::ENDrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#END#) |
| 1030 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("NEW") { |
| 1031 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::NEWrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#NEW#) |
| 1032 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("DEL") { |
| 1033 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(CapSubCommandrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#::DELrust-analyzer cargo irc-proto 1.1.0 command/CapSubCommand#DEL#) |
| 1034 | } else { |
| 1035 | Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(MessageParseErrorrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#::InvalidSubcommandrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#InvalidSubcommand# { |
| 1036 | cmdrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#InvalidSubcommand#cmd.: "CAP", |
| 1037 | subrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#InvalidSubcommand#sub.: s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 1038 | }) |
| 1039 | } |
| 1040 | } |
| 1041 | } |
| 1042 | |
| 1043 | /// A list of all the subcommands for the |
| 1044 | /// [metadata extension](http://ircv3.net/specs/core/metadata-3.2.html). |
| 1045 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 1046 | pub enum MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand# { |
| 1047 | /// Looks up the value for some keys. |
| 1048 | GETrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#GET#, |
| 1049 | /// Lists all of the metadata keys and values. |
| 1050 | LISTrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#LIST#, |
| 1051 | /// Sets the value for some key. |
| 1052 | SETrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#SET#, |
| 1053 | /// Removes all metadata. |
| 1054 | CLEARrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#CLEAR#, |
| 1055 | } |
| 1056 | |
| 1057 | impl MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand# { |
| 1058 | /// Gets the string that corresponds to this subcommand. |
| 1059 | pub fn to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[MetadataSubCommand]to_str().(&self) -> &str { |
| 1060 | match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self { |
| 1061 | MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#::GETrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#GET# => "GET", |
| 1062 | MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#::LISTrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#LIST# => "LIST", |
| 1063 | MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#::SETrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#SET# => "SET", |
| 1064 | MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#::CLEARrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#CLEAR# => "CLEAR", |
| 1065 | } |
| 1066 | } |
| 1067 | } |
| 1068 | |
| 1069 | impl FromStrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr# for MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand# { |
| 1070 | type Errrust-analyzer cargo irc-proto 1.1.0 command/impl#[MetadataSubCommand][FromStr]Err# = MessageParseErrorrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#; |
| 1071 | |
| 1072 | fn from_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[MetadataSubCommand][FromStr]from_str().(s: &str) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#, Selfrust-analyzer cargo irc-proto 1.1.0 command/impl#[MetadataSubCommand][FromStr]::Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr#Err#> { |
| 1073 | if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("GET") { |
| 1074 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#::GETrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#GET#) |
| 1075 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("LIST") { |
| 1076 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#::LISTrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#LIST#) |
| 1077 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("SET") { |
| 1078 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#::SETrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#SET#) |
| 1079 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("CLEAR") { |
| 1080 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(MetadataSubCommandrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#::CLEARrust-analyzer cargo irc-proto 1.1.0 command/MetadataSubCommand#CLEAR#) |
| 1081 | } else { |
| 1082 | Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(MessageParseErrorrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#::InvalidSubcommandrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#InvalidSubcommand# { |
| 1083 | cmdrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#InvalidSubcommand#cmd.: "METADATA", |
| 1084 | subrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#InvalidSubcommand#sub.: s.to_ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str][ToOwned]to_owned().(), |
| 1085 | }) |
| 1086 | } |
| 1087 | } |
| 1088 | } |
| 1089 | |
| 1090 | /// [batch extension](http://ircv3.net/specs/extensions/batch-3.2.html). |
| 1091 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)] |
| 1092 | pub enum BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand# { |
| 1093 | /// [NETSPLIT](http://ircv3.net/specs/extensions/batch/netsplit.html) |
| 1094 | NETSPLITrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#NETSPLIT#, |
| 1095 | /// [NETJOIN](http://ircv3.net/specs/extensions/batch/netsplit.html) |
| 1096 | NETJOINrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#NETJOIN#, |
| 1097 | /// Vendor-specific BATCH subcommands. |
| 1098 | CUSTOMrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#CUSTOM#(Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#), |
| 1099 | } |
| 1100 | |
| 1101 | impl BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand# { |
| 1102 | /// Gets the string that corresponds to this subcommand. |
| 1103 | pub fn to_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[BatchSubCommand]to_str().(&self) -> &str { |
| 1104 | match *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self { |
| 1105 | BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#::NETSPLITrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#NETSPLIT# => "NETSPLIT", |
| 1106 | BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#::NETJOINrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#NETJOIN# => "NETJOIN", |
| 1107 | BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#::CUSTOMrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#CUSTOM#(ref s) => s, |
| 1108 | } |
| 1109 | } |
| 1110 | } |
| 1111 | |
| 1112 | impl FromStrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr# for BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand# { |
| 1113 | type Errrust-analyzer cargo irc-proto 1.1.0 command/impl#[BatchSubCommand][FromStr]Err# = MessageParseErrorrust-analyzer cargo irc-proto 1.1.0 error/MessageParseError#; |
| 1114 | |
| 1115 | fn from_strrust-analyzer cargo irc-proto 1.1.0 command/impl#[BatchSubCommand][FromStr]from_str().(s: &str) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#, Selfrust-analyzer cargo irc-proto 1.1.0 command/impl#[BatchSubCommand][FromStr]::Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr#Err#> { |
| 1116 | if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("NETSPLIT") { |
| 1117 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#::NETSPLITrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#NETSPLIT#) |
| 1118 | } else if s.eq_ignore_ascii_caserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]eq_ignore_ascii_case().("NETJOIN") { |
| 1119 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#::NETJOINrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#NETJOIN#) |
| 1120 | } else { |
| 1121 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(BatchSubCommandrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#::CUSTOMrust-analyzer cargo irc-proto 1.1.0 command/BatchSubCommand#CUSTOM#(s.to_uppercaserust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/impl#[str]to_uppercase().())) |
| 1122 | } |
| 1123 | } |
| 1124 | } |
| 1125 | |
| 1126 | #[cfg(test)] |
| 1127 | mod testrust-analyzer cargo irc-proto 1.1.0 command/test/ { |
| 1128 | use superrust-analyzer cargo irc-proto 1.1.0 command/::Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#; |
| 1129 | use superrust-analyzer cargo irc-proto 1.1.0 command/::Responserust-analyzer cargo irc-proto 1.1.0 response/Response#; |
| 1130 | use craterust-analyzer cargo irc-proto 1.1.0 crate/::Messagerust-analyzer cargo irc-proto 1.1.0 message/Message#; |
| 1131 | |
| 1132 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 1133 | fn format_responserust-analyzer cargo irc-proto 1.1.0 command/test/format_response().() { |
| 1134 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!( |
| 1135 | Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#::fromrust-analyzer cargo irc-proto 1.1.0 command/impl#[String][`From<&'a Command>`]from().(&Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::Responserust-analyzer cargo irc-proto 1.1.0 command/Command#Response#( |
| 1136 | Responserust-analyzer cargo irc-proto 1.1.0 response/Response#::RPL_WELCOMErust-analyzer cargo irc-proto 1.1.0 response/Response#RPL_WELCOME#, |
| 1137 | vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!!["foo".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()], |
| 1138 | )) == "001 foo" |
| 1139 | ); |
| 1140 | } |
| 1141 | |
| 1142 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 1143 | fn user_round_triprust-analyzer cargo irc-proto 1.1.0 command/test/user_round_trip().() { |
| 1144 | let cmd = Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERrust-analyzer cargo irc-proto 1.1.0 command/Command#USER#("a".to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), "b".to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), "c".to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()); |
| 1145 | let line = Messagerust-analyzer cargo irc-proto 1.1.0 message/Message#::fromrust-analyzer cargo irc-proto 1.1.0 message/impl#[Message][`From<Command>`]from().(cmd.clonerust-analyzer cargo irc-proto 1.1.0 command/impl#[Command][Clone]clone().()).to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(); |
| 1146 | let returned_cmd = line.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<Messagerust-analyzer cargo irc-proto 1.1.0 message/Message#>().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().().commandrust-analyzer cargo irc-proto 1.1.0 message/Message#command.; |
| 1147 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(cmd, returned_cmd); |
| 1148 | } |
| 1149 | |
| 1150 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 1151 | fn parse_user_messagerust-analyzer cargo irc-proto 1.1.0 command/test/parse_user_message().() { |
| 1152 | let cmd = "USER a 0 * b".parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().::<Messagerust-analyzer cargo irc-proto 1.1.0 message/Message#>().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().().commandrust-analyzer cargo irc-proto 1.1.0 message/Message#command.; |
| 1153 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 1154 | Commandrust-analyzer cargo irc-proto 1.1.0 command/Command#::USERrust-analyzer cargo irc-proto 1.1.0 command/Command#USER#("a".to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), "0".to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().(), "b".to_stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/impl#[T][ToString]to_string().()), |
| 1155 | cmd |
| 1156 | ); |
| 1157 | } |
| 1158 | } |