pub enum HardhatConsoleCalls {
Show 376 variants
log_0(log_0Call),
log_1(log_1Call),
log_2(log_2Call),
log_3(log_3Call),
log_4(log_4Call),
log_5(log_5Call),
log_6(log_6Call),
log_7(log_7Call),
log_8(log_8Call),
log_9(log_9Call),
log_10(log_10Call),
log_11(log_11Call),
log_12(log_12Call),
log_13(log_13Call),
log_14(log_14Call),
log_15(log_15Call),
log_16(log_16Call),
log_17(log_17Call),
log_18(log_18Call),
log_19(log_19Call),
log_20(log_20Call),
log_21(log_21Call),
log_22(log_22Call),
log_23(log_23Call),
log_24(log_24Call),
log_25(log_25Call),
log_26(log_26Call),
log_27(log_27Call),
log_28(log_28Call),
log_29(log_29Call),
log_30(log_30Call),
log_31(log_31Call),
log_32(log_32Call),
log_33(log_33Call),
log_34(log_34Call),
log_35(log_35Call),
log_36(log_36Call),
log_37(log_37Call),
log_38(log_38Call),
log_39(log_39Call),
log_40(log_40Call),
log_41(log_41Call),
log_42(log_42Call),
log_43(log_43Call),
log_44(log_44Call),
log_45(log_45Call),
log_46(log_46Call),
log_47(log_47Call),
log_48(log_48Call),
log_49(log_49Call),
log_50(log_50Call),
log_51(log_51Call),
log_52(log_52Call),
log_53(log_53Call),
log_54(log_54Call),
log_55(log_55Call),
log_56(log_56Call),
log_57(log_57Call),
log_58(log_58Call),
log_59(log_59Call),
log_60(log_60Call),
log_61(log_61Call),
log_62(log_62Call),
log_63(log_63Call),
log_64(log_64Call),
log_65(log_65Call),
log_66(log_66Call),
log_67(log_67Call),
log_68(log_68Call),
log_69(log_69Call),
log_70(log_70Call),
log_71(log_71Call),
log_72(log_72Call),
log_73(log_73Call),
log_74(log_74Call),
log_75(log_75Call),
log_76(log_76Call),
log_77(log_77Call),
log_78(log_78Call),
log_79(log_79Call),
log_80(log_80Call),
log_81(log_81Call),
log_82(log_82Call),
log_83(log_83Call),
log_84(log_84Call),
log_85(log_85Call),
log_86(log_86Call),
log_87(log_87Call),
log_88(log_88Call),
log_89(log_89Call),
log_90(log_90Call),
log_91(log_91Call),
log_92(log_92Call),
log_93(log_93Call),
log_94(log_94Call),
log_95(log_95Call),
log_96(log_96Call),
log_97(log_97Call),
log_98(log_98Call),
log_99(log_99Call),
log_100(log_100Call),
log_101(log_101Call),
log_102(log_102Call),
log_103(log_103Call),
log_104(log_104Call),
log_105(log_105Call),
log_106(log_106Call),
log_107(log_107Call),
log_108(log_108Call),
log_109(log_109Call),
log_110(log_110Call),
log_111(log_111Call),
log_112(log_112Call),
log_113(log_113Call),
log_114(log_114Call),
log_115(log_115Call),
log_116(log_116Call),
log_117(log_117Call),
log_118(log_118Call),
log_119(log_119Call),
log_120(log_120Call),
log_121(log_121Call),
log_122(log_122Call),
log_123(log_123Call),
log_124(log_124Call),
log_125(log_125Call),
log_126(log_126Call),
log_127(log_127Call),
log_128(log_128Call),
log_129(log_129Call),
log_130(log_130Call),
log_131(log_131Call),
log_132(log_132Call),
log_133(log_133Call),
log_134(log_134Call),
log_135(log_135Call),
log_136(log_136Call),
log_137(log_137Call),
log_138(log_138Call),
log_139(log_139Call),
log_140(log_140Call),
log_141(log_141Call),
log_142(log_142Call),
log_143(log_143Call),
log_144(log_144Call),
log_145(log_145Call),
log_146(log_146Call),
log_147(log_147Call),
log_148(log_148Call),
log_149(log_149Call),
log_150(log_150Call),
log_151(log_151Call),
log_152(log_152Call),
log_153(log_153Call),
log_154(log_154Call),
log_155(log_155Call),
log_156(log_156Call),
log_157(log_157Call),
log_158(log_158Call),
log_159(log_159Call),
log_160(log_160Call),
log_161(log_161Call),
log_162(log_162Call),
log_163(log_163Call),
log_164(log_164Call),
log_165(log_165Call),
log_166(log_166Call),
log_167(log_167Call),
log_168(log_168Call),
log_169(log_169Call),
log_170(log_170Call),
log_171(log_171Call),
log_172(log_172Call),
log_173(log_173Call),
log_174(log_174Call),
log_175(log_175Call),
log_176(log_176Call),
log_177(log_177Call),
log_178(log_178Call),
log_179(log_179Call),
log_180(log_180Call),
log_181(log_181Call),
log_182(log_182Call),
log_183(log_183Call),
log_184(log_184Call),
log_185(log_185Call),
log_186(log_186Call),
log_187(log_187Call),
log_188(log_188Call),
log_189(log_189Call),
log_190(log_190Call),
log_191(log_191Call),
log_192(log_192Call),
log_193(log_193Call),
log_194(log_194Call),
log_195(log_195Call),
log_196(log_196Call),
log_197(log_197Call),
log_198(log_198Call),
log_199(log_199Call),
log_200(log_200Call),
log_201(log_201Call),
log_202(log_202Call),
log_203(log_203Call),
log_204(log_204Call),
log_205(log_205Call),
log_206(log_206Call),
log_207(log_207Call),
log_208(log_208Call),
log_209(log_209Call),
log_210(log_210Call),
log_211(log_211Call),
log_212(log_212Call),
log_213(log_213Call),
log_214(log_214Call),
log_215(log_215Call),
log_216(log_216Call),
log_217(log_217Call),
log_218(log_218Call),
log_219(log_219Call),
log_220(log_220Call),
log_221(log_221Call),
log_222(log_222Call),
log_223(log_223Call),
log_224(log_224Call),
log_225(log_225Call),
log_226(log_226Call),
log_227(log_227Call),
log_228(log_228Call),
log_229(log_229Call),
log_230(log_230Call),
log_231(log_231Call),
log_232(log_232Call),
log_233(log_233Call),
log_234(log_234Call),
log_235(log_235Call),
log_236(log_236Call),
log_237(log_237Call),
log_238(log_238Call),
log_239(log_239Call),
log_240(log_240Call),
log_241(log_241Call),
log_242(log_242Call),
log_243(log_243Call),
log_244(log_244Call),
log_245(log_245Call),
log_246(log_246Call),
log_247(log_247Call),
log_248(log_248Call),
log_249(log_249Call),
log_250(log_250Call),
log_251(log_251Call),
log_252(log_252Call),
log_253(log_253Call),
log_254(log_254Call),
log_255(log_255Call),
log_256(log_256Call),
log_257(log_257Call),
log_258(log_258Call),
log_259(log_259Call),
log_260(log_260Call),
log_261(log_261Call),
log_262(log_262Call),
log_263(log_263Call),
log_264(log_264Call),
log_265(log_265Call),
log_266(log_266Call),
log_267(log_267Call),
log_268(log_268Call),
log_269(log_269Call),
log_270(log_270Call),
log_271(log_271Call),
log_272(log_272Call),
log_273(log_273Call),
log_274(log_274Call),
log_275(log_275Call),
log_276(log_276Call),
log_277(log_277Call),
log_278(log_278Call),
log_279(log_279Call),
log_280(log_280Call),
log_281(log_281Call),
log_282(log_282Call),
log_283(log_283Call),
log_284(log_284Call),
log_285(log_285Call),
log_286(log_286Call),
log_287(log_287Call),
log_288(log_288Call),
log_289(log_289Call),
log_290(log_290Call),
log_291(log_291Call),
log_292(log_292Call),
log_293(log_293Call),
log_294(log_294Call),
log_295(log_295Call),
log_296(log_296Call),
log_297(log_297Call),
log_298(log_298Call),
log_299(log_299Call),
log_300(log_300Call),
log_301(log_301Call),
log_302(log_302Call),
log_303(log_303Call),
log_304(log_304Call),
log_305(log_305Call),
log_306(log_306Call),
log_307(log_307Call),
log_308(log_308Call),
log_309(log_309Call),
log_310(log_310Call),
log_311(log_311Call),
log_312(log_312Call),
log_313(log_313Call),
log_314(log_314Call),
log_315(log_315Call),
log_316(log_316Call),
log_317(log_317Call),
log_318(log_318Call),
log_319(log_319Call),
log_320(log_320Call),
log_321(log_321Call),
log_322(log_322Call),
log_323(log_323Call),
log_324(log_324Call),
log_325(log_325Call),
log_326(log_326Call),
log_327(log_327Call),
log_328(log_328Call),
log_329(log_329Call),
log_330(log_330Call),
log_331(log_331Call),
log_332(log_332Call),
log_333(log_333Call),
log_334(log_334Call),
log_335(log_335Call),
log_336(log_336Call),
log_337(log_337Call),
log_338(log_338Call),
log_339(log_339Call),
log_340(log_340Call),
log_341(log_341Call),
log_342(log_342Call),
log_343(log_343Call),
log_344(log_344Call),
log_345(log_345Call),
log_346(log_346Call),
log_347(log_347Call),
log_348(log_348Call),
log_349(log_349Call),
log_350(log_350Call),
log_351(log_351Call),
log_352(log_352Call),
log_353(log_353Call),
log_354(log_354Call),
log_355(log_355Call),
log_356(log_356Call),
log_357(log_357Call),
log_358(log_358Call),
log_359(log_359Call),
log_360(log_360Call),
log_361(log_361Call),
log_362(log_362Call),
log_363(log_363Call),
log_364(log_364Call),
log_365(log_365Call),
log_366(log_366Call),
log_367(log_367Call),
log_368(log_368Call),
log_369(log_369Call),
log_370(log_370Call),
log_371(log_371Call),
log_372(log_372Call),
log_373(log_373Call),
log_374(log_374Call),
log_375(log_375Call),
}
Expand description
Container for all the HardhatConsole
function calls.
Variants§
log_0(log_0Call)
log_1(log_1Call)
log_2(log_2Call)
log_3(log_3Call)
log_4(log_4Call)
log_5(log_5Call)
log_6(log_6Call)
log_7(log_7Call)
log_8(log_8Call)
log_9(log_9Call)
log_10(log_10Call)
log_11(log_11Call)
log_12(log_12Call)
log_13(log_13Call)
log_14(log_14Call)
log_15(log_15Call)
log_16(log_16Call)
log_17(log_17Call)
log_18(log_18Call)
log_19(log_19Call)
log_20(log_20Call)
log_21(log_21Call)
log_22(log_22Call)
log_23(log_23Call)
log_24(log_24Call)
log_25(log_25Call)
log_26(log_26Call)
log_27(log_27Call)
log_28(log_28Call)
log_29(log_29Call)
log_30(log_30Call)
log_31(log_31Call)
log_32(log_32Call)
log_33(log_33Call)
log_34(log_34Call)
log_35(log_35Call)
log_36(log_36Call)
log_37(log_37Call)
log_38(log_38Call)
log_39(log_39Call)
log_40(log_40Call)
log_41(log_41Call)
log_42(log_42Call)
log_43(log_43Call)
log_44(log_44Call)
log_45(log_45Call)
log_46(log_46Call)
log_47(log_47Call)
log_48(log_48Call)
log_49(log_49Call)
log_50(log_50Call)
log_51(log_51Call)
log_52(log_52Call)
log_53(log_53Call)
log_54(log_54Call)
log_55(log_55Call)
log_56(log_56Call)
log_57(log_57Call)
log_58(log_58Call)
log_59(log_59Call)
log_60(log_60Call)
log_61(log_61Call)
log_62(log_62Call)
log_63(log_63Call)
log_64(log_64Call)
log_65(log_65Call)
log_66(log_66Call)
log_67(log_67Call)
log_68(log_68Call)
log_69(log_69Call)
log_70(log_70Call)
log_71(log_71Call)
log_72(log_72Call)
log_73(log_73Call)
log_74(log_74Call)
log_75(log_75Call)
log_76(log_76Call)
log_77(log_77Call)
log_78(log_78Call)
log_79(log_79Call)
log_80(log_80Call)
log_81(log_81Call)
log_82(log_82Call)
log_83(log_83Call)
log_84(log_84Call)
log_85(log_85Call)
log_86(log_86Call)
log_87(log_87Call)
log_88(log_88Call)
log_89(log_89Call)
log_90(log_90Call)
log_91(log_91Call)
log_92(log_92Call)
log_93(log_93Call)
log_94(log_94Call)
log_95(log_95Call)
log_96(log_96Call)
log_97(log_97Call)
log_98(log_98Call)
log_99(log_99Call)
log_100(log_100Call)
log_101(log_101Call)
log_102(log_102Call)
log_103(log_103Call)
log_104(log_104Call)
log_105(log_105Call)
log_106(log_106Call)
log_107(log_107Call)
log_108(log_108Call)
log_109(log_109Call)
log_110(log_110Call)
log_111(log_111Call)
log_112(log_112Call)
log_113(log_113Call)
log_114(log_114Call)
log_115(log_115Call)
log_116(log_116Call)
log_117(log_117Call)
log_118(log_118Call)
log_119(log_119Call)
log_120(log_120Call)
log_121(log_121Call)
log_122(log_122Call)
log_123(log_123Call)
log_124(log_124Call)
log_125(log_125Call)
log_126(log_126Call)
log_127(log_127Call)
log_128(log_128Call)
log_129(log_129Call)
log_130(log_130Call)
log_131(log_131Call)
log_132(log_132Call)
log_133(log_133Call)
log_134(log_134Call)
log_135(log_135Call)
log_136(log_136Call)
log_137(log_137Call)
log_138(log_138Call)
log_139(log_139Call)
log_140(log_140Call)
log_141(log_141Call)
log_142(log_142Call)
log_143(log_143Call)
log_144(log_144Call)
log_145(log_145Call)
log_146(log_146Call)
log_147(log_147Call)
log_148(log_148Call)
log_149(log_149Call)
log_150(log_150Call)
log_151(log_151Call)
log_152(log_152Call)
log_153(log_153Call)
log_154(log_154Call)
log_155(log_155Call)
log_156(log_156Call)
log_157(log_157Call)
log_158(log_158Call)
log_159(log_159Call)
log_160(log_160Call)
log_161(log_161Call)
log_162(log_162Call)
log_163(log_163Call)
log_164(log_164Call)
log_165(log_165Call)
log_166(log_166Call)
log_167(log_167Call)
log_168(log_168Call)
log_169(log_169Call)
log_170(log_170Call)
log_171(log_171Call)
log_172(log_172Call)
log_173(log_173Call)
log_174(log_174Call)
log_175(log_175Call)
log_176(log_176Call)
log_177(log_177Call)
log_178(log_178Call)
log_179(log_179Call)
log_180(log_180Call)
log_181(log_181Call)
log_182(log_182Call)
log_183(log_183Call)
log_184(log_184Call)
log_185(log_185Call)
log_186(log_186Call)
log_187(log_187Call)
log_188(log_188Call)
log_189(log_189Call)
log_190(log_190Call)
log_191(log_191Call)
log_192(log_192Call)
log_193(log_193Call)
log_194(log_194Call)
log_195(log_195Call)
log_196(log_196Call)
log_197(log_197Call)
log_198(log_198Call)
log_199(log_199Call)
log_200(log_200Call)
log_201(log_201Call)
log_202(log_202Call)
log_203(log_203Call)
log_204(log_204Call)
log_205(log_205Call)
log_206(log_206Call)
log_207(log_207Call)
log_208(log_208Call)
log_209(log_209Call)
log_210(log_210Call)
log_211(log_211Call)
log_212(log_212Call)
log_213(log_213Call)
log_214(log_214Call)
log_215(log_215Call)
log_216(log_216Call)
log_217(log_217Call)
log_218(log_218Call)
log_219(log_219Call)
log_220(log_220Call)
log_221(log_221Call)
log_222(log_222Call)
log_223(log_223Call)
log_224(log_224Call)
log_225(log_225Call)
log_226(log_226Call)
log_227(log_227Call)
log_228(log_228Call)
log_229(log_229Call)
log_230(log_230Call)
log_231(log_231Call)
log_232(log_232Call)
log_233(log_233Call)
log_234(log_234Call)
log_235(log_235Call)
log_236(log_236Call)
log_237(log_237Call)
log_238(log_238Call)
log_239(log_239Call)
log_240(log_240Call)
log_241(log_241Call)
log_242(log_242Call)
log_243(log_243Call)
log_244(log_244Call)
log_245(log_245Call)
log_246(log_246Call)
log_247(log_247Call)
log_248(log_248Call)
log_249(log_249Call)
log_250(log_250Call)
log_251(log_251Call)
log_252(log_252Call)
log_253(log_253Call)
log_254(log_254Call)
log_255(log_255Call)
log_256(log_256Call)
log_257(log_257Call)
log_258(log_258Call)
log_259(log_259Call)
log_260(log_260Call)
log_261(log_261Call)
log_262(log_262Call)
log_263(log_263Call)
log_264(log_264Call)
log_265(log_265Call)
log_266(log_266Call)
log_267(log_267Call)
log_268(log_268Call)
log_269(log_269Call)
log_270(log_270Call)
log_271(log_271Call)
log_272(log_272Call)
log_273(log_273Call)
log_274(log_274Call)
log_275(log_275Call)
log_276(log_276Call)
log_277(log_277Call)
log_278(log_278Call)
log_279(log_279Call)
log_280(log_280Call)
log_281(log_281Call)
log_282(log_282Call)
log_283(log_283Call)
log_284(log_284Call)
log_285(log_285Call)
log_286(log_286Call)
log_287(log_287Call)
log_288(log_288Call)
log_289(log_289Call)
log_290(log_290Call)
log_291(log_291Call)
log_292(log_292Call)
log_293(log_293Call)
log_294(log_294Call)
log_295(log_295Call)
log_296(log_296Call)
log_297(log_297Call)
log_298(log_298Call)
log_299(log_299Call)
log_300(log_300Call)
log_301(log_301Call)
log_302(log_302Call)
log_303(log_303Call)
log_304(log_304Call)
log_305(log_305Call)
log_306(log_306Call)
log_307(log_307Call)
log_308(log_308Call)
log_309(log_309Call)
log_310(log_310Call)
log_311(log_311Call)
log_312(log_312Call)
log_313(log_313Call)
log_314(log_314Call)
log_315(log_315Call)
log_316(log_316Call)
log_317(log_317Call)
log_318(log_318Call)
log_319(log_319Call)
log_320(log_320Call)
log_321(log_321Call)
log_322(log_322Call)
log_323(log_323Call)
log_324(log_324Call)
log_325(log_325Call)
log_326(log_326Call)
log_327(log_327Call)
log_328(log_328Call)
log_329(log_329Call)
log_330(log_330Call)
log_331(log_331Call)
log_332(log_332Call)
log_333(log_333Call)
log_334(log_334Call)
log_335(log_335Call)
log_336(log_336Call)
log_337(log_337Call)
log_338(log_338Call)
log_339(log_339Call)
log_340(log_340Call)
log_341(log_341Call)
log_342(log_342Call)
log_343(log_343Call)
log_344(log_344Call)
log_345(log_345Call)
log_346(log_346Call)
log_347(log_347Call)
log_348(log_348Call)
log_349(log_349Call)
log_350(log_350Call)
log_351(log_351Call)
log_352(log_352Call)
log_353(log_353Call)
log_354(log_354Call)
log_355(log_355Call)
log_356(log_356Call)
log_357(log_357Call)
log_358(log_358Call)
log_359(log_359Call)
log_360(log_360Call)
log_361(log_361Call)
log_362(log_362Call)
log_363(log_363Call)
log_364(log_364Call)
log_365(log_365Call)
log_366(log_366Call)
log_367(log_367Call)
log_368(log_368Call)
log_369(log_369Call)
log_370(log_370Call)
log_371(log_371Call)
log_372(log_372Call)
log_373(log_373Call)
log_374(log_374Call)
log_375(log_375Call)
Implementations§
Trait Implementations§
Source§impl ConsoleFmt for HardhatConsoleCalls
impl ConsoleFmt for HardhatConsoleCalls
Source§impl SolInterface for HardhatConsoleCalls
impl SolInterface for HardhatConsoleCalls
Source§const MIN_DATA_LENGTH: usize = 0usize
const MIN_DATA_LENGTH: usize = 0usize
Source§fn valid_selector(selector: [u8; 4]) -> bool
fn valid_selector(selector: [u8; 4]) -> bool
true
if the given selector is known to this type.Source§fn abi_decode_raw(
selector: [u8; 4],
data: &[u8],
validate: bool,
) -> Result<Self>
fn abi_decode_raw( selector: [u8; 4], data: &[u8], validate: bool, ) -> Result<Self>
self
.Source§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
Source§fn abi_encode_raw(&self, out: &mut Vec<u8>)
fn abi_encode_raw(&self, out: &mut Vec<u8>)
self
into the given buffer, without any selectors.§fn type_check(selector: [u8; 4]) -> Result<(), Error>
fn type_check(selector: [u8; 4]) -> Result<(), Error>
§fn abi_encode(&self) -> Vec<u8> ⓘ
fn abi_encode(&self) -> Vec<u8> ⓘ
self
into the given buffer.§fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
self
.Auto Trait Implementations§
impl !Freeze for HardhatConsoleCalls
impl RefUnwindSafe for HardhatConsoleCalls
impl Send for HardhatConsoleCalls
impl Sync for HardhatConsoleCalls
impl Unpin for HardhatConsoleCalls
impl UnwindSafe for HardhatConsoleCalls
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute
] value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
[Quirk
] value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition
] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.§impl<T> TryConv for T
impl<T> TryConv for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 136 bytes
Size for each variant:
log_0
: 70 byteslog_1
: 94 byteslog_2
: 10 byteslog_3
: 60 byteslog_4
: 102 byteslog_5
: 12 byteslog_6
: 78 byteslog_7
: 94 byteslog_8
: 62 byteslog_9
: 62 byteslog_10
: 86 byteslog_11
: 86 byteslog_12
: 26 byteslog_13
: 78 byteslog_14
: 38 byteslog_15
: 86 byteslog_16
: 126 byteslog_17
: 86 byteslog_18
: 94 byteslog_19
: 78 byteslog_20
: 62 byteslog_21
: 86 byteslog_22
: 110 byteslog_23
: 110 byteslog_24
: 22 byteslog_25
: 70 byteslog_26
: 78 byteslog_27
: 46 byteslog_28
: 86 byteslog_29
: 94 byteslog_30
: 86 byteslog_31
: 110 byteslog_32
: 110 byteslog_33
: 94 byteslog_34
: 70 byteslog_35
: 86 byteslog_36
: 78 byteslog_37
: 22 byteslog_38
: 134 byteslog_39
: 78 byteslog_40
: 94 byteslog_41
: 86 byteslog_42
: 42 byteslog_43
: 86 byteslog_44
: 46 byteslog_45
: 62 byteslog_46
: 102 byteslog_47
: 118 byteslog_48
: 62 byteslog_49
: 78 byteslog_50
: 78 byteslog_51
: 46 byteslog_52
: 110 byteslog_53
: 54 byteslog_54
: 110 byteslog_55
: 94 byteslog_56
: 78 byteslog_57
: 94 byteslog_58
: 102 byteslog_59
: 102 byteslog_60
: 94 byteslog_61
: 38 byteslog_62
: 86 byteslog_63
: 32 byteslog_64
: 118 byteslog_65
: 102 byteslog_66
: 2 byteslog_67
: 38 byteslog_68
: 78 byteslog_69
: 86 byteslog_70
: 102 byteslog_71
: 20 byteslog_72
: 42 byteslog_73
: 78 byteslog_74
: 38 byteslog_75
: 4 byteslog_76
: 78 byteslog_77
: 78 byteslog_78
: 54 byteslog_79
: 2 byteslog_80
: 18 byteslog_81
: 78 byteslog_82
: 126 byteslog_83
: 62 byteslog_84
: 70 byteslog_85
: 78 byteslog_86
: 78 byteslog_87
: 110 byteslog_88
: 94 byteslog_89
: 94 byteslog_90
: 86 byteslog_91
: 46 byteslog_92
: 28 byteslog_93
: 118 byteslog_94
: 4 byteslog_95
: 62 byteslog_96
: 62 byteslog_97
: 110 byteslog_98
: 86 byteslog_99
: 62 byteslog_100
: 62 byteslog_101
: 30 byteslog_102
: 118 byteslog_103
: 94 byteslog_104
: 110 byteslog_105
: 62 byteslog_106
: 102 byteslog_107
: 42 byteslog_108
: 118 byteslog_109
: 78 byteslog_110
: 78 byteslog_111
: 102 byteslog_112
: 62 byteslog_113
: 118 byteslog_114
: 54 byteslog_115
: 54 byteslog_116
: 30 byteslog_117
: 62 byteslog_118
: 70 byteslog_119
: 8 byteslog_120
: 118 byteslog_121
: 8 byteslog_122
: 4 byteslog_123
: 54 byteslog_124
: 86 byteslog_125
: 20 byteslog_126
: 0 byteslog_127
: 86 byteslog_128
: 54 byteslog_129
: 62 byteslog_130
: 110 byteslog_131
: 86 byteslog_132
: 86 byteslog_133
: 126 byteslog_134
: 110 byteslog_135
: 94 byteslog_136
: 110 byteslog_137
: 94 byteslog_138
: 102 byteslog_139
: 94 byteslog_140
: 78 byteslog_141
: 102 byteslog_142
: 86 byteslog_143
: 110 byteslog_144
: 126 byteslog_145
: 20 byteslog_146
: 86 byteslog_147
: 102 byteslog_148
: 78 byteslog_149
: 54 byteslog_150
: 94 byteslog_151
: 62 byteslog_152
: 102 byteslog_153
: 46 byteslog_154
: 102 byteslog_155
: 86 byteslog_156
: 102 byteslog_157
: 62 byteslog_158
: 102 byteslog_159
: 62 byteslog_160
: 80 byteslog_161
: 16 byteslog_162
: 94 byteslog_163
: 62 byteslog_164
: 86 byteslog_165
: 94 byteslog_166
: 102 byteslog_167
: 62 byteslog_168
: 62 byteslog_169
: 102 byteslog_170
: 24 byteslog_171
: 70 byteslog_172
: 118 byteslog_173
: 62 byteslog_174
: 102 byteslog_175
: 46 byteslog_176
: 54 byteslog_177
: 2 byteslog_178
: 78 byteslog_179
: 78 byteslog_180
: 54 byteslog_181
: 94 byteslog_182
: 110 byteslog_183
: 94 byteslog_184
: 78 byteslog_185
: 54 byteslog_186
: 22 byteslog_187
: 102 byteslog_188
: 54 byteslog_189
: 102 byteslog_190
: 86 byteslog_191
: 78 byteslog_192
: 94 byteslog_193
: 94 byteslog_194
: 110 byteslog_195
: 110 byteslog_196
: 94 byteslog_197
: 70 byteslog_198
: 78 byteslog_199
: 94 byteslog_200
: 86 byteslog_201
: 86 byteslog_202
: 126 byteslog_203
: 62 byteslog_204
: 38 byteslog_205
: 22 byteslog_206
: 118 byteslog_207
: 70 byteslog_208
: 12 byteslog_209
: 110 byteslog_210
: 94 byteslog_211
: 126 byteslog_212
: 38 byteslog_213
: 70 byteslog_214
: 24 byteslog_215
: 62 byteslog_216
: 102 byteslog_217
: 70 byteslog_218
: 102 byteslog_219
: 110 byteslog_220
: 102 byteslog_221
: 94 byteslog_222
: 38 byteslog_223
: 10 byteslog_224
: 86 byteslog_225
: 86 byteslog_226
: 70 byteslog_227
: 78 byteslog_228
: 110 byteslog_229
: 14 byteslog_230
: 54 byteslog_231
: 86 byteslog_232
: 102 byteslog_233
: 14 byteslog_234
: 54 byteslog_235
: 54 byteslog_236
: 78 byteslog_237
: 78 byteslog_238
: 94 byteslog_239
: 62 byteslog_240
: 86 byteslog_241
: 62 byteslog_242
: 110 byteslog_243
: 62 byteslog_244
: 102 byteslog_245
: 62 byteslog_246
: 62 byteslog_247
: 110 byteslog_248
: 94 byteslog_249
: 54 byteslog_250
: 86 byteslog_251
: 86 byteslog_252
: 86 byteslog_253
: 86 byteslog_254
: 102 byteslog_255
: 86 byteslog_256
: 6 byteslog_257
: 42 byteslog_258
: 78 byteslog_259
: 86 byteslog_260
: 126 byteslog_261
: 86 byteslog_262
: 78 byteslog_263
: 94 byteslog_264
: 78 byteslog_265
: 24 byteslog_266
: 94 byteslog_267
: 86 byteslog_268
: 86 byteslog_269
: 6 byteslog_270
: 118 byteslog_271
: 62 byteslog_272
: 62 byteslog_273
: 86 byteslog_274
: 94 byteslog_275
: 62 byteslog_276
: 78 byteslog_277
: 62 byteslog_278
: 94 byteslog_279
: 46 byteslog_280
: 118 byteslog_281
: 38 byteslog_282
: 70 byteslog_283
: 78 byteslog_284
: 78 byteslog_285
: 110 byteslog_286
: 78 byteslog_287
: 118 byteslog_288
: 24 byteslog_289
: 86 byteslog_290
: 32 byteslog_291
: 78 byteslog_292
: 94 byteslog_293
: 38 byteslog_294
: 70 byteslog_295
: 62 byteslog_296
: 18 byteslog_297
: 110 byteslog_298
: 86 byteslog_299
: 118 byteslog_300
: 110 byteslog_301
: 28 byteslog_302
: 54 byteslog_303
: 70 byteslog_304
: 94 byteslog_305
: 70 byteslog_306
: 24 byteslog_307
: 86 byteslog_308
: 86 byteslog_309
: 46 byteslog_310
: 102 byteslog_311
: 54 byteslog_312
: 86 byteslog_313
: 42 byteslog_314
: 102 byteslog_315
: 42 byteslog_316
: 94 byteslog_317
: 110 byteslog_318
: 22 byteslog_319
: 62 byteslog_320
: 94 byteslog_321
: 78 byteslog_322
: 16 byteslog_323
: 40 byteslog_324
: 38 byteslog_325
: 38 byteslog_326
: 118 byteslog_327
: 70 byteslog_328
: 102 byteslog_329
: 102 byteslog_330
: 54 byteslog_331
: 54 byteslog_332
: 4 byteslog_333
: 78 byteslog_334
: 86 byteslog_335
: 78 byteslog_336
: 118 byteslog_337
: 62 byteslog_338
: 54 byteslog_339
: 62 byteslog_340
: 70 byteslog_341
: 102 byteslog_342
: 70 byteslog_343
: 118 byteslog_344
: 46 byteslog_345
: 2 byteslog_346
: 22 byteslog_347
: 102 byteslog_348
: 110 byteslog_349
: 22 byteslog_350
: 70 byteslog_351
: 94 byteslog_352
: 30 byteslog_353
: 102 byteslog_354
: 86 byteslog_355
: 86 byteslog_356
: 70 byteslog_357
: 42 byteslog_358
: 24 byteslog_359
: 42 byteslog_360
: 118 byteslog_361
: 42 byteslog_362
: 94 byteslog_363
: 70 byteslog_364
: 94 byteslog_365
: 94 byteslog_366
: 38 byteslog_367
: 26 byteslog_368
: 118 byteslog_369
: 54 byteslog_370
: 126 byteslog_371
: 78 byteslog_372
: 86 byteslog_373
: 70 byteslog_374
: 102 byteslog_375
: 86 bytes