Coleccion | Descripcion | en Cpp | en Java | en Python |
---|---|---|---|---|
Vec<T> | Array que puede crecer | vector | ArrayList | list |
VecDeque<T> | cola con dos puntas | deque | ArrayDeque | collections.deque |
LinkedList<T> | Doble lista enlazada | list | LinkedList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1.031s] Invoking command in '/home/elsuizo/.cache/yay/ros2-foxy/src/build/ros1_bridge': AMENT_PREFIX_PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install CMAKE_PREFIX_PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install:${CMAKE_PREFIX_PATH} LD_LIBRARY_PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install/lib:${LD_LIBRARY_PATH} PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install/bin:${PATH} PKG_CONFIG_PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install/lib/pkgconfig:${PKG_CONFIG_PATH} PYTHONPATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install/lib/python3.9/site-packages:${PYTHONPATH} _=/usr/bin/env /usr/bin/cmake /home/elsuizo/.cache/yay/ros2-foxy/src/ros2/src/ros2/ros1_bridge -DCMAKE_INSTALL_PREFIX=/home/elsuizo/.cache/yay/ros2-foxy/src/install | |
[1.138s] -- The C compiler identification is GNU 10.2.0 | |
[1.321s] -- The CXX compiler identification is GNU 10.2.0 | |
[1.330s] -- Detecting C compiler ABI info | |
[1.430s] -- Detecting C compiler ABI info - done | |
[1.444s] -- Check for working C compiler: /usr/bin/cc - skipped | |
[1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------+-------------------------------------+-------------------------------------------------------------------------------------+ | |
Type o trait | Expresion | Notas | | |
------------------------------+-------------------------------------+-------------------------------------------------------------------------------------+ | |
std::ops::Range | 1..10 | el final debe ser un int | | |
------------------------------+-------------------------------------+-------------------------------------------------------------------------------------+ | |
std::ops::RangeFrom | 1.. | Iteracion sin final. El valor inicial debe ser un int. | | |
| | Puede `panic` o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------+-----------------------+-------------------------------+ | |
Category | Trait | Operator | | |
----------------------+-----------------------+-------------------------------+ | |
Unary Operators | std::ops::Neg | -x | | |
| std::ops::Not | !x | | |
----------------------+-----------------------+-------------------------------+ | |
Aritmetic Operators | std::ops::Add | x + y | | |
| std::ops::Sub | x - y | | |
| std::ops::Mul | x * y | | |
| std::ops::Div | x / y | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elsuizo@arch ~/Dev/Tests/Rust_embedded/demo arm-none-eabi-gdb target/thumbv7em-none-eabihf/debug/examples/hello | |
GNU gdb (GDB) 8.0 | |
Copyright (C) 2017 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-none-eabi". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Info : lpc4337.m4: hardware has 6 breakpoints, 4 watchpoints | |
Info : lpc4337.m0: hardware has 2 breakpoints, 1 watchpoints | |
Info : accepting 'gdb' connection on tcp/3333 | |
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4) | |
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd.), part: 0xba01, ver: 0x0) | |
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support. | |
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support. | |
target halted due to debug-request, current mode: Thread | |
xPSR: 0x01000000 pc: 0x1a002730 msp: 0x10008000 | |
Error: timed out while waiting for target halted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn read_text_file_fromIO() -> std::io::Result<String> { | |
let mut buffer = String::new(); | |
std::io::stdin().read_to_string(&mut buffer)?; | |
Ok(buffer) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn parse_pair<T: FromStr>(s: &str, separator: char) -> Option<(T, T)> { | |
9 match s.find(separator) { | |
8 None => None, | |
7 Some(index) => { | |
6 match (T::from_str(&s[..index]), T::from_str(&s[index+1..])) { | |
5 (Ok(l), Ok(r)) => Some((l, r)), | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= ------------------------------------------------------------------------- | |
# @file implicit_plot.jl | |
# | |
# @date 09/13/16 14:26:49 | |
# @author Martin Noblia | |
# @email martin.noblia@openmailbox.org | |
# | |
# @brief | |
# | |
# @detail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#= ------------------------------------------------------------------------- | |
# @file implicit_plot.jl | |
# | |
# @date 09/13/16 14:26:49 | |
# @author Martin Noblia | |
# @email martin.noblia@openmailbox.org | |
# | |
# @brief | |
# | |
# @detail |
NewerOlder