Lines Matching refs:fill
37 //! lazycell.fill(1).ok();
75 pub fn fill(&self, value: T) -> Result<(), T> {
89 /// cell can exist so we can always fill in the value. This may not always
136 if self.fill(value).is_err() {
154 if self.fill(value).is_err() {
174 if self.fill(value).is_err() {
192 if self.fill(value).is_err() {
256 pub fn fill(&self, t: T) -> Result<(), T> {
274 /// cell can exist so we can always fill in the value. This may not always
369 lazycell.fill(1).unwrap();
384 lazycell.fill(1).unwrap();
399 lazycell.fill(1).unwrap();
400 assert_eq!(lazycell.fill(1), Err(1));
414 lazycell.fill(1).unwrap();
424 lazycell.fill(1).unwrap();
440 let _ = lazycell.fill(Box::new(1));
461 lazycell.fill(1).unwrap();
471 lazycell.fill(1).unwrap();
494 lazycell.fill(1).unwrap();
507 let _ = lazycell.fill(Box::new(1));
534 lazycell.fill(1).unwrap();
543 lazycell.fill(1).unwrap();
564 lazycell.fill(1).unwrap();
578 lazycell.fill(1).unwrap();
579 assert_eq!(1, lazycell.fill(1).unwrap_err());
586 lazycell.fill(1).unwrap();
594 assert_eq!(cell.fill(1), Ok(()));
606 assert_eq!(cell.fill(1), Ok(()));
617 assert_eq!(cell.fill(1), Ok(()));
624 assert_eq!(clone1.fill(3), Ok(()));
636 assert_eq!(cell.fill(1), Ok(()));
643 assert_eq!(clone1.fill(3), Ok(()));