Searched refs:new (Results 1 – 12 of 12) sorted by relevance
/Held/src/utils/ui/ |
H A D | uicore.rs | 30 static ref COMMAND: Arc<Command> = Arc::new(Command); 31 static ref INSERT: Arc<Insert> = Arc::new(Insert); 32 static ref LASTLINE: Arc<LastLine> = Arc::new(LastLine::new()); 33 static ref NORMAL: Arc<Normal> = Arc::new(Normal::new()); 34 pub static ref APP_INFO: Mutex<AppInfo> = Mutex::new(AppInfo { 36 info: String::new() 40 pub static TAB_SIZE: AtomicU16 = AtomicU16::new(4); 62 pub fn new(buf: Arc<EditBuffer>, cursor: CursorCrtl, setting: AppSetting) -> Self { in new() method 66 container: Weak::new(), in new() 69 edited_once: Once::new(), in new() [all …]
|
H A D | mod.rs | 20 self.info = String::new(); in reset()
|
/Held/src/ |
H A D | app.rs | 17 pub fn new(file_path: Option<String>, setting: AppSetting) -> io::Result<Self> { in new() method 21 FileManager::new(file_path.unwrap())? in new() 24 FileManager::new("held.tmp".to_string())? in new() 33 ui: Ui::new(Arc::new(buf), setting), in new()
|
H A D | main.rs | 29 Application::new(config.file, setting.to_app_setting())?.run() in main()
|
/Held/src/utils/ |
H A D | buffer.rs | 38 pub fn new(data: Vec<u8>) -> Self { in new() method 39 static LINE_ID_ALLOCTOR: AtomicUsize = AtomicUsize::new(0); in new() 83 pub fn new(buf: Vec<u8>) -> Self { in new() method 99 let mut buf = Vec::new(); in new() 101 buf.push(LineBuffer::new(v)); in new() 105 buf: RwLock::new(buf), in new() 106 offset: AtomicUsize::new(0), in new() 107 flag_lines: RwLock::new(HashMap::new()), in new() 108 locked_lines: RwLock::new(HashMap::new()), in new() 249 buf.push(LineBuffer::new(newline)); in insert_char() [all …]
|
H A D | file.rs | 20 pub fn new(file_path: String) -> io::Result<Self> { in new() method 38 let mut buf = Vec::new(); in init() 46 Ok(EditBuffer::new(buf)) in init() 121 let mut buf = Vec::new(); in restore()
|
H A D | log_util.rs | 17 WriteLogger::new( in init()
|
H A D | cursor.rs | 118 pub fn new(buf: Arc<EditBuffer>, line_setting: LineSetting) -> Self { in new() method
|
/Held/src/utils/ui/mode/ |
H A D | normal.rs | 41 static ref NORMALSTATE: Mutex<NormalState> = Mutex::new(NormalState { 47 cmdbuf: Vec::new(), // 用于存储输入的命令,可以与状态的显示通用? 55 pub fn new() -> Self { in new() method
|
H A D | mode.rs | 695 pub fn new() -> Self { in new() method 697 buf: Mutex::new(vec![':' as u8]), in new()
|
/Held/src/config/ |
H A D | lastline_cmd.rs | 17 HashMap::new();
|
/Held/ |
H A D | LICENSE | 26 want it, that you can change the software or use pieces of it in new 432 reinstated, you do not qualify to receive new licenses for the same 565 The Free Software Foundation may publish revised and/or new versions of 566 the GNU General Public License from time to time. Such new versions will 568 address new problems or concerns. 625 If you develop a new program, and you want it to be of the greatest
|