Lines Matching refs:new
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()
247 RwLock::new(WinSize {
254 RwLock::new(WinSize {
267 RwLock::new(style)
275 pub fn new(buf: Arc<EditBuffer>, setting: AppSetting) -> Arc<Self> { in new() method
276 let mut cursor = CursorCrtl::new(buf.clone(), setting.line); in new()
279 let core = Arc::new(Mutex::new(UiCore::new(buf, cursor, setting))); in new()
280 let ret = Arc::new(Self { in new()
281 mode: RwLock::new(Arc::new(Command)), in new()